From 96ffe594925876d306d3ebfd1d043e298ed6e71e Mon Sep 17 00:00:00 2001 From: Dhaval Brahmbhatt <32913565+dbbrahmbhatt@users.noreply.github.com> Date: Wed, 8 Sep 2021 16:29:54 -0700 Subject: [PATCH] Version 2.12.0rc1-v2-21.2.02.00 release (#124) Co-authored-by: Dhaval --- .swagger-codegen/VERSION | 2 +- CHANGELOG.md | 7 + docusign_esign/__init__.py | 23 +- docusign_esign/client/configuration.py | 4 +- docusign_esign/models/account_address.py | 50 ++-- docusign_esign/models/account_billing_plan.py | 89 +++---- .../models/account_billing_plan_response.py | 35 +-- .../account_identity_verification_response.py | 17 +- .../account_identity_verification_step.py | 20 +- .../account_identity_verification_workflow.py | 23 +- docusign_esign/models/account_information.py | 110 ++++----- .../models/account_minimum_password_length.py | 20 +- .../account_password_expire_password_days.py | 20 +- ...count_password_lockout_duration_minutes.py | 20 +- .../account_password_lockout_duration_type.py | 17 +- ...ount_password_minimum_password_age_days.py | 20 +- .../account_password_questions_required.py | 20 +- .../models/account_password_rules.py | 74 +++--- .../models/account_password_strength_type.py | 17 +- .../account_password_strength_type_option.py | 35 +-- .../models/account_role_settings.py | 224 +++++++----------- docusign_esign/models/account_seals.py | 17 +- .../models/account_settings_information.py | 17 +- .../models/account_shared_access.py | 41 ++-- .../models/account_signature_provider.py | 35 +-- .../account_signature_provider_option.py | 23 +- .../models/account_signature_providers.py | 17 +- docusign_esign/models/add_on.py | 26 +- docusign_esign/models/address_information.py | 41 ++-- .../models/address_information_input.py | 23 +- .../models/address_information_v2.py | 38 +-- docusign_esign/models/agent.py | 152 +++++------- docusign_esign/models/api_request_log.py | 26 +- .../models/api_request_logs_result.py | 17 +- docusign_esign/models/app_store_product.py | 20 +- docusign_esign/models/app_store_receipt.py | 20 +- docusign_esign/models/approve.py | 119 ++++------ docusign_esign/models/attachment.py | 35 +-- .../models/authentication_method.py | 26 +- .../models/authentication_status.py | 71 +++--- docusign_esign/models/bcc_email_address.py | 20 +- docusign_esign/models/billing_charge.py | 53 ++--- .../models/billing_charge_response.py | 17 +- docusign_esign/models/billing_discount.py | 23 +- docusign_esign/models/billing_invoice.py | 44 ++-- docusign_esign/models/billing_invoice_item.py | 29 ++- .../models/billing_invoices_response.py | 23 +- .../models/billing_invoices_summary.py | 23 +- docusign_esign/models/billing_payment.py | 23 +- docusign_esign/models/billing_payment_item.py | 29 ++- .../models/billing_payment_request.py | 17 +- .../models/billing_payment_response.py | 17 +- .../models/billing_payments_response.py | 23 +- docusign_esign/models/billing_plan.py | 59 ++--- .../models/billing_plan_information.py | 62 +++-- docusign_esign/models/billing_plan_preview.py | 32 +-- .../models/billing_plan_response.py | 20 +- .../models/billing_plan_update_response.py | 38 +-- .../models/billing_plans_response.py | 17 +- docusign_esign/models/billing_price.py | 23 +- docusign_esign/models/brand.py | 53 ++--- docusign_esign/models/brand_email_content.py | 26 +- docusign_esign/models/brand_link.py | 26 +- docusign_esign/models/brand_logos.py | 23 +- docusign_esign/models/brand_request.py | 17 +- docusign_esign/models/brand_resource_urls.py | 26 +- docusign_esign/models/brand_resources.py | 35 +-- docusign_esign/models/brand_resources_list.py | 17 +- docusign_esign/models/brands_request.py | 17 +- docusign_esign/models/brands_response.py | 23 +- docusign_esign/models/bulk_envelope.py | 41 ++-- docusign_esign/models/bulk_envelope_status.py | 56 ++--- docusign_esign/models/bulk_recipient.py | 44 ++-- .../bulk_recipient_signature_provider.py | 20 +- .../models/bulk_recipient_tab_label.py | 20 +- .../models/bulk_recipients_request.py | 17 +- .../models/bulk_recipients_response.py | 35 +-- .../bulk_recipients_summary_response.py | 26 +- .../models/bulk_recipients_update_response.py | 17 +- docusign_esign/models/captive_recipient.py | 26 +- .../models/captive_recipient_information.py | 17 +- docusign_esign/models/carbon_copy.py | 161 +++++-------- docusign_esign/models/certified_delivery.py | 161 +++++-------- docusign_esign/models/checkbox.py | 110 ++++----- docusign_esign/models/chunked_upload_part.py | 20 +- .../models/chunked_upload_request.py | 20 +- .../models/chunked_upload_response.py | 41 ++-- .../models/cloud_storage_provider.py | 29 ++- .../models/cloud_storage_providers.py | 17 +- docusign_esign/models/company.py | 137 ++++------- docusign_esign/models/composite_template.py | 29 ++- .../models/connect_config_results.py | 20 +- .../models/connect_custom_configuration.py | 80 +++---- docusign_esign/models/connect_debug_log.py | 29 ++- .../models/connect_failure_filter.py | 20 +- .../models/connect_failure_result.py | 29 ++- .../models/connect_failure_results.py | 17 +- docusign_esign/models/connect_log.py | 68 +++--- docusign_esign/models/connect_logs.py | 26 +- docusign_esign/models/console_view_request.py | 20 +- docusign_esign/models/consumer_disclosure.py | 110 ++++----- docusign_esign/models/contact.py | 44 ++-- docusign_esign/models/contact_get_response.py | 35 +-- docusign_esign/models/contact_mod_request.py | 17 +- docusign_esign/models/contact_phone_number.py | 20 +- .../models/contact_update_response.py | 17 +- docusign_esign/models/correct_view_request.py | 23 +- docusign_esign/models/country.py | 26 +- .../models/credit_card_information.py | 32 +-- docusign_esign/models/credit_card_types.py | 17 +- .../models/currency_feature_set_price.py | 29 ++- docusign_esign/models/currency_plan_price.py | 32 +-- docusign_esign/models/custom_field.py | 38 +-- docusign_esign/models/custom_field_v2.py | 35 +-- docusign_esign/models/custom_fields.py | 20 +- .../models/custom_fields_envelope.py | 20 +- .../models/custom_settings_information.py | 17 +- docusign_esign/models/date_signed.py | 116 ++++----- .../models/date_stamp_properties.py | 26 +- docusign_esign/models/decline.py | 122 ++++------ .../diagnostics_settings_information.py | 23 +- .../models/dob_information_input.py | 23 +- docusign_esign/models/document.py | 80 +++---- .../models/document_fields_information.py | 17 +- ...ument_html_collapsible_display_settings.py | 44 ++-- .../models/document_html_definition.py | 47 ++-- .../document_html_definition_original.py | 23 +- .../document_html_definition_originals.py | 17 +- .../models/document_html_definitions.py | 17 +- .../models/document_html_display_anchor.py | 32 +-- .../models/document_html_display_settings.py | 50 ++-- docusign_esign/models/document_template.py | 29 ++- .../models/document_template_list.py | 17 +- docusign_esign/models/document_visibility.py | 29 ++- .../models/document_visibility_list.py | 17 +- docusign_esign/models/e_note_configuration.py | 29 ++- docusign_esign/models/editor.py | 149 +++++------- docusign_esign/models/email.py | 155 +++++------- docusign_esign/models/email_address.py | 116 ++++----- docusign_esign/models/email_settings.py | 23 +- docusign_esign/models/envelope.py | 170 +++++-------- docusign_esign/models/envelope_attachment.py | 32 +-- .../models/envelope_attachments_request.py | 17 +- .../models/envelope_attachments_result.py | 17 +- docusign_esign/models/envelope_audit_event.py | 17 +- .../models/envelope_audit_event_response.py | 17 +- docusign_esign/models/envelope_definition.py | 197 ++++++--------- docusign_esign/models/envelope_document.py | 62 +++-- .../models/envelope_documents_result.py | 20 +- docusign_esign/models/envelope_event.py | 20 +- docusign_esign/models/envelope_form_data.py | 35 +-- docusign_esign/models/envelope_id.py | 113 ++++----- docusign_esign/models/envelope_ids_request.py | 20 +- .../models/envelope_notification_request.py | 23 +- docusign_esign/models/envelope_summary.py | 26 +- docusign_esign/models/envelope_template.py | 176 +++++--------- .../models/envelope_template_definition.py | 62 +++-- .../models/envelope_template_result.py | 215 ++++++----------- .../models/envelope_template_results.py | 38 +-- .../models/envelope_transaction_status.py | 26 +- .../models/envelope_update_summary.py | 38 +-- .../models/envelopes_information.py | 44 ++-- docusign_esign/models/error_details.py | 20 +- docusign_esign/models/event_notification.py | 62 +++-- docusign_esign/models/event_result.py | 26 +- docusign_esign/models/expirations.py | 23 +- .../external_doc_service_error_details.py | 23 +- docusign_esign/models/external_file.py | 38 +-- docusign_esign/models/external_folder.py | 44 ++-- docusign_esign/models/feature_set.py | 41 ++-- docusign_esign/models/file_type.py | 20 +- docusign_esign/models/file_type_list.py | 17 +- docusign_esign/models/filter.py | 47 ++-- docusign_esign/models/first_name.py | 116 ++++----- docusign_esign/models/folder.py | 50 ++-- docusign_esign/models/folder_item.py | 77 +++--- docusign_esign/models/folder_item_response.py | 35 +-- docusign_esign/models/folder_item_v2.py | 74 +++--- .../models/folder_items_response.py | 35 +-- docusign_esign/models/folders_request.py | 20 +- docusign_esign/models/folders_response.py | 17 +- .../models/forgotten_password_information.py | 38 +-- docusign_esign/models/formula_tab.py | 170 +++++-------- docusign_esign/models/full_name.py | 116 ++++----- docusign_esign/models/group.py | 32 +-- docusign_esign/models/group_brands.py | 23 +- docusign_esign/models/group_information.py | 35 +-- .../models/id_check_information_input.py | 26 +- docusign_esign/models/in_person_signer.py | 194 ++++++--------- docusign_esign/models/initial_here.py | 101 ++++---- docusign_esign/models/inline_template.py | 29 ++- .../models/integrated_user_info_list.py | 38 +-- docusign_esign/models/intermediary.py | 152 +++++------- docusign_esign/models/jurisdiction.py | 44 ++-- docusign_esign/models/last_name.py | 116 ++++----- docusign_esign/models/list.py | 137 ++++------- docusign_esign/models/list_custom_field.py | 38 +-- docusign_esign/models/list_item.py | 23 +- docusign_esign/models/lock_information.py | 38 +-- docusign_esign/models/lock_request.py | 29 ++- docusign_esign/models/login_account.py | 47 ++-- docusign_esign/models/login_information.py | 20 +- docusign_esign/models/match_box.py | 29 ++- .../models/member_group_shared_item.py | 23 +- docusign_esign/models/member_shared_items.py | 26 +- docusign_esign/models/merge_field.py | 29 ++- .../models/mobile_notifier_configuration.py | 23 +- ...bile_notifier_configuration_information.py | 17 +- docusign_esign/models/model_date.py | 155 +++++------- docusign_esign/models/money.py | 23 +- docusign_esign/models/name_value.py | 26 +- .../models/new_account_definition.py | 50 ++-- docusign_esign/models/new_account_summary.py | 35 +-- docusign_esign/models/new_user.py | 47 ++-- docusign_esign/models/new_users_definition.py | 17 +- docusign_esign/models/new_users_summary.py | 17 +- docusign_esign/models/notarize.py | 95 +++----- docusign_esign/models/notary_host.py | 134 ++++------- docusign_esign/models/notary_journal.py | 32 +-- .../models/notary_journal_credible_witness.py | 23 +- docusign_esign/models/notary_journal_list.py | 35 +-- .../models/notary_journal_meta_data.py | 26 +- docusign_esign/models/note.py | 125 ++++------ docusign_esign/models/notification.py | 23 +- docusign_esign/models/number.py | 161 +++++-------- docusign_esign/models/oauth_access.py | 32 +-- docusign_esign/models/offline_attributes.py | 32 +-- docusign_esign/models/page.py | 38 +-- docusign_esign/models/page_images.py | 35 +-- docusign_esign/models/page_request.py | 20 +- docusign_esign/models/payment_details.py | 59 ++--- .../models/payment_gateway_account.py | 26 +- .../models/payment_gateway_accounts_info.py | 17 +- docusign_esign/models/payment_line_item.py | 26 +- .../models/payment_processor_information.py | 23 +- .../models/payment_signer_values.py | 17 +- docusign_esign/models/permission_profile.py | 35 +-- .../models/permission_profile_information.py | 17 +- docusign_esign/models/plan_information.py | 32 +-- docusign_esign/models/power_form.py | 89 +++---- .../models/power_form_form_data_envelope.py | 20 +- .../models/power_form_form_data_recipient.py | 26 +- docusign_esign/models/power_form_recipient.py | 53 ++--- .../models/power_form_senders_response.py | 35 +-- .../models/power_forms_form_data_response.py | 17 +- docusign_esign/models/power_forms_request.py | 17 +- docusign_esign/models/power_forms_response.py | 35 +-- docusign_esign/models/prefill_form_data.py | 26 +- docusign_esign/models/property_metadata.py | 20 +- docusign_esign/models/province.py | 20 +- .../models/provisioning_information.py | 35 +-- .../models/purchased_envelopes_information.py | 41 ++-- docusign_esign/models/radio.py | 68 +++--- docusign_esign/models/radio_group.py | 50 ++-- docusign_esign/models/recipient_attachment.py | 32 +-- docusign_esign/models/recipient_domain.py | 26 +- .../models/recipient_email_notification.py | 23 +- docusign_esign/models/recipient_event.py | 20 +- docusign_esign/models/recipient_form_data.py | 38 +-- .../models/recipient_identity_input_option.py | 23 +- .../models/recipient_identity_phone_number.py | 23 +- .../models/recipient_identity_verification.py | 20 +- .../models/recipient_names_response.py | 23 +- .../models/recipient_phone_authentication.py | 26 +- docusign_esign/models/recipient_proof_file.py | 44 +++- .../models/recipient_saml_authentication.py | 17 +- .../models/recipient_signature_information.py | 23 +- .../models/recipient_signature_provider.py | 26 +- .../recipient_signature_provider_options.py | 26 +- .../models/recipient_sms_authentication.py | 17 +- .../models/recipient_update_response.py | 23 +- .../models/recipient_view_request.py | 62 +++-- docusign_esign/models/recipients.py | 50 ++-- .../models/recipients_update_summary.py | 17 +- docusign_esign/models/referral_information.py | 68 +++--- docusign_esign/models/reminders.py | 23 +- docusign_esign/models/resource_information.py | 17 +- docusign_esign/models/return_url_request.py | 17 +- .../models/saml_assertion_attribute.py | 26 +- docusign_esign/models/seal_identifier.py | 20 +- docusign_esign/models/seal_sign.py | 131 ++++------ docusign_esign/models/seat_discount.py | 23 +- .../models/sender_email_notifications.py | 44 ++-- docusign_esign/models/server_template.py | 20 +- docusign_esign/models/service_information.py | 32 +-- docusign_esign/models/service_version.py | 20 +- docusign_esign/models/settings_metadata.py | 32 +-- docusign_esign/models/shared_item.py | 23 +- docusign_esign/models/sign_here.py | 107 ++++----- .../signature_provider_required_option.py | 20 +- docusign_esign/models/signature_type.py | 20 +- docusign_esign/models/signer.py | 203 ++++++---------- docusign_esign/models/signer_attachment.py | 101 ++++---- .../models/signer_email_notifications.py | 62 +++-- docusign_esign/models/signing_group.py | 44 ++-- .../models/signing_group_information.py | 17 +- docusign_esign/models/signing_group_user.py | 23 +- docusign_esign/models/signing_group_users.py | 17 +- docusign_esign/models/smart_section.py | 113 ++++----- .../models/smart_section_anchor_position.py | 23 +- ...rt_section_collapsible_display_settings.py | 44 ++-- .../models/smart_section_display_settings.py | 50 ++-- .../models/social_account_information.py | 29 ++- .../models/social_authentication.py | 17 +- docusign_esign/models/ssn.py | 155 +++++------- .../models/ssn4_information_input.py | 23 +- .../models/ssn9_information_input.py | 20 +- docusign_esign/models/supported_languages.py | 17 +- docusign_esign/models/tab_account_settings.py | 128 ++++------ docusign_esign/models/tab_metadata.py | 158 +++++------- docusign_esign/models/tab_metadata_list.py | 17 +- docusign_esign/models/tabs.py | 95 +++----- .../models/template_custom_fields.py | 20 +- .../template_document_visibility_list.py | 17 +- .../models/template_documents_result.py | 20 +- docusign_esign/models/template_information.py | 17 +- docusign_esign/models/template_match.py | 23 +- .../models/template_notification_request.py | 26 +- docusign_esign/models/template_recipients.py | 50 ++-- docusign_esign/models/template_role.py | 53 ++--- docusign_esign/models/template_shared_item.py | 35 +-- docusign_esign/models/template_summary.py | 35 +-- docusign_esign/models/template_tabs.py | 95 +++----- .../models/template_update_summary.py | 38 +-- docusign_esign/models/text.py | 164 +++++-------- docusign_esign/models/text_custom_field.py | 35 +-- docusign_esign/models/title.py | 137 ++++------- docusign_esign/models/usage_history.py | 26 +- ...account_management_granular_information.py | 126 ++++++---- docusign_esign/models/user_info.py | 44 ++-- docusign_esign/models/user_info_list.py | 17 +- docusign_esign/models/user_information.py | 128 ++++------ .../models/user_information_list.py | 35 +-- .../models/user_password_information.py | 26 +- docusign_esign/models/user_password_rules.py | 20 +- docusign_esign/models/user_profile.py | 50 ++-- .../models/user_settings_information.py | 26 +- docusign_esign/models/user_shared_item.py | 23 +- docusign_esign/models/user_signature.py | 77 +++--- .../models/user_signature_definition.py | 26 +- .../models/user_signatures_information.py | 17 +- .../models/user_social_id_result.py | 20 +- docusign_esign/models/users_response.py | 35 +-- docusign_esign/models/view.py | 125 ++++------ docusign_esign/models/view_url.py | 17 +- docusign_esign/models/watermark.py | 41 ++-- docusign_esign/models/witness.py | 209 ++++++---------- docusign_esign/models/workspace.py | 47 ++-- .../models/workspace_folder_contents.py | 38 +-- docusign_esign/models/workspace_item.py | 71 +++--- docusign_esign/models/workspace_item_list.py | 17 +- docusign_esign/models/workspace_list.py | 29 ++- docusign_esign/models/workspace_user.py | 62 +++-- .../models/workspace_user_authorization.py | 47 ++-- docusign_esign/models/zip.py | 158 +++++------- linter.sh | 1 + setup.py | 10 +- 357 files changed, 7685 insertions(+), 8506 deletions(-) create mode 100644 linter.sh diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index be9d3ebd..580ce109 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.13-SNAPSHOT \ No newline at end of file +2.4.21-SNAPSHOT \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fca1ff3..bd7e13a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes. +## [2.12.0rc1] - eSignature API v2-21.2.02.00 - 2021-09-08 +### Changed +- Added support for version v2-21.2.02.00 of the DocuSign eSignature API. +- Updated the SDK release version. +- The way all models take in init parameters using `kwargs` +- Updated to latest OpenAPI spec. + ## [2.11.0] - eSignature API v2-2.11.0 - 2021-07-22 ### Changed - Added support for version v2-2.11.0 of the DocuSign eSignature API. diff --git a/docusign_esign/__init__.py b/docusign_esign/__init__.py index 86085b61..e642e930 100644 --- a/docusign_esign/__init__.py +++ b/docusign_esign/__init__.py @@ -35,6 +35,17 @@ from .apis.users_api import UsersApi from .apis.workspaces_api import WorkspacesApi +# import ApiClient +from .client.api_client import ApiClient +from .client.configuration import Configuration +from .client.api_exception import ApiException + +from .client.auth.oauth import OAuth +from .client.auth.oauth import OAuthToken +from .client.auth.oauth import Account +from .client.auth.oauth import Organization +from .client.auth.oauth import Link + # import models into sdk package from docusign_esign.models.account_address import AccountAddress from docusign_esign.models.account_billing_plan import AccountBillingPlan @@ -388,15 +399,5 @@ from docusign_esign.models.workspace_user_authorization import WorkspaceUserAuthorization from docusign_esign.models.zip import Zip -# import ApiClient -from .client.api_client import ApiClient -from .client.api_client import ApiException -from .client.auth.oauth import OAuth -from .client.auth.oauth import OAuthToken -from .client.auth.oauth import Account -from .client.auth.oauth import Organization -from .client.auth.oauth import Link - -from .client.configuration import Configuration -configuration = Configuration() +configuration = Configuration() \ No newline at end of file diff --git a/docusign_esign/client/configuration.py b/docusign_esign/client/configuration.py index 619bfe4f..7d9e9d66 100644 --- a/docusign_esign/client/configuration.py +++ b/docusign_esign/client/configuration.py @@ -90,9 +90,9 @@ def __init__(self): self.key_file = None if PY3: - self.user_agent = 'Swagger-Codegen/v2/2.11.0/python3' + self.user_agent = 'Swagger-Codegen/v2/2.12.0rc1/python3' else: - self.user_agent = 'Swagger-Codegen/v2/2.11.0/python2' + self.user_agent = 'Swagger-Codegen/v2/2.12.0rc1/python2' @property def logger_file(self): diff --git a/docusign_esign/models/account_address.py b/docusign_esign/models/account_address.py index efe9f181..f6986254 100644 --- a/docusign_esign/models/account_address.py +++ b/docusign_esign/models/account_address.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountAddress(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class AccountAddress(object): 'supported_countries': 'supportedCountries' } - def __init__(self, address1=None, address2=None, city=None, country=None, email=None, fax=None, first_name=None, last_name=None, phone=None, postal_code=None, state=None, supported_countries=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountAddress - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address1 = None self._address2 = None @@ -77,30 +82,18 @@ def __init__(self, address1=None, address2=None, city=None, country=None, email= self._supported_countries = None self.discriminator = None - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if city is not None: - self.city = city - if country is not None: - self.country = country - if email is not None: - self.email = email - if fax is not None: - self.fax = fax - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if phone is not None: - self.phone = phone - if postal_code is not None: - self.postal_code = postal_code - if state is not None: - self.state = state - if supported_countries is not None: - self.supported_countries = supported_countries + setattr(self, "_{}".format('address1'), kwargs.get('address1', None)) + setattr(self, "_{}".format('address2'), kwargs.get('address2', None)) + setattr(self, "_{}".format('city'), kwargs.get('city', None)) + setattr(self, "_{}".format('country'), kwargs.get('country', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('fax'), kwargs.get('fax', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('phone'), kwargs.get('phone', None)) + setattr(self, "_{}".format('postal_code'), kwargs.get('postal_code', None)) + setattr(self, "_{}".format('state'), kwargs.get('state', None)) + setattr(self, "_{}".format('supported_countries'), kwargs.get('supported_countries', None)) @property def address1(self): @@ -418,8 +411,11 @@ def __eq__(self, other): if not isinstance(other, AccountAddress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAddress): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_billing_plan.py b/docusign_esign/models/account_billing_plan.py index 24242fe9..6790ee63 100644 --- a/docusign_esign/models/account_billing_plan.py +++ b/docusign_esign/models/account_billing_plan.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountBillingPlan(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -86,8 +88,11 @@ class AccountBillingPlan(object): 'support_plan_fee': 'supportPlanFee' } - def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_store_receipt_purchase_date=None, can_cancel_renewal=None, can_upgrade=None, currency_code=None, enable_support=None, included_seats=None, incremental_seats=None, is_downgrade=None, notification_type=None, other_discount_percent=None, payment_cycle=None, payment_method=None, per_seat_price=None, plan_classification=None, plan_feature_sets=None, plan_id=None, plan_name=None, plan_start_date=None, renewal_date=None, renewal_status=None, seat_discounts=None, support_incident_fee=None, support_plan_fee=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountBillingPlan - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._add_ons = None self._app_store_receipt_expiration_date = None @@ -116,56 +121,31 @@ def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_sto self._support_plan_fee = None self.discriminator = None - if add_ons is not None: - self.add_ons = add_ons - if app_store_receipt_expiration_date is not None: - self.app_store_receipt_expiration_date = app_store_receipt_expiration_date - if app_store_receipt_purchase_date is not None: - self.app_store_receipt_purchase_date = app_store_receipt_purchase_date - if can_cancel_renewal is not None: - self.can_cancel_renewal = can_cancel_renewal - if can_upgrade is not None: - self.can_upgrade = can_upgrade - if currency_code is not None: - self.currency_code = currency_code - if enable_support is not None: - self.enable_support = enable_support - if included_seats is not None: - self.included_seats = included_seats - if incremental_seats is not None: - self.incremental_seats = incremental_seats - if is_downgrade is not None: - self.is_downgrade = is_downgrade - if notification_type is not None: - self.notification_type = notification_type - if other_discount_percent is not None: - self.other_discount_percent = other_discount_percent - if payment_cycle is not None: - self.payment_cycle = payment_cycle - if payment_method is not None: - self.payment_method = payment_method - if per_seat_price is not None: - self.per_seat_price = per_seat_price - if plan_classification is not None: - self.plan_classification = plan_classification - if plan_feature_sets is not None: - self.plan_feature_sets = plan_feature_sets - if plan_id is not None: - self.plan_id = plan_id - if plan_name is not None: - self.plan_name = plan_name - if plan_start_date is not None: - self.plan_start_date = plan_start_date - if renewal_date is not None: - self.renewal_date = renewal_date - if renewal_status is not None: - self.renewal_status = renewal_status - if seat_discounts is not None: - self.seat_discounts = seat_discounts - if support_incident_fee is not None: - self.support_incident_fee = support_incident_fee - if support_plan_fee is not None: - self.support_plan_fee = support_plan_fee + setattr(self, "_{}".format('add_ons'), kwargs.get('add_ons', None)) + setattr(self, "_{}".format('app_store_receipt_expiration_date'), kwargs.get('app_store_receipt_expiration_date', None)) + setattr(self, "_{}".format('app_store_receipt_purchase_date'), kwargs.get('app_store_receipt_purchase_date', None)) + setattr(self, "_{}".format('can_cancel_renewal'), kwargs.get('can_cancel_renewal', None)) + setattr(self, "_{}".format('can_upgrade'), kwargs.get('can_upgrade', None)) + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('enable_support'), kwargs.get('enable_support', None)) + setattr(self, "_{}".format('included_seats'), kwargs.get('included_seats', None)) + setattr(self, "_{}".format('incremental_seats'), kwargs.get('incremental_seats', None)) + setattr(self, "_{}".format('is_downgrade'), kwargs.get('is_downgrade', None)) + setattr(self, "_{}".format('notification_type'), kwargs.get('notification_type', None)) + setattr(self, "_{}".format('other_discount_percent'), kwargs.get('other_discount_percent', None)) + setattr(self, "_{}".format('payment_cycle'), kwargs.get('payment_cycle', None)) + setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) + setattr(self, "_{}".format('per_seat_price'), kwargs.get('per_seat_price', None)) + setattr(self, "_{}".format('plan_classification'), kwargs.get('plan_classification', None)) + setattr(self, "_{}".format('plan_feature_sets'), kwargs.get('plan_feature_sets', None)) + setattr(self, "_{}".format('plan_id'), kwargs.get('plan_id', None)) + setattr(self, "_{}".format('plan_name'), kwargs.get('plan_name', None)) + setattr(self, "_{}".format('plan_start_date'), kwargs.get('plan_start_date', None)) + setattr(self, "_{}".format('renewal_date'), kwargs.get('renewal_date', None)) + setattr(self, "_{}".format('renewal_status'), kwargs.get('renewal_status', None)) + setattr(self, "_{}".format('seat_discounts'), kwargs.get('seat_discounts', None)) + setattr(self, "_{}".format('support_incident_fee'), kwargs.get('support_incident_fee', None)) + setattr(self, "_{}".format('support_plan_fee'), kwargs.get('support_plan_fee', None)) @property def add_ons(self): @@ -782,8 +762,11 @@ def __eq__(self, other): if not isinstance(other, AccountBillingPlan): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountBillingPlan): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_billing_plan_response.py b/docusign_esign/models/account_billing_plan_response.py index c30a3b3c..c86b64b7 100644 --- a/docusign_esign/models/account_billing_plan_response.py +++ b/docusign_esign/models/account_billing_plan_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountBillingPlanResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class AccountBillingPlanResponse(object): 'successor_plans': 'successorPlans' } - def __init__(self, billing_address=None, billing_address_is_credit_card_address=None, billing_plan=None, credit_card_information=None, payment_processor_information=None, referral_information=None, successor_plans=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountBillingPlanResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_address = None self._billing_address_is_credit_card_address = None @@ -62,20 +67,13 @@ def __init__(self, billing_address=None, billing_address_is_credit_card_address= self._successor_plans = None self.discriminator = None - if billing_address is not None: - self.billing_address = billing_address - if billing_address_is_credit_card_address is not None: - self.billing_address_is_credit_card_address = billing_address_is_credit_card_address - if billing_plan is not None: - self.billing_plan = billing_plan - if credit_card_information is not None: - self.credit_card_information = credit_card_information - if payment_processor_information is not None: - self.payment_processor_information = payment_processor_information - if referral_information is not None: - self.referral_information = referral_information - if successor_plans is not None: - self.successor_plans = successor_plans + setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None)) + setattr(self, "_{}".format('billing_address_is_credit_card_address'), kwargs.get('billing_address_is_credit_card_address', None)) + setattr(self, "_{}".format('billing_plan'), kwargs.get('billing_plan', None)) + setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) + setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) + setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) + setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None)) @property def billing_address(self): @@ -268,8 +266,11 @@ def __eq__(self, other): if not isinstance(other, AccountBillingPlanResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountBillingPlanResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_identity_verification_response.py b/docusign_esign/models/account_identity_verification_response.py index 0d376135..698bc88e 100644 --- a/docusign_esign/models/account_identity_verification_response.py +++ b/docusign_esign/models/account_identity_verification_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountIdentityVerificationResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class AccountIdentityVerificationResponse(object): 'identity_verification': 'identityVerification' } - def __init__(self, identity_verification=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountIdentityVerificationResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._identity_verification = None self.discriminator = None - if identity_verification is not None: - self.identity_verification = identity_verification + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) @property def identity_verification(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, AccountIdentityVerificationResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountIdentityVerificationResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_identity_verification_step.py b/docusign_esign/models/account_identity_verification_step.py index 7aafed05..27f846c4 100644 --- a/docusign_esign/models/account_identity_verification_step.py +++ b/docusign_esign/models/account_identity_verification_step.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountIdentityVerificationStep(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AccountIdentityVerificationStep(object): 'type': 'type' } - def __init__(self, name=None, type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountIdentityVerificationStep - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._type = None self.discriminator = None - if name is not None: - self.name = name - if type is not None: - self.type = type + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) @property def name(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AccountIdentityVerificationStep): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountIdentityVerificationStep): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_identity_verification_workflow.py b/docusign_esign/models/account_identity_verification_workflow.py index 4f8e6254..bde065ff 100644 --- a/docusign_esign/models/account_identity_verification_workflow.py +++ b/docusign_esign/models/account_identity_verification_workflow.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountIdentityVerificationWorkflow(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class AccountIdentityVerificationWorkflow(object): 'workflow_id': 'workflowId' } - def __init__(self, default_name=None, steps=None, workflow_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountIdentityVerificationWorkflow - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._default_name = None self._steps = None self._workflow_id = None self.discriminator = None - if default_name is not None: - self.default_name = default_name - if steps is not None: - self.steps = steps - if workflow_id is not None: - self.workflow_id = workflow_id + setattr(self, "_{}".format('default_name'), kwargs.get('default_name', None)) + setattr(self, "_{}".format('steps'), kwargs.get('steps', None)) + setattr(self, "_{}".format('workflow_id'), kwargs.get('workflow_id', None)) @property def default_name(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, AccountIdentityVerificationWorkflow): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountIdentityVerificationWorkflow): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_information.py b/docusign_esign/models/account_information.py index 6643df5e..a37dce02 100644 --- a/docusign_esign/models/account_information.py +++ b/docusign_esign/models/account_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -100,8 +102,11 @@ class AccountInformation(object): 'suspension_status': 'suspensionStatus' } - def __init__(self, account_id_guid=None, account_name=None, allow_transaction_rooms=None, billing_period_days_remaining=None, billing_period_end_date=None, billing_period_envelopes_allowed=None, billing_period_envelopes_sent=None, billing_period_start_date=None, billing_profile=None, can_cancel_renewal=None, can_upgrade=None, connect_permission=None, created_date=None, currency_code=None, current_plan_id=None, distributor_code=None, docu_sign_landing_url=None, envelope_sending_blocked=None, envelope_unit_price=None, external_account_id=None, forgotten_password_questions_count=None, is_downgrade=None, payment_method=None, plan_classification=None, plan_end_date=None, plan_name=None, plan_start_date=None, seats_allowed=None, seats_in_use=None, status21_cfr_part11=None, suspension_date=None, suspension_status=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_id_guid = None self._account_name = None @@ -137,70 +142,38 @@ def __init__(self, account_id_guid=None, account_name=None, allow_transaction_ro self._suspension_status = None self.discriminator = None - if account_id_guid is not None: - self.account_id_guid = account_id_guid - if account_name is not None: - self.account_name = account_name - if allow_transaction_rooms is not None: - self.allow_transaction_rooms = allow_transaction_rooms - if billing_period_days_remaining is not None: - self.billing_period_days_remaining = billing_period_days_remaining - if billing_period_end_date is not None: - self.billing_period_end_date = billing_period_end_date - if billing_period_envelopes_allowed is not None: - self.billing_period_envelopes_allowed = billing_period_envelopes_allowed - if billing_period_envelopes_sent is not None: - self.billing_period_envelopes_sent = billing_period_envelopes_sent - if billing_period_start_date is not None: - self.billing_period_start_date = billing_period_start_date - if billing_profile is not None: - self.billing_profile = billing_profile - if can_cancel_renewal is not None: - self.can_cancel_renewal = can_cancel_renewal - if can_upgrade is not None: - self.can_upgrade = can_upgrade - if connect_permission is not None: - self.connect_permission = connect_permission - if created_date is not None: - self.created_date = created_date - if currency_code is not None: - self.currency_code = currency_code - if current_plan_id is not None: - self.current_plan_id = current_plan_id - if distributor_code is not None: - self.distributor_code = distributor_code - if docu_sign_landing_url is not None: - self.docu_sign_landing_url = docu_sign_landing_url - if envelope_sending_blocked is not None: - self.envelope_sending_blocked = envelope_sending_blocked - if envelope_unit_price is not None: - self.envelope_unit_price = envelope_unit_price - if external_account_id is not None: - self.external_account_id = external_account_id - if forgotten_password_questions_count is not None: - self.forgotten_password_questions_count = forgotten_password_questions_count - if is_downgrade is not None: - self.is_downgrade = is_downgrade - if payment_method is not None: - self.payment_method = payment_method - if plan_classification is not None: - self.plan_classification = plan_classification - if plan_end_date is not None: - self.plan_end_date = plan_end_date - if plan_name is not None: - self.plan_name = plan_name - if plan_start_date is not None: - self.plan_start_date = plan_start_date - if seats_allowed is not None: - self.seats_allowed = seats_allowed - if seats_in_use is not None: - self.seats_in_use = seats_in_use - if status21_cfr_part11 is not None: - self.status21_cfr_part11 = status21_cfr_part11 - if suspension_date is not None: - self.suspension_date = suspension_date - if suspension_status is not None: - self.suspension_status = suspension_status + setattr(self, "_{}".format('account_id_guid'), kwargs.get('account_id_guid', None)) + setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) + setattr(self, "_{}".format('allow_transaction_rooms'), kwargs.get('allow_transaction_rooms', None)) + setattr(self, "_{}".format('billing_period_days_remaining'), kwargs.get('billing_period_days_remaining', None)) + setattr(self, "_{}".format('billing_period_end_date'), kwargs.get('billing_period_end_date', None)) + setattr(self, "_{}".format('billing_period_envelopes_allowed'), kwargs.get('billing_period_envelopes_allowed', None)) + setattr(self, "_{}".format('billing_period_envelopes_sent'), kwargs.get('billing_period_envelopes_sent', None)) + setattr(self, "_{}".format('billing_period_start_date'), kwargs.get('billing_period_start_date', None)) + setattr(self, "_{}".format('billing_profile'), kwargs.get('billing_profile', None)) + setattr(self, "_{}".format('can_cancel_renewal'), kwargs.get('can_cancel_renewal', None)) + setattr(self, "_{}".format('can_upgrade'), kwargs.get('can_upgrade', None)) + setattr(self, "_{}".format('connect_permission'), kwargs.get('connect_permission', None)) + setattr(self, "_{}".format('created_date'), kwargs.get('created_date', None)) + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('current_plan_id'), kwargs.get('current_plan_id', None)) + setattr(self, "_{}".format('distributor_code'), kwargs.get('distributor_code', None)) + setattr(self, "_{}".format('docu_sign_landing_url'), kwargs.get('docu_sign_landing_url', None)) + setattr(self, "_{}".format('envelope_sending_blocked'), kwargs.get('envelope_sending_blocked', None)) + setattr(self, "_{}".format('envelope_unit_price'), kwargs.get('envelope_unit_price', None)) + setattr(self, "_{}".format('external_account_id'), kwargs.get('external_account_id', None)) + setattr(self, "_{}".format('forgotten_password_questions_count'), kwargs.get('forgotten_password_questions_count', None)) + setattr(self, "_{}".format('is_downgrade'), kwargs.get('is_downgrade', None)) + setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) + setattr(self, "_{}".format('plan_classification'), kwargs.get('plan_classification', None)) + setattr(self, "_{}".format('plan_end_date'), kwargs.get('plan_end_date', None)) + setattr(self, "_{}".format('plan_name'), kwargs.get('plan_name', None)) + setattr(self, "_{}".format('plan_start_date'), kwargs.get('plan_start_date', None)) + setattr(self, "_{}".format('seats_allowed'), kwargs.get('seats_allowed', None)) + setattr(self, "_{}".format('seats_in_use'), kwargs.get('seats_in_use', None)) + setattr(self, "_{}".format('status21_cfr_part11'), kwargs.get('status21_cfr_part11', None)) + setattr(self, "_{}".format('suspension_date'), kwargs.get('suspension_date', None)) + setattr(self, "_{}".format('suspension_status'), kwargs.get('suspension_status', None)) @property def account_id_guid(self): @@ -978,8 +951,11 @@ def __eq__(self, other): if not isinstance(other, AccountInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_minimum_password_length.py b/docusign_esign/models/account_minimum_password_length.py index 7c836207..c7ca34d2 100644 --- a/docusign_esign/models/account_minimum_password_length.py +++ b/docusign_esign/models/account_minimum_password_length.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountMinimumPasswordLength(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AccountMinimumPasswordLength(object): 'minimum_length': 'minimumLength' } - def __init__(self, maximum_length=None, minimum_length=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountMinimumPasswordLength - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._maximum_length = None self._minimum_length = None self.discriminator = None - if maximum_length is not None: - self.maximum_length = maximum_length - if minimum_length is not None: - self.minimum_length = minimum_length + setattr(self, "_{}".format('maximum_length'), kwargs.get('maximum_length', None)) + setattr(self, "_{}".format('minimum_length'), kwargs.get('minimum_length', None)) @property def maximum_length(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AccountMinimumPasswordLength): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountMinimumPasswordLength): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_expire_password_days.py b/docusign_esign/models/account_password_expire_password_days.py index 12485efe..1282217c 100644 --- a/docusign_esign/models/account_password_expire_password_days.py +++ b/docusign_esign/models/account_password_expire_password_days.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordExpirePasswordDays(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AccountPasswordExpirePasswordDays(object): 'minimum_days': 'minimumDays' } - def __init__(self, maximum_days=None, minimum_days=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordExpirePasswordDays - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._maximum_days = None self._minimum_days = None self.discriminator = None - if maximum_days is not None: - self.maximum_days = maximum_days - if minimum_days is not None: - self.minimum_days = minimum_days + setattr(self, "_{}".format('maximum_days'), kwargs.get('maximum_days', None)) + setattr(self, "_{}".format('minimum_days'), kwargs.get('minimum_days', None)) @property def maximum_days(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordExpirePasswordDays): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordExpirePasswordDays): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_lockout_duration_minutes.py b/docusign_esign/models/account_password_lockout_duration_minutes.py index ffdb67e6..78006603 100644 --- a/docusign_esign/models/account_password_lockout_duration_minutes.py +++ b/docusign_esign/models/account_password_lockout_duration_minutes.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordLockoutDurationMinutes(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AccountPasswordLockoutDurationMinutes(object): 'minimum_minutes': 'minimumMinutes' } - def __init__(self, maximum_minutes=None, minimum_minutes=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordLockoutDurationMinutes - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._maximum_minutes = None self._minimum_minutes = None self.discriminator = None - if maximum_minutes is not None: - self.maximum_minutes = maximum_minutes - if minimum_minutes is not None: - self.minimum_minutes = minimum_minutes + setattr(self, "_{}".format('maximum_minutes'), kwargs.get('maximum_minutes', None)) + setattr(self, "_{}".format('minimum_minutes'), kwargs.get('minimum_minutes', None)) @property def maximum_minutes(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordLockoutDurationMinutes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordLockoutDurationMinutes): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_lockout_duration_type.py b/docusign_esign/models/account_password_lockout_duration_type.py index efa0801c..5ac13f40 100644 --- a/docusign_esign/models/account_password_lockout_duration_type.py +++ b/docusign_esign/models/account_password_lockout_duration_type.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordLockoutDurationType(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class AccountPasswordLockoutDurationType(object): 'options': 'options' } - def __init__(self, options=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordLockoutDurationType - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._options = None self.discriminator = None - if options is not None: - self.options = options + setattr(self, "_{}".format('options'), kwargs.get('options', None)) @property def options(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordLockoutDurationType): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordLockoutDurationType): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_minimum_password_age_days.py b/docusign_esign/models/account_password_minimum_password_age_days.py index b00b458d..42ad0613 100644 --- a/docusign_esign/models/account_password_minimum_password_age_days.py +++ b/docusign_esign/models/account_password_minimum_password_age_days.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordMinimumPasswordAgeDays(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AccountPasswordMinimumPasswordAgeDays(object): 'minimum_age': 'minimumAge' } - def __init__(self, maximum_age=None, minimum_age=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordMinimumPasswordAgeDays - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._maximum_age = None self._minimum_age = None self.discriminator = None - if maximum_age is not None: - self.maximum_age = maximum_age - if minimum_age is not None: - self.minimum_age = minimum_age + setattr(self, "_{}".format('maximum_age'), kwargs.get('maximum_age', None)) + setattr(self, "_{}".format('minimum_age'), kwargs.get('minimum_age', None)) @property def maximum_age(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordMinimumPasswordAgeDays): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordMinimumPasswordAgeDays): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_questions_required.py b/docusign_esign/models/account_password_questions_required.py index 28b67d58..cd610c29 100644 --- a/docusign_esign/models/account_password_questions_required.py +++ b/docusign_esign/models/account_password_questions_required.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordQuestionsRequired(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AccountPasswordQuestionsRequired(object): 'minimum_questions': 'minimumQuestions' } - def __init__(self, maximum_questions=None, minimum_questions=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordQuestionsRequired - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._maximum_questions = None self._minimum_questions = None self.discriminator = None - if maximum_questions is not None: - self.maximum_questions = maximum_questions - if minimum_questions is not None: - self.minimum_questions = minimum_questions + setattr(self, "_{}".format('maximum_questions'), kwargs.get('maximum_questions', None)) + setattr(self, "_{}".format('minimum_questions'), kwargs.get('minimum_questions', None)) @property def maximum_questions(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordQuestionsRequired): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordQuestionsRequired): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_rules.py b/docusign_esign/models/account_password_rules.py index 4fef9b3b..a7f57112 100644 --- a/docusign_esign/models/account_password_rules.py +++ b/docusign_esign/models/account_password_rules.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordRules(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -76,8 +78,11 @@ class AccountPasswordRules(object): 'questions_required_metadata': 'questionsRequiredMetadata' } - def __init__(self, expire_password=None, expire_password_days=None, expire_password_days_metadata=None, lockout_duration_minutes=None, lockout_duration_minutes_metadata=None, lockout_duration_type=None, lockout_duration_type_metadata=None, minimum_password_age_days=None, minimum_password_age_days_metadata=None, minimum_password_length=None, minimum_password_length_metadata=None, password_include_digit=None, password_include_digit_or_special_character=None, password_include_lower_case=None, password_include_special_character=None, password_include_upper_case=None, password_strength_type=None, password_strength_type_metadata=None, questions_required=None, questions_required_metadata=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordRules - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._expire_password = None self._expire_password_days = None @@ -101,46 +106,26 @@ def __init__(self, expire_password=None, expire_password_days=None, expire_passw self._questions_required_metadata = None self.discriminator = None - if expire_password is not None: - self.expire_password = expire_password - if expire_password_days is not None: - self.expire_password_days = expire_password_days - if expire_password_days_metadata is not None: - self.expire_password_days_metadata = expire_password_days_metadata - if lockout_duration_minutes is not None: - self.lockout_duration_minutes = lockout_duration_minutes - if lockout_duration_minutes_metadata is not None: - self.lockout_duration_minutes_metadata = lockout_duration_minutes_metadata - if lockout_duration_type is not None: - self.lockout_duration_type = lockout_duration_type - if lockout_duration_type_metadata is not None: - self.lockout_duration_type_metadata = lockout_duration_type_metadata - if minimum_password_age_days is not None: - self.minimum_password_age_days = minimum_password_age_days - if minimum_password_age_days_metadata is not None: - self.minimum_password_age_days_metadata = minimum_password_age_days_metadata - if minimum_password_length is not None: - self.minimum_password_length = minimum_password_length - if minimum_password_length_metadata is not None: - self.minimum_password_length_metadata = minimum_password_length_metadata - if password_include_digit is not None: - self.password_include_digit = password_include_digit - if password_include_digit_or_special_character is not None: - self.password_include_digit_or_special_character = password_include_digit_or_special_character - if password_include_lower_case is not None: - self.password_include_lower_case = password_include_lower_case - if password_include_special_character is not None: - self.password_include_special_character = password_include_special_character - if password_include_upper_case is not None: - self.password_include_upper_case = password_include_upper_case - if password_strength_type is not None: - self.password_strength_type = password_strength_type - if password_strength_type_metadata is not None: - self.password_strength_type_metadata = password_strength_type_metadata - if questions_required is not None: - self.questions_required = questions_required - if questions_required_metadata is not None: - self.questions_required_metadata = questions_required_metadata + setattr(self, "_{}".format('expire_password'), kwargs.get('expire_password', None)) + setattr(self, "_{}".format('expire_password_days'), kwargs.get('expire_password_days', None)) + setattr(self, "_{}".format('expire_password_days_metadata'), kwargs.get('expire_password_days_metadata', None)) + setattr(self, "_{}".format('lockout_duration_minutes'), kwargs.get('lockout_duration_minutes', None)) + setattr(self, "_{}".format('lockout_duration_minutes_metadata'), kwargs.get('lockout_duration_minutes_metadata', None)) + setattr(self, "_{}".format('lockout_duration_type'), kwargs.get('lockout_duration_type', None)) + setattr(self, "_{}".format('lockout_duration_type_metadata'), kwargs.get('lockout_duration_type_metadata', None)) + setattr(self, "_{}".format('minimum_password_age_days'), kwargs.get('minimum_password_age_days', None)) + setattr(self, "_{}".format('minimum_password_age_days_metadata'), kwargs.get('minimum_password_age_days_metadata', None)) + setattr(self, "_{}".format('minimum_password_length'), kwargs.get('minimum_password_length', None)) + setattr(self, "_{}".format('minimum_password_length_metadata'), kwargs.get('minimum_password_length_metadata', None)) + setattr(self, "_{}".format('password_include_digit'), kwargs.get('password_include_digit', None)) + setattr(self, "_{}".format('password_include_digit_or_special_character'), kwargs.get('password_include_digit_or_special_character', None)) + setattr(self, "_{}".format('password_include_lower_case'), kwargs.get('password_include_lower_case', None)) + setattr(self, "_{}".format('password_include_special_character'), kwargs.get('password_include_special_character', None)) + setattr(self, "_{}".format('password_include_upper_case'), kwargs.get('password_include_upper_case', None)) + setattr(self, "_{}".format('password_strength_type'), kwargs.get('password_strength_type', None)) + setattr(self, "_{}".format('password_strength_type_metadata'), kwargs.get('password_strength_type_metadata', None)) + setattr(self, "_{}".format('questions_required'), kwargs.get('questions_required', None)) + setattr(self, "_{}".format('questions_required_metadata'), kwargs.get('questions_required_metadata', None)) @property def expire_password(self): @@ -628,8 +613,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordRules): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordRules): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_strength_type.py b/docusign_esign/models/account_password_strength_type.py index ff364945..43e9da71 100644 --- a/docusign_esign/models/account_password_strength_type.py +++ b/docusign_esign/models/account_password_strength_type.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordStrengthType(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class AccountPasswordStrengthType(object): 'options': 'options' } - def __init__(self, options=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordStrengthType - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._options = None self.discriminator = None - if options is not None: - self.options = options + setattr(self, "_{}".format('options'), kwargs.get('options', None)) @property def options(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordStrengthType): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordStrengthType): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_password_strength_type_option.py b/docusign_esign/models/account_password_strength_type_option.py index d93eda51..44d946fc 100644 --- a/docusign_esign/models/account_password_strength_type_option.py +++ b/docusign_esign/models/account_password_strength_type_option.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountPasswordStrengthTypeOption(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class AccountPasswordStrengthTypeOption(object): 'password_include_upper_case': 'passwordIncludeUpperCase' } - def __init__(self, minimum_length=None, name=None, password_include_digit=None, password_include_digit_or_special_character=None, password_include_lower_case=None, password_include_special_character=None, password_include_upper_case=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountPasswordStrengthTypeOption - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._minimum_length = None self._name = None @@ -62,20 +67,13 @@ def __init__(self, minimum_length=None, name=None, password_include_digit=None, self._password_include_upper_case = None self.discriminator = None - if minimum_length is not None: - self.minimum_length = minimum_length - if name is not None: - self.name = name - if password_include_digit is not None: - self.password_include_digit = password_include_digit - if password_include_digit_or_special_character is not None: - self.password_include_digit_or_special_character = password_include_digit_or_special_character - if password_include_lower_case is not None: - self.password_include_lower_case = password_include_lower_case - if password_include_special_character is not None: - self.password_include_special_character = password_include_special_character - if password_include_upper_case is not None: - self.password_include_upper_case = password_include_upper_case + setattr(self, "_{}".format('minimum_length'), kwargs.get('minimum_length', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('password_include_digit'), kwargs.get('password_include_digit', None)) + setattr(self, "_{}".format('password_include_digit_or_special_character'), kwargs.get('password_include_digit_or_special_character', None)) + setattr(self, "_{}".format('password_include_lower_case'), kwargs.get('password_include_lower_case', None)) + setattr(self, "_{}".format('password_include_special_character'), kwargs.get('password_include_special_character', None)) + setattr(self, "_{}".format('password_include_upper_case'), kwargs.get('password_include_upper_case', None)) @property def minimum_length(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, AccountPasswordStrengthTypeOption): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountPasswordStrengthTypeOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_role_settings.py b/docusign_esign/models/account_role_settings.py index 9d6715d9..4b102257 100644 --- a/docusign_esign/models/account_role_settings.py +++ b/docusign_esign/models/account_role_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountRoleSettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -176,8 +178,11 @@ class AccountRoleSettings(object): 'vaulting_mode_metadata': 'vaultingModeMetadata' } - def __init__(self, allow_account_management=None, allow_account_management_metadata=None, allow_api_access=None, allow_api_access_metadata=None, allow_api_access_to_account=None, allow_api_access_to_account_metadata=None, allow_api_sending_on_behalf_of_others=None, allow_api_sending_on_behalf_of_others_metadata=None, allow_api_sequential_signing=None, allow_api_sequential_signing_metadata=None, allow_auto_tagging=None, allow_auto_tagging_metadata=None, allow_bulk_sending=None, allow_bulk_sending_metadata=None, allow_docu_sign_desktop_client=None, allow_docu_sign_desktop_client_metadata=None, allowed_address_book_access=None, allowed_address_book_access_metadata=None, allowed_template_access=None, allowed_template_access_metadata=None, allowed_to_be_envelope_transfer_recipient=None, allowed_to_be_envelope_transfer_recipient_metadata=None, allow_envelope_sending=None, allow_envelope_sending_metadata=None, allow_e_seal_recipients=None, allow_e_seal_recipients_metadata=None, allow_power_forms_admin_to_access_all_power_form_envelopes=None, allow_power_forms_admin_to_access_all_power_form_envelopes_metadata=None, allow_senders_to_set_recipient_email_language=None, allow_senders_to_set_recipient_email_language_metadata=None, allow_signer_attachments=None, allow_signer_attachments_metadata=None, allow_supplemental_documents=None, allow_supplemental_documents_metadata=None, allow_tagging_in_send_and_correct=None, allow_tagging_in_send_and_correct_metadata=None, allow_vaulting=None, allow_vaulting_metadata=None, allow_wet_signing_override=None, allow_wet_signing_override_metadata=None, can_create_workspaces=None, can_create_workspaces_metadata=None, disable_document_upload=None, disable_document_upload_metadata=None, disable_other_actions=None, disable_other_actions_metadata=None, enable_api_request_logging=None, enable_api_request_logging_metadata=None, enable_recipient_viewing_notifications=None, enable_recipient_viewing_notifications_metadata=None, enable_sequential_signing_interface=None, enable_sequential_signing_interface_metadata=None, enable_transaction_point_integration=None, enable_transaction_point_integration_metadata=None, power_form_role=None, power_form_role_metadata=None, receive_completed_self_signed_documents_as_email_links=None, receive_completed_self_signed_documents_as_email_links_metadata=None, supplemental_documents_must_accept=None, supplemental_documents_must_accept_metadata=None, supplemental_documents_must_read=None, supplemental_documents_must_read_metadata=None, supplemental_documents_must_view=None, supplemental_documents_must_view_metadata=None, use_new_docu_sign_experience_interface=None, use_new_docu_sign_experience_interface_metadata=None, use_new_sending_interface=None, use_new_sending_interface_metadata=None, vaulting_mode=None, vaulting_mode_metadata=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountRoleSettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_account_management = None self._allow_account_management_metadata = None @@ -251,146 +256,76 @@ def __init__(self, allow_account_management=None, allow_account_management_metad self._vaulting_mode_metadata = None self.discriminator = None - if allow_account_management is not None: - self.allow_account_management = allow_account_management - if allow_account_management_metadata is not None: - self.allow_account_management_metadata = allow_account_management_metadata - if allow_api_access is not None: - self.allow_api_access = allow_api_access - if allow_api_access_metadata is not None: - self.allow_api_access_metadata = allow_api_access_metadata - if allow_api_access_to_account is not None: - self.allow_api_access_to_account = allow_api_access_to_account - if allow_api_access_to_account_metadata is not None: - self.allow_api_access_to_account_metadata = allow_api_access_to_account_metadata - if allow_api_sending_on_behalf_of_others is not None: - self.allow_api_sending_on_behalf_of_others = allow_api_sending_on_behalf_of_others - if allow_api_sending_on_behalf_of_others_metadata is not None: - self.allow_api_sending_on_behalf_of_others_metadata = allow_api_sending_on_behalf_of_others_metadata - if allow_api_sequential_signing is not None: - self.allow_api_sequential_signing = allow_api_sequential_signing - if allow_api_sequential_signing_metadata is not None: - self.allow_api_sequential_signing_metadata = allow_api_sequential_signing_metadata - if allow_auto_tagging is not None: - self.allow_auto_tagging = allow_auto_tagging - if allow_auto_tagging_metadata is not None: - self.allow_auto_tagging_metadata = allow_auto_tagging_metadata - if allow_bulk_sending is not None: - self.allow_bulk_sending = allow_bulk_sending - if allow_bulk_sending_metadata is not None: - self.allow_bulk_sending_metadata = allow_bulk_sending_metadata - if allow_docu_sign_desktop_client is not None: - self.allow_docu_sign_desktop_client = allow_docu_sign_desktop_client - if allow_docu_sign_desktop_client_metadata is not None: - self.allow_docu_sign_desktop_client_metadata = allow_docu_sign_desktop_client_metadata - if allowed_address_book_access is not None: - self.allowed_address_book_access = allowed_address_book_access - if allowed_address_book_access_metadata is not None: - self.allowed_address_book_access_metadata = allowed_address_book_access_metadata - if allowed_template_access is not None: - self.allowed_template_access = allowed_template_access - if allowed_template_access_metadata is not None: - self.allowed_template_access_metadata = allowed_template_access_metadata - if allowed_to_be_envelope_transfer_recipient is not None: - self.allowed_to_be_envelope_transfer_recipient = allowed_to_be_envelope_transfer_recipient - if allowed_to_be_envelope_transfer_recipient_metadata is not None: - self.allowed_to_be_envelope_transfer_recipient_metadata = allowed_to_be_envelope_transfer_recipient_metadata - if allow_envelope_sending is not None: - self.allow_envelope_sending = allow_envelope_sending - if allow_envelope_sending_metadata is not None: - self.allow_envelope_sending_metadata = allow_envelope_sending_metadata - if allow_e_seal_recipients is not None: - self.allow_e_seal_recipients = allow_e_seal_recipients - if allow_e_seal_recipients_metadata is not None: - self.allow_e_seal_recipients_metadata = allow_e_seal_recipients_metadata - if allow_power_forms_admin_to_access_all_power_form_envelopes is not None: - self.allow_power_forms_admin_to_access_all_power_form_envelopes = allow_power_forms_admin_to_access_all_power_form_envelopes - if allow_power_forms_admin_to_access_all_power_form_envelopes_metadata is not None: - self.allow_power_forms_admin_to_access_all_power_form_envelopes_metadata = allow_power_forms_admin_to_access_all_power_form_envelopes_metadata - if allow_senders_to_set_recipient_email_language is not None: - self.allow_senders_to_set_recipient_email_language = allow_senders_to_set_recipient_email_language - if allow_senders_to_set_recipient_email_language_metadata is not None: - self.allow_senders_to_set_recipient_email_language_metadata = allow_senders_to_set_recipient_email_language_metadata - if allow_signer_attachments is not None: - self.allow_signer_attachments = allow_signer_attachments - if allow_signer_attachments_metadata is not None: - self.allow_signer_attachments_metadata = allow_signer_attachments_metadata - if allow_supplemental_documents is not None: - self.allow_supplemental_documents = allow_supplemental_documents - if allow_supplemental_documents_metadata is not None: - self.allow_supplemental_documents_metadata = allow_supplemental_documents_metadata - if allow_tagging_in_send_and_correct is not None: - self.allow_tagging_in_send_and_correct = allow_tagging_in_send_and_correct - if allow_tagging_in_send_and_correct_metadata is not None: - self.allow_tagging_in_send_and_correct_metadata = allow_tagging_in_send_and_correct_metadata - if allow_vaulting is not None: - self.allow_vaulting = allow_vaulting - if allow_vaulting_metadata is not None: - self.allow_vaulting_metadata = allow_vaulting_metadata - if allow_wet_signing_override is not None: - self.allow_wet_signing_override = allow_wet_signing_override - if allow_wet_signing_override_metadata is not None: - self.allow_wet_signing_override_metadata = allow_wet_signing_override_metadata - if can_create_workspaces is not None: - self.can_create_workspaces = can_create_workspaces - if can_create_workspaces_metadata is not None: - self.can_create_workspaces_metadata = can_create_workspaces_metadata - if disable_document_upload is not None: - self.disable_document_upload = disable_document_upload - if disable_document_upload_metadata is not None: - self.disable_document_upload_metadata = disable_document_upload_metadata - if disable_other_actions is not None: - self.disable_other_actions = disable_other_actions - if disable_other_actions_metadata is not None: - self.disable_other_actions_metadata = disable_other_actions_metadata - if enable_api_request_logging is not None: - self.enable_api_request_logging = enable_api_request_logging - if enable_api_request_logging_metadata is not None: - self.enable_api_request_logging_metadata = enable_api_request_logging_metadata - if enable_recipient_viewing_notifications is not None: - self.enable_recipient_viewing_notifications = enable_recipient_viewing_notifications - if enable_recipient_viewing_notifications_metadata is not None: - self.enable_recipient_viewing_notifications_metadata = enable_recipient_viewing_notifications_metadata - if enable_sequential_signing_interface is not None: - self.enable_sequential_signing_interface = enable_sequential_signing_interface - if enable_sequential_signing_interface_metadata is not None: - self.enable_sequential_signing_interface_metadata = enable_sequential_signing_interface_metadata - if enable_transaction_point_integration is not None: - self.enable_transaction_point_integration = enable_transaction_point_integration - if enable_transaction_point_integration_metadata is not None: - self.enable_transaction_point_integration_metadata = enable_transaction_point_integration_metadata - if power_form_role is not None: - self.power_form_role = power_form_role - if power_form_role_metadata is not None: - self.power_form_role_metadata = power_form_role_metadata - if receive_completed_self_signed_documents_as_email_links is not None: - self.receive_completed_self_signed_documents_as_email_links = receive_completed_self_signed_documents_as_email_links - if receive_completed_self_signed_documents_as_email_links_metadata is not None: - self.receive_completed_self_signed_documents_as_email_links_metadata = receive_completed_self_signed_documents_as_email_links_metadata - if supplemental_documents_must_accept is not None: - self.supplemental_documents_must_accept = supplemental_documents_must_accept - if supplemental_documents_must_accept_metadata is not None: - self.supplemental_documents_must_accept_metadata = supplemental_documents_must_accept_metadata - if supplemental_documents_must_read is not None: - self.supplemental_documents_must_read = supplemental_documents_must_read - if supplemental_documents_must_read_metadata is not None: - self.supplemental_documents_must_read_metadata = supplemental_documents_must_read_metadata - if supplemental_documents_must_view is not None: - self.supplemental_documents_must_view = supplemental_documents_must_view - if supplemental_documents_must_view_metadata is not None: - self.supplemental_documents_must_view_metadata = supplemental_documents_must_view_metadata - if use_new_docu_sign_experience_interface is not None: - self.use_new_docu_sign_experience_interface = use_new_docu_sign_experience_interface - if use_new_docu_sign_experience_interface_metadata is not None: - self.use_new_docu_sign_experience_interface_metadata = use_new_docu_sign_experience_interface_metadata - if use_new_sending_interface is not None: - self.use_new_sending_interface = use_new_sending_interface - if use_new_sending_interface_metadata is not None: - self.use_new_sending_interface_metadata = use_new_sending_interface_metadata - if vaulting_mode is not None: - self.vaulting_mode = vaulting_mode - if vaulting_mode_metadata is not None: - self.vaulting_mode_metadata = vaulting_mode_metadata + setattr(self, "_{}".format('allow_account_management'), kwargs.get('allow_account_management', None)) + setattr(self, "_{}".format('allow_account_management_metadata'), kwargs.get('allow_account_management_metadata', None)) + setattr(self, "_{}".format('allow_api_access'), kwargs.get('allow_api_access', None)) + setattr(self, "_{}".format('allow_api_access_metadata'), kwargs.get('allow_api_access_metadata', None)) + setattr(self, "_{}".format('allow_api_access_to_account'), kwargs.get('allow_api_access_to_account', None)) + setattr(self, "_{}".format('allow_api_access_to_account_metadata'), kwargs.get('allow_api_access_to_account_metadata', None)) + setattr(self, "_{}".format('allow_api_sending_on_behalf_of_others'), kwargs.get('allow_api_sending_on_behalf_of_others', None)) + setattr(self, "_{}".format('allow_api_sending_on_behalf_of_others_metadata'), kwargs.get('allow_api_sending_on_behalf_of_others_metadata', None)) + setattr(self, "_{}".format('allow_api_sequential_signing'), kwargs.get('allow_api_sequential_signing', None)) + setattr(self, "_{}".format('allow_api_sequential_signing_metadata'), kwargs.get('allow_api_sequential_signing_metadata', None)) + setattr(self, "_{}".format('allow_auto_tagging'), kwargs.get('allow_auto_tagging', None)) + setattr(self, "_{}".format('allow_auto_tagging_metadata'), kwargs.get('allow_auto_tagging_metadata', None)) + setattr(self, "_{}".format('allow_bulk_sending'), kwargs.get('allow_bulk_sending', None)) + setattr(self, "_{}".format('allow_bulk_sending_metadata'), kwargs.get('allow_bulk_sending_metadata', None)) + setattr(self, "_{}".format('allow_docu_sign_desktop_client'), kwargs.get('allow_docu_sign_desktop_client', None)) + setattr(self, "_{}".format('allow_docu_sign_desktop_client_metadata'), kwargs.get('allow_docu_sign_desktop_client_metadata', None)) + setattr(self, "_{}".format('allowed_address_book_access'), kwargs.get('allowed_address_book_access', None)) + setattr(self, "_{}".format('allowed_address_book_access_metadata'), kwargs.get('allowed_address_book_access_metadata', None)) + setattr(self, "_{}".format('allowed_template_access'), kwargs.get('allowed_template_access', None)) + setattr(self, "_{}".format('allowed_template_access_metadata'), kwargs.get('allowed_template_access_metadata', None)) + setattr(self, "_{}".format('allowed_to_be_envelope_transfer_recipient'), kwargs.get('allowed_to_be_envelope_transfer_recipient', None)) + setattr(self, "_{}".format('allowed_to_be_envelope_transfer_recipient_metadata'), kwargs.get('allowed_to_be_envelope_transfer_recipient_metadata', None)) + setattr(self, "_{}".format('allow_envelope_sending'), kwargs.get('allow_envelope_sending', None)) + setattr(self, "_{}".format('allow_envelope_sending_metadata'), kwargs.get('allow_envelope_sending_metadata', None)) + setattr(self, "_{}".format('allow_e_seal_recipients'), kwargs.get('allow_e_seal_recipients', None)) + setattr(self, "_{}".format('allow_e_seal_recipients_metadata'), kwargs.get('allow_e_seal_recipients_metadata', None)) + setattr(self, "_{}".format('allow_power_forms_admin_to_access_all_power_form_envelopes'), kwargs.get('allow_power_forms_admin_to_access_all_power_form_envelopes', None)) + setattr(self, "_{}".format('allow_power_forms_admin_to_access_all_power_form_envelopes_metadata'), kwargs.get('allow_power_forms_admin_to_access_all_power_form_envelopes_metadata', None)) + setattr(self, "_{}".format('allow_senders_to_set_recipient_email_language'), kwargs.get('allow_senders_to_set_recipient_email_language', None)) + setattr(self, "_{}".format('allow_senders_to_set_recipient_email_language_metadata'), kwargs.get('allow_senders_to_set_recipient_email_language_metadata', None)) + setattr(self, "_{}".format('allow_signer_attachments'), kwargs.get('allow_signer_attachments', None)) + setattr(self, "_{}".format('allow_signer_attachments_metadata'), kwargs.get('allow_signer_attachments_metadata', None)) + setattr(self, "_{}".format('allow_supplemental_documents'), kwargs.get('allow_supplemental_documents', None)) + setattr(self, "_{}".format('allow_supplemental_documents_metadata'), kwargs.get('allow_supplemental_documents_metadata', None)) + setattr(self, "_{}".format('allow_tagging_in_send_and_correct'), kwargs.get('allow_tagging_in_send_and_correct', None)) + setattr(self, "_{}".format('allow_tagging_in_send_and_correct_metadata'), kwargs.get('allow_tagging_in_send_and_correct_metadata', None)) + setattr(self, "_{}".format('allow_vaulting'), kwargs.get('allow_vaulting', None)) + setattr(self, "_{}".format('allow_vaulting_metadata'), kwargs.get('allow_vaulting_metadata', None)) + setattr(self, "_{}".format('allow_wet_signing_override'), kwargs.get('allow_wet_signing_override', None)) + setattr(self, "_{}".format('allow_wet_signing_override_metadata'), kwargs.get('allow_wet_signing_override_metadata', None)) + setattr(self, "_{}".format('can_create_workspaces'), kwargs.get('can_create_workspaces', None)) + setattr(self, "_{}".format('can_create_workspaces_metadata'), kwargs.get('can_create_workspaces_metadata', None)) + setattr(self, "_{}".format('disable_document_upload'), kwargs.get('disable_document_upload', None)) + setattr(self, "_{}".format('disable_document_upload_metadata'), kwargs.get('disable_document_upload_metadata', None)) + setattr(self, "_{}".format('disable_other_actions'), kwargs.get('disable_other_actions', None)) + setattr(self, "_{}".format('disable_other_actions_metadata'), kwargs.get('disable_other_actions_metadata', None)) + setattr(self, "_{}".format('enable_api_request_logging'), kwargs.get('enable_api_request_logging', None)) + setattr(self, "_{}".format('enable_api_request_logging_metadata'), kwargs.get('enable_api_request_logging_metadata', None)) + setattr(self, "_{}".format('enable_recipient_viewing_notifications'), kwargs.get('enable_recipient_viewing_notifications', None)) + setattr(self, "_{}".format('enable_recipient_viewing_notifications_metadata'), kwargs.get('enable_recipient_viewing_notifications_metadata', None)) + setattr(self, "_{}".format('enable_sequential_signing_interface'), kwargs.get('enable_sequential_signing_interface', None)) + setattr(self, "_{}".format('enable_sequential_signing_interface_metadata'), kwargs.get('enable_sequential_signing_interface_metadata', None)) + setattr(self, "_{}".format('enable_transaction_point_integration'), kwargs.get('enable_transaction_point_integration', None)) + setattr(self, "_{}".format('enable_transaction_point_integration_metadata'), kwargs.get('enable_transaction_point_integration_metadata', None)) + setattr(self, "_{}".format('power_form_role'), kwargs.get('power_form_role', None)) + setattr(self, "_{}".format('power_form_role_metadata'), kwargs.get('power_form_role_metadata', None)) + setattr(self, "_{}".format('receive_completed_self_signed_documents_as_email_links'), kwargs.get('receive_completed_self_signed_documents_as_email_links', None)) + setattr(self, "_{}".format('receive_completed_self_signed_documents_as_email_links_metadata'), kwargs.get('receive_completed_self_signed_documents_as_email_links_metadata', None)) + setattr(self, "_{}".format('supplemental_documents_must_accept'), kwargs.get('supplemental_documents_must_accept', None)) + setattr(self, "_{}".format('supplemental_documents_must_accept_metadata'), kwargs.get('supplemental_documents_must_accept_metadata', None)) + setattr(self, "_{}".format('supplemental_documents_must_read'), kwargs.get('supplemental_documents_must_read', None)) + setattr(self, "_{}".format('supplemental_documents_must_read_metadata'), kwargs.get('supplemental_documents_must_read_metadata', None)) + setattr(self, "_{}".format('supplemental_documents_must_view'), kwargs.get('supplemental_documents_must_view', None)) + setattr(self, "_{}".format('supplemental_documents_must_view_metadata'), kwargs.get('supplemental_documents_must_view_metadata', None)) + setattr(self, "_{}".format('use_new_docu_sign_experience_interface'), kwargs.get('use_new_docu_sign_experience_interface', None)) + setattr(self, "_{}".format('use_new_docu_sign_experience_interface_metadata'), kwargs.get('use_new_docu_sign_experience_interface_metadata', None)) + setattr(self, "_{}".format('use_new_sending_interface'), kwargs.get('use_new_sending_interface', None)) + setattr(self, "_{}".format('use_new_sending_interface_metadata'), kwargs.get('use_new_sending_interface_metadata', None)) + setattr(self, "_{}".format('vaulting_mode'), kwargs.get('vaulting_mode', None)) + setattr(self, "_{}".format('vaulting_mode_metadata'), kwargs.get('vaulting_mode_metadata', None)) @property def allow_account_management(self): @@ -1972,8 +1907,11 @@ def __eq__(self, other): if not isinstance(other, AccountRoleSettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountRoleSettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_seals.py b/docusign_esign/models/account_seals.py index 5477a299..b8377dfa 100644 --- a/docusign_esign/models/account_seals.py +++ b/docusign_esign/models/account_seals.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountSeals(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class AccountSeals(object): 'seals': 'seals' } - def __init__(self, seals=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountSeals - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._seals = None self.discriminator = None - if seals is not None: - self.seals = seals + setattr(self, "_{}".format('seals'), kwargs.get('seals', None)) @property def seals(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, AccountSeals): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountSeals): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_settings_information.py b/docusign_esign/models/account_settings_information.py index c9ce8404..68aac389 100644 --- a/docusign_esign/models/account_settings_information.py +++ b/docusign_esign/models/account_settings_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountSettingsInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class AccountSettingsInformation(object): 'account_settings': 'accountSettings' } - def __init__(self, account_settings=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountSettingsInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_settings = None self.discriminator = None - if account_settings is not None: - self.account_settings = account_settings + setattr(self, "_{}".format('account_settings'), kwargs.get('account_settings', None)) @property def account_settings(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, AccountSettingsInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountSettingsInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_shared_access.py b/docusign_esign/models/account_shared_access.py index b32008b7..5eafd5fa 100644 --- a/docusign_esign/models/account_shared_access.py +++ b/docusign_esign/models/account_shared_access.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountSharedAccess(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class AccountSharedAccess(object): 'total_set_size': 'totalSetSize' } - def __init__(self, account_id=None, end_position=None, error_details=None, next_uri=None, previous_uri=None, result_set_size=None, shared_access=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountSharedAccess - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_id = None self._end_position = None @@ -68,24 +73,15 @@ def __init__(self, account_id=None, end_position=None, error_details=None, next_ self._total_set_size = None self.discriminator = None - if account_id is not None: - self.account_id = account_id - if end_position is not None: - self.end_position = end_position - if error_details is not None: - self.error_details = error_details - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if shared_access is not None: - self.shared_access = shared_access - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('shared_access'), kwargs.get('shared_access', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def account_id(self): @@ -332,8 +328,11 @@ def __eq__(self, other): if not isinstance(other, AccountSharedAccess): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountSharedAccess): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_signature_provider.py b/docusign_esign/models/account_signature_provider.py index a377a891..ba655cdb 100644 --- a/docusign_esign/models/account_signature_provider.py +++ b/docusign_esign/models/account_signature_provider.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountSignatureProvider(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class AccountSignatureProvider(object): 'signature_provider_required_options': 'signatureProviderRequiredOptions' } - def __init__(self, is_required=None, priority=None, signature_provider_display_name=None, signature_provider_id=None, signature_provider_name=None, signature_provider_options_metadata=None, signature_provider_required_options=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountSignatureProvider - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._is_required = None self._priority = None @@ -62,20 +67,13 @@ def __init__(self, is_required=None, priority=None, signature_provider_display_n self._signature_provider_required_options = None self.discriminator = None - if is_required is not None: - self.is_required = is_required - if priority is not None: - self.priority = priority - if signature_provider_display_name is not None: - self.signature_provider_display_name = signature_provider_display_name - if signature_provider_id is not None: - self.signature_provider_id = signature_provider_id - if signature_provider_name is not None: - self.signature_provider_name = signature_provider_name - if signature_provider_options_metadata is not None: - self.signature_provider_options_metadata = signature_provider_options_metadata - if signature_provider_required_options is not None: - self.signature_provider_required_options = signature_provider_required_options + setattr(self, "_{}".format('is_required'), kwargs.get('is_required', None)) + setattr(self, "_{}".format('priority'), kwargs.get('priority', None)) + setattr(self, "_{}".format('signature_provider_display_name'), kwargs.get('signature_provider_display_name', None)) + setattr(self, "_{}".format('signature_provider_id'), kwargs.get('signature_provider_id', None)) + setattr(self, "_{}".format('signature_provider_name'), kwargs.get('signature_provider_name', None)) + setattr(self, "_{}".format('signature_provider_options_metadata'), kwargs.get('signature_provider_options_metadata', None)) + setattr(self, "_{}".format('signature_provider_required_options'), kwargs.get('signature_provider_required_options', None)) @property def is_required(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, AccountSignatureProvider): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountSignatureProvider): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_signature_provider_option.py b/docusign_esign/models/account_signature_provider_option.py index 8d6256b4..106fcbc3 100644 --- a/docusign_esign/models/account_signature_provider_option.py +++ b/docusign_esign/models/account_signature_provider_option.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountSignatureProviderOption(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class AccountSignatureProviderOption(object): 'signature_provider_option_name': 'signatureProviderOptionName' } - def __init__(self, signature_provider_option_display_name=None, signature_provider_option_id=None, signature_provider_option_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountSignatureProviderOption - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._signature_provider_option_display_name = None self._signature_provider_option_id = None self._signature_provider_option_name = None self.discriminator = None - if signature_provider_option_display_name is not None: - self.signature_provider_option_display_name = signature_provider_option_display_name - if signature_provider_option_id is not None: - self.signature_provider_option_id = signature_provider_option_id - if signature_provider_option_name is not None: - self.signature_provider_option_name = signature_provider_option_name + setattr(self, "_{}".format('signature_provider_option_display_name'), kwargs.get('signature_provider_option_display_name', None)) + setattr(self, "_{}".format('signature_provider_option_id'), kwargs.get('signature_provider_option_id', None)) + setattr(self, "_{}".format('signature_provider_option_name'), kwargs.get('signature_provider_option_name', None)) @property def signature_provider_option_display_name(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, AccountSignatureProviderOption): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountSignatureProviderOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/account_signature_providers.py b/docusign_esign/models/account_signature_providers.py index d579f798..e647b221 100644 --- a/docusign_esign/models/account_signature_providers.py +++ b/docusign_esign/models/account_signature_providers.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AccountSignatureProviders(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class AccountSignatureProviders(object): 'signature_providers': 'signatureProviders' } - def __init__(self, signature_providers=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AccountSignatureProviders - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._signature_providers = None self.discriminator = None - if signature_providers is not None: - self.signature_providers = signature_providers + setattr(self, "_{}".format('signature_providers'), kwargs.get('signature_providers', None)) @property def signature_providers(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, AccountSignatureProviders): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountSignatureProviders): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/add_on.py b/docusign_esign/models/add_on.py index 54e5dc71..6df0e4f8 100644 --- a/docusign_esign/models/add_on.py +++ b/docusign_esign/models/add_on.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AddOn(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class AddOn(object): 'name': 'name' } - def __init__(self, active=None, add_on_id=None, id=None, name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AddOn - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._active = None self._add_on_id = None @@ -53,14 +58,10 @@ def __init__(self, active=None, add_on_id=None, id=None, name=None): # noqa: E5 self._name = None self.discriminator = None - if active is not None: - self.active = active - if add_on_id is not None: - self.add_on_id = add_on_id - if id is not None: - self.id = id - if name is not None: - self.name = name + setattr(self, "_{}".format('active'), kwargs.get('active', None)) + setattr(self, "_{}".format('add_on_id'), kwargs.get('add_on_id', None)) + setattr(self, "_{}".format('id'), kwargs.get('id', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) @property def active(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, AddOn): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AddOn): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/address_information.py b/docusign_esign/models/address_information.py index a8a4a3c2..1d222e2f 100644 --- a/docusign_esign/models/address_information.py +++ b/docusign_esign/models/address_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AddressInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class AddressInformation(object): 'zip_plus4': 'zipPlus4' } - def __init__(self, city=None, country=None, fax=None, phone=None, state=None, street1=None, street2=None, zip=None, zip_plus4=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AddressInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._city = None self._country = None @@ -68,24 +73,15 @@ def __init__(self, city=None, country=None, fax=None, phone=None, state=None, st self._zip_plus4 = None self.discriminator = None - if city is not None: - self.city = city - if country is not None: - self.country = country - if fax is not None: - self.fax = fax - if phone is not None: - self.phone = phone - if state is not None: - self.state = state - if street1 is not None: - self.street1 = street1 - if street2 is not None: - self.street2 = street2 - if zip is not None: - self.zip = zip - if zip_plus4 is not None: - self.zip_plus4 = zip_plus4 + setattr(self, "_{}".format('city'), kwargs.get('city', None)) + setattr(self, "_{}".format('country'), kwargs.get('country', None)) + setattr(self, "_{}".format('fax'), kwargs.get('fax', None)) + setattr(self, "_{}".format('phone'), kwargs.get('phone', None)) + setattr(self, "_{}".format('state'), kwargs.get('state', None)) + setattr(self, "_{}".format('street1'), kwargs.get('street1', None)) + setattr(self, "_{}".format('street2'), kwargs.get('street2', None)) + setattr(self, "_{}".format('zip'), kwargs.get('zip', None)) + setattr(self, "_{}".format('zip_plus4'), kwargs.get('zip_plus4', None)) @property def city(self): @@ -334,8 +330,11 @@ def __eq__(self, other): if not isinstance(other, AddressInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AddressInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/address_information_input.py b/docusign_esign/models/address_information_input.py index 927e6b25..3a3c0274 100644 --- a/docusign_esign/models/address_information_input.py +++ b/docusign_esign/models/address_information_input.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AddressInformationInput(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class AddressInformationInput(object): 'receive_in_response': 'receiveInResponse' } - def __init__(self, address_information=None, display_level_code=None, receive_in_response=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AddressInformationInput - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address_information = None self._display_level_code = None self._receive_in_response = None self.discriminator = None - if address_information is not None: - self.address_information = address_information - if display_level_code is not None: - self.display_level_code = display_level_code - if receive_in_response is not None: - self.receive_in_response = receive_in_response + setattr(self, "_{}".format('address_information'), kwargs.get('address_information', None)) + setattr(self, "_{}".format('display_level_code'), kwargs.get('display_level_code', None)) + setattr(self, "_{}".format('receive_in_response'), kwargs.get('receive_in_response', None)) @property def address_information(self): @@ -164,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, AddressInformationInput): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AddressInformationInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/address_information_v2.py b/docusign_esign/models/address_information_v2.py index 7a7f7431..27995585 100644 --- a/docusign_esign/models/address_information_v2.py +++ b/docusign_esign/models/address_information_v2.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AddressInformationV2(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class AddressInformationV2(object): 'state_or_province': 'stateOrProvince' } - def __init__(self, address1=None, address2=None, city=None, country=None, fax=None, phone=None, postal_code=None, state_or_province=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AddressInformationV2 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address1 = None self._address2 = None @@ -65,22 +70,14 @@ def __init__(self, address1=None, address2=None, city=None, country=None, fax=No self._state_or_province = None self.discriminator = None - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if city is not None: - self.city = city - if country is not None: - self.country = country - if fax is not None: - self.fax = fax - if phone is not None: - self.phone = phone - if postal_code is not None: - self.postal_code = postal_code - if state_or_province is not None: - self.state_or_province = state_or_province + setattr(self, "_{}".format('address1'), kwargs.get('address1', None)) + setattr(self, "_{}".format('address2'), kwargs.get('address2', None)) + setattr(self, "_{}".format('city'), kwargs.get('city', None)) + setattr(self, "_{}".format('country'), kwargs.get('country', None)) + setattr(self, "_{}".format('fax'), kwargs.get('fax', None)) + setattr(self, "_{}".format('phone'), kwargs.get('phone', None)) + setattr(self, "_{}".format('postal_code'), kwargs.get('postal_code', None)) + setattr(self, "_{}".format('state_or_province'), kwargs.get('state_or_province', None)) @property def address1(self): @@ -306,8 +303,11 @@ def __eq__(self, other): if not isinstance(other, AddressInformationV2): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AddressInformationV2): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/agent.py b/docusign_esign/models/agent.py index a91e3f2f..ad456752 100644 --- a/docusign_esign/models/agent.py +++ b/docusign_esign/models/agent.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Agent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -128,8 +130,11 @@ class Agent(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, name=None, note=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Agent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -179,98 +184,52 @@ def __init__(self, access_code=None, add_access_code_to_email=None, client_user_ self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1354,8 +1313,11 @@ def __eq__(self, other): if not isinstance(other, Agent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Agent): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/api_request_log.py b/docusign_esign/models/api_request_log.py index 2788454e..5b10f700 100644 --- a/docusign_esign/models/api_request_log.py +++ b/docusign_esign/models/api_request_log.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ApiRequestLog(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class ApiRequestLog(object): 'status': 'status' } - def __init__(self, created_date_time=None, description=None, request_log_id=None, status=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ApiRequestLog - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_date_time = None self._description = None @@ -53,14 +58,10 @@ def __init__(self, created_date_time=None, description=None, request_log_id=None self._status = None self.discriminator = None - if created_date_time is not None: - self.created_date_time = created_date_time - if description is not None: - self.description = description - if request_log_id is not None: - self.request_log_id = request_log_id - if status is not None: - self.status = status + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('description'), kwargs.get('description', None)) + setattr(self, "_{}".format('request_log_id'), kwargs.get('request_log_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) @property def created_date_time(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, ApiRequestLog): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiRequestLog): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/api_request_logs_result.py b/docusign_esign/models/api_request_logs_result.py index ad821ed8..9dbe1983 100644 --- a/docusign_esign/models/api_request_logs_result.py +++ b/docusign_esign/models/api_request_logs_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ApiRequestLogsResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ApiRequestLogsResult(object): 'api_request_logs': 'apiRequestLogs' } - def __init__(self, api_request_logs=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ApiRequestLogsResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._api_request_logs = None self.discriminator = None - if api_request_logs is not None: - self.api_request_logs = api_request_logs + setattr(self, "_{}".format('api_request_logs'), kwargs.get('api_request_logs', None)) @property def api_request_logs(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ApiRequestLogsResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiRequestLogsResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/app_store_product.py b/docusign_esign/models/app_store_product.py index c7a38f0c..a569cbcd 100644 --- a/docusign_esign/models/app_store_product.py +++ b/docusign_esign/models/app_store_product.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AppStoreProduct(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AppStoreProduct(object): 'product_id': 'productId' } - def __init__(self, market_place=None, product_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AppStoreProduct - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._market_place = None self._product_id = None self.discriminator = None - if market_place is not None: - self.market_place = market_place - if product_id is not None: - self.product_id = product_id + setattr(self, "_{}".format('market_place'), kwargs.get('market_place', None)) + setattr(self, "_{}".format('product_id'), kwargs.get('product_id', None)) @property def market_place(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AppStoreProduct): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppStoreProduct): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/app_store_receipt.py b/docusign_esign/models/app_store_receipt.py index dc0fd62f..a55aa7e3 100644 --- a/docusign_esign/models/app_store_receipt.py +++ b/docusign_esign/models/app_store_receipt.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AppStoreReceipt(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class AppStoreReceipt(object): 'receipt_data': 'receiptData' } - def __init__(self, product_id=None, receipt_data=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AppStoreReceipt - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._product_id = None self._receipt_data = None self.discriminator = None - if product_id is not None: - self.product_id = product_id - if receipt_data is not None: - self.receipt_data = receipt_data + setattr(self, "_{}".format('product_id'), kwargs.get('product_id', None)) + setattr(self, "_{}".format('receipt_data'), kwargs.get('receipt_data', None)) @property def product_id(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, AppStoreReceipt): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppStoreReceipt): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/approve.py b/docusign_esign/models/approve.py index 05f860fe..10eb119b 100644 --- a/docusign_esign/models/approve.py +++ b/docusign_esign/models/approve.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Approve(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -106,8 +108,11 @@ class Approve(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, button_text=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, height=None, italic=None, merge_field=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Approve - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -146,76 +151,41 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if button_text is not None: - self.button_text = button_text - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if height is not None: - self.height = height - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('button_text'), kwargs.get('button_text', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1058,8 +1028,11 @@ def __eq__(self, other): if not isinstance(other, Approve): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Approve): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/attachment.py b/docusign_esign/models/attachment.py index d9cd5e97..bcc46add 100644 --- a/docusign_esign/models/attachment.py +++ b/docusign_esign/models/attachment.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Attachment(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class Attachment(object): 'remote_url': 'remoteUrl' } - def __init__(self, access_control=None, attachment_id=None, attachment_type=None, data=None, label=None, name=None, remote_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Attachment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_control = None self._attachment_id = None @@ -62,20 +67,13 @@ def __init__(self, access_control=None, attachment_id=None, attachment_type=None self._remote_url = None self.discriminator = None - if access_control is not None: - self.access_control = access_control - if attachment_id is not None: - self.attachment_id = attachment_id - if attachment_type is not None: - self.attachment_type = attachment_type - if data is not None: - self.data = data - if label is not None: - self.label = label - if name is not None: - self.name = name - if remote_url is not None: - self.remote_url = remote_url + setattr(self, "_{}".format('access_control'), kwargs.get('access_control', None)) + setattr(self, "_{}".format('attachment_id'), kwargs.get('attachment_id', None)) + setattr(self, "_{}".format('attachment_type'), kwargs.get('attachment_type', None)) + setattr(self, "_{}".format('data'), kwargs.get('data', None)) + setattr(self, "_{}".format('label'), kwargs.get('label', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('remote_url'), kwargs.get('remote_url', None)) @property def access_control(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, Attachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Attachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/authentication_method.py b/docusign_esign/models/authentication_method.py index 48913fa5..47ce8300 100644 --- a/docusign_esign/models/authentication_method.py +++ b/docusign_esign/models/authentication_method.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AuthenticationMethod(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class AuthenticationMethod(object): 'total_count': 'totalCount' } - def __init__(self, authentication_type=None, last_provider=None, last_timestamp=None, total_count=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AuthenticationMethod - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._authentication_type = None self._last_provider = None @@ -53,14 +58,10 @@ def __init__(self, authentication_type=None, last_provider=None, last_timestamp= self._total_count = None self.discriminator = None - if authentication_type is not None: - self.authentication_type = authentication_type - if last_provider is not None: - self.last_provider = last_provider - if last_timestamp is not None: - self.last_timestamp = last_timestamp - if total_count is not None: - self.total_count = total_count + setattr(self, "_{}".format('authentication_type'), kwargs.get('authentication_type', None)) + setattr(self, "_{}".format('last_provider'), kwargs.get('last_provider', None)) + setattr(self, "_{}".format('last_timestamp'), kwargs.get('last_timestamp', None)) + setattr(self, "_{}".format('total_count'), kwargs.get('total_count', None)) @property def authentication_type(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, AuthenticationMethod): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AuthenticationMethod): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/authentication_status.py b/docusign_esign/models/authentication_status.py index 26e3723e..d7faf47a 100644 --- a/docusign_esign/models/authentication_status.py +++ b/docusign_esign/models/authentication_status.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class AuthenticationStatus(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -74,8 +76,11 @@ class AuthenticationStatus(object): 'yahoo_result': 'yahooResult' } - def __init__(self, access_code_result=None, age_verify_result=None, any_social_id_result=None, facebook_result=None, google_result=None, identity_verification_result=None, id_lookup_result=None, id_questions_result=None, linkedin_result=None, live_id_result=None, ofac_result=None, open_id_result=None, phone_auth_result=None, salesforce_result=None, signature_provider_result=None, sms_auth_result=None, s_tan_pin_result=None, twitter_result=None, yahoo_result=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """AuthenticationStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code_result = None self._age_verify_result = None @@ -98,44 +103,25 @@ def __init__(self, access_code_result=None, age_verify_result=None, any_social_i self._yahoo_result = None self.discriminator = None - if access_code_result is not None: - self.access_code_result = access_code_result - if age_verify_result is not None: - self.age_verify_result = age_verify_result - if any_social_id_result is not None: - self.any_social_id_result = any_social_id_result - if facebook_result is not None: - self.facebook_result = facebook_result - if google_result is not None: - self.google_result = google_result - if identity_verification_result is not None: - self.identity_verification_result = identity_verification_result - if id_lookup_result is not None: - self.id_lookup_result = id_lookup_result - if id_questions_result is not None: - self.id_questions_result = id_questions_result - if linkedin_result is not None: - self.linkedin_result = linkedin_result - if live_id_result is not None: - self.live_id_result = live_id_result - if ofac_result is not None: - self.ofac_result = ofac_result - if open_id_result is not None: - self.open_id_result = open_id_result - if phone_auth_result is not None: - self.phone_auth_result = phone_auth_result - if salesforce_result is not None: - self.salesforce_result = salesforce_result - if signature_provider_result is not None: - self.signature_provider_result = signature_provider_result - if sms_auth_result is not None: - self.sms_auth_result = sms_auth_result - if s_tan_pin_result is not None: - self.s_tan_pin_result = s_tan_pin_result - if twitter_result is not None: - self.twitter_result = twitter_result - if yahoo_result is not None: - self.yahoo_result = yahoo_result + setattr(self, "_{}".format('access_code_result'), kwargs.get('access_code_result', None)) + setattr(self, "_{}".format('age_verify_result'), kwargs.get('age_verify_result', None)) + setattr(self, "_{}".format('any_social_id_result'), kwargs.get('any_social_id_result', None)) + setattr(self, "_{}".format('facebook_result'), kwargs.get('facebook_result', None)) + setattr(self, "_{}".format('google_result'), kwargs.get('google_result', None)) + setattr(self, "_{}".format('identity_verification_result'), kwargs.get('identity_verification_result', None)) + setattr(self, "_{}".format('id_lookup_result'), kwargs.get('id_lookup_result', None)) + setattr(self, "_{}".format('id_questions_result'), kwargs.get('id_questions_result', None)) + setattr(self, "_{}".format('linkedin_result'), kwargs.get('linkedin_result', None)) + setattr(self, "_{}".format('live_id_result'), kwargs.get('live_id_result', None)) + setattr(self, "_{}".format('ofac_result'), kwargs.get('ofac_result', None)) + setattr(self, "_{}".format('open_id_result'), kwargs.get('open_id_result', None)) + setattr(self, "_{}".format('phone_auth_result'), kwargs.get('phone_auth_result', None)) + setattr(self, "_{}".format('salesforce_result'), kwargs.get('salesforce_result', None)) + setattr(self, "_{}".format('signature_provider_result'), kwargs.get('signature_provider_result', None)) + setattr(self, "_{}".format('sms_auth_result'), kwargs.get('sms_auth_result', None)) + setattr(self, "_{}".format('s_tan_pin_result'), kwargs.get('s_tan_pin_result', None)) + setattr(self, "_{}".format('twitter_result'), kwargs.get('twitter_result', None)) + setattr(self, "_{}".format('yahoo_result'), kwargs.get('yahoo_result', None)) @property def access_code_result(self): @@ -576,8 +562,11 @@ def __eq__(self, other): if not isinstance(other, AuthenticationStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AuthenticationStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bcc_email_address.py b/docusign_esign/models/bcc_email_address.py index de4ce2e6..64bd4151 100644 --- a/docusign_esign/models/bcc_email_address.py +++ b/docusign_esign/models/bcc_email_address.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BccEmailAddress(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class BccEmailAddress(object): 'email': 'email' } - def __init__(self, bcc_email_address_id=None, email=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BccEmailAddress - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bcc_email_address_id = None self._email = None self.discriminator = None - if bcc_email_address_id is not None: - self.bcc_email_address_id = bcc_email_address_id - if email is not None: - self.email = email + setattr(self, "_{}".format('bcc_email_address_id'), kwargs.get('bcc_email_address_id', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) @property def bcc_email_address_id(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, BccEmailAddress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BccEmailAddress): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_charge.py b/docusign_esign/models/billing_charge.py index c936e40c..e232baf8 100644 --- a/docusign_esign/models/billing_charge.py +++ b/docusign_esign/models/billing_charge.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingCharge(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -62,8 +64,11 @@ class BillingCharge(object): 'used_quantity': 'usedQuantity' } - def __init__(self, allowed_quantity=None, blocked=None, charge_name=None, charge_type=None, charge_unit_of_measure=None, discounts=None, first_effective_date=None, included_quantity=None, incremental_quantity=None, last_effective_date=None, prices=None, unit_price=None, used_quantity=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingCharge - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allowed_quantity = None self._blocked = None @@ -80,32 +85,19 @@ def __init__(self, allowed_quantity=None, blocked=None, charge_name=None, charge self._used_quantity = None self.discriminator = None - if allowed_quantity is not None: - self.allowed_quantity = allowed_quantity - if blocked is not None: - self.blocked = blocked - if charge_name is not None: - self.charge_name = charge_name - if charge_type is not None: - self.charge_type = charge_type - if charge_unit_of_measure is not None: - self.charge_unit_of_measure = charge_unit_of_measure - if discounts is not None: - self.discounts = discounts - if first_effective_date is not None: - self.first_effective_date = first_effective_date - if included_quantity is not None: - self.included_quantity = included_quantity - if incremental_quantity is not None: - self.incremental_quantity = incremental_quantity - if last_effective_date is not None: - self.last_effective_date = last_effective_date - if prices is not None: - self.prices = prices - if unit_price is not None: - self.unit_price = unit_price - if used_quantity is not None: - self.used_quantity = used_quantity + setattr(self, "_{}".format('allowed_quantity'), kwargs.get('allowed_quantity', None)) + setattr(self, "_{}".format('blocked'), kwargs.get('blocked', None)) + setattr(self, "_{}".format('charge_name'), kwargs.get('charge_name', None)) + setattr(self, "_{}".format('charge_type'), kwargs.get('charge_type', None)) + setattr(self, "_{}".format('charge_unit_of_measure'), kwargs.get('charge_unit_of_measure', None)) + setattr(self, "_{}".format('discounts'), kwargs.get('discounts', None)) + setattr(self, "_{}".format('first_effective_date'), kwargs.get('first_effective_date', None)) + setattr(self, "_{}".format('included_quantity'), kwargs.get('included_quantity', None)) + setattr(self, "_{}".format('incremental_quantity'), kwargs.get('incremental_quantity', None)) + setattr(self, "_{}".format('last_effective_date'), kwargs.get('last_effective_date', None)) + setattr(self, "_{}".format('prices'), kwargs.get('prices', None)) + setattr(self, "_{}".format('unit_price'), kwargs.get('unit_price', None)) + setattr(self, "_{}".format('used_quantity'), kwargs.get('used_quantity', None)) @property def allowed_quantity(self): @@ -446,8 +438,11 @@ def __eq__(self, other): if not isinstance(other, BillingCharge): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingCharge): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_charge_response.py b/docusign_esign/models/billing_charge_response.py index 883d330e..a725e530 100644 --- a/docusign_esign/models/billing_charge_response.py +++ b/docusign_esign/models/billing_charge_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingChargeResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BillingChargeResponse(object): 'billing_charge_items': 'billingChargeItems' } - def __init__(self, billing_charge_items=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingChargeResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_charge_items = None self.discriminator = None - if billing_charge_items is not None: - self.billing_charge_items = billing_charge_items + setattr(self, "_{}".format('billing_charge_items'), kwargs.get('billing_charge_items', None)) @property def billing_charge_items(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BillingChargeResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingChargeResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_discount.py b/docusign_esign/models/billing_discount.py index bf319fd1..264b767e 100644 --- a/docusign_esign/models/billing_discount.py +++ b/docusign_esign/models/billing_discount.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingDiscount(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BillingDiscount(object): 'end_quantity': 'endQuantity' } - def __init__(self, begin_quantity=None, discount=None, end_quantity=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingDiscount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._begin_quantity = None self._discount = None self._end_quantity = None self.discriminator = None - if begin_quantity is not None: - self.begin_quantity = begin_quantity - if discount is not None: - self.discount = discount - if end_quantity is not None: - self.end_quantity = end_quantity + setattr(self, "_{}".format('begin_quantity'), kwargs.get('begin_quantity', None)) + setattr(self, "_{}".format('discount'), kwargs.get('discount', None)) + setattr(self, "_{}".format('end_quantity'), kwargs.get('end_quantity', None)) @property def begin_quantity(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BillingDiscount): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingDiscount): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_invoice.py b/docusign_esign/models/billing_invoice.py index 1461d71a..ebc73141 100644 --- a/docusign_esign/models/billing_invoice.py +++ b/docusign_esign/models/billing_invoice.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingInvoice(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class BillingInvoice(object): 'taxable_amount': 'taxableAmount' } - def __init__(self, amount=None, balance=None, due_date=None, invoice_id=None, invoice_items=None, invoice_number=None, invoice_uri=None, non_taxable_amount=None, pdf_available=None, taxable_amount=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingInvoice - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._amount = None self._balance = None @@ -71,26 +76,16 @@ def __init__(self, amount=None, balance=None, due_date=None, invoice_id=None, in self._taxable_amount = None self.discriminator = None - if amount is not None: - self.amount = amount - if balance is not None: - self.balance = balance - if due_date is not None: - self.due_date = due_date - if invoice_id is not None: - self.invoice_id = invoice_id - if invoice_items is not None: - self.invoice_items = invoice_items - if invoice_number is not None: - self.invoice_number = invoice_number - if invoice_uri is not None: - self.invoice_uri = invoice_uri - if non_taxable_amount is not None: - self.non_taxable_amount = non_taxable_amount - if pdf_available is not None: - self.pdf_available = pdf_available - if taxable_amount is not None: - self.taxable_amount = taxable_amount + setattr(self, "_{}".format('amount'), kwargs.get('amount', None)) + setattr(self, "_{}".format('balance'), kwargs.get('balance', None)) + setattr(self, "_{}".format('due_date'), kwargs.get('due_date', None)) + setattr(self, "_{}".format('invoice_id'), kwargs.get('invoice_id', None)) + setattr(self, "_{}".format('invoice_items'), kwargs.get('invoice_items', None)) + setattr(self, "_{}".format('invoice_number'), kwargs.get('invoice_number', None)) + setattr(self, "_{}".format('invoice_uri'), kwargs.get('invoice_uri', None)) + setattr(self, "_{}".format('non_taxable_amount'), kwargs.get('non_taxable_amount', None)) + setattr(self, "_{}".format('pdf_available'), kwargs.get('pdf_available', None)) + setattr(self, "_{}".format('taxable_amount'), kwargs.get('taxable_amount', None)) @property def amount(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, BillingInvoice): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingInvoice): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_invoice_item.py b/docusign_esign/models/billing_invoice_item.py index 3631f3bc..19bfacae 100644 --- a/docusign_esign/models/billing_invoice_item.py +++ b/docusign_esign/models/billing_invoice_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingInvoiceItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class BillingInvoiceItem(object): 'unit_price': 'unitPrice' } - def __init__(self, charge_amount=None, charge_name=None, invoice_item_id=None, quantity=None, unit_price=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingInvoiceItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._charge_amount = None self._charge_name = None @@ -56,16 +61,11 @@ def __init__(self, charge_amount=None, charge_name=None, invoice_item_id=None, q self._unit_price = None self.discriminator = None - if charge_amount is not None: - self.charge_amount = charge_amount - if charge_name is not None: - self.charge_name = charge_name - if invoice_item_id is not None: - self.invoice_item_id = invoice_item_id - if quantity is not None: - self.quantity = quantity - if unit_price is not None: - self.unit_price = unit_price + setattr(self, "_{}".format('charge_amount'), kwargs.get('charge_amount', None)) + setattr(self, "_{}".format('charge_name'), kwargs.get('charge_name', None)) + setattr(self, "_{}".format('invoice_item_id'), kwargs.get('invoice_item_id', None)) + setattr(self, "_{}".format('quantity'), kwargs.get('quantity', None)) + setattr(self, "_{}".format('unit_price'), kwargs.get('unit_price', None)) @property def charge_amount(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, BillingInvoiceItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingInvoiceItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_invoices_response.py b/docusign_esign/models/billing_invoices_response.py index 1f905aa1..adde2b33 100644 --- a/docusign_esign/models/billing_invoices_response.py +++ b/docusign_esign/models/billing_invoices_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingInvoicesResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BillingInvoicesResponse(object): 'previous_uri': 'previousUri' } - def __init__(self, billing_invoices=None, next_uri=None, previous_uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingInvoicesResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_invoices = None self._next_uri = None self._previous_uri = None self.discriminator = None - if billing_invoices is not None: - self.billing_invoices = billing_invoices - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri + setattr(self, "_{}".format('billing_invoices'), kwargs.get('billing_invoices', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) @property def billing_invoices(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BillingInvoicesResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingInvoicesResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_invoices_summary.py b/docusign_esign/models/billing_invoices_summary.py index 31116923..dbd92e10 100644 --- a/docusign_esign/models/billing_invoices_summary.py +++ b/docusign_esign/models/billing_invoices_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingInvoicesSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BillingInvoicesSummary(object): 'payment_allowed': 'paymentAllowed' } - def __init__(self, billing_invoices=None, past_due_balance=None, payment_allowed=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingInvoicesSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_invoices = None self._past_due_balance = None self._payment_allowed = None self.discriminator = None - if billing_invoices is not None: - self.billing_invoices = billing_invoices - if past_due_balance is not None: - self.past_due_balance = past_due_balance - if payment_allowed is not None: - self.payment_allowed = payment_allowed + setattr(self, "_{}".format('billing_invoices'), kwargs.get('billing_invoices', None)) + setattr(self, "_{}".format('past_due_balance'), kwargs.get('past_due_balance', None)) + setattr(self, "_{}".format('payment_allowed'), kwargs.get('payment_allowed', None)) @property def billing_invoices(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BillingInvoicesSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingInvoicesSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_payment.py b/docusign_esign/models/billing_payment.py index 4e1e47ae..02cf94d6 100644 --- a/docusign_esign/models/billing_payment.py +++ b/docusign_esign/models/billing_payment.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPayment(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BillingPayment(object): 'payment_id': 'paymentId' } - def __init__(self, amount=None, invoice_id=None, payment_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPayment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._amount = None self._invoice_id = None self._payment_id = None self.discriminator = None - if amount is not None: - self.amount = amount - if invoice_id is not None: - self.invoice_id = invoice_id - if payment_id is not None: - self.payment_id = payment_id + setattr(self, "_{}".format('amount'), kwargs.get('amount', None)) + setattr(self, "_{}".format('invoice_id'), kwargs.get('invoice_id', None)) + setattr(self, "_{}".format('payment_id'), kwargs.get('payment_id', None)) @property def amount(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BillingPayment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPayment): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_payment_item.py b/docusign_esign/models/billing_payment_item.py index 24946bac..2213ad1e 100644 --- a/docusign_esign/models/billing_payment_item.py +++ b/docusign_esign/models/billing_payment_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPaymentItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class BillingPaymentItem(object): 'payment_number': 'paymentNumber' } - def __init__(self, amount=None, description=None, payment_date=None, payment_id=None, payment_number=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPaymentItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._amount = None self._description = None @@ -56,16 +61,11 @@ def __init__(self, amount=None, description=None, payment_date=None, payment_id= self._payment_number = None self.discriminator = None - if amount is not None: - self.amount = amount - if description is not None: - self.description = description - if payment_date is not None: - self.payment_date = payment_date - if payment_id is not None: - self.payment_id = payment_id - if payment_number is not None: - self.payment_number = payment_number + setattr(self, "_{}".format('amount'), kwargs.get('amount', None)) + setattr(self, "_{}".format('description'), kwargs.get('description', None)) + setattr(self, "_{}".format('payment_date'), kwargs.get('payment_date', None)) + setattr(self, "_{}".format('payment_id'), kwargs.get('payment_id', None)) + setattr(self, "_{}".format('payment_number'), kwargs.get('payment_number', None)) @property def amount(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, BillingPaymentItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPaymentItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_payment_request.py b/docusign_esign/models/billing_payment_request.py index df2d135b..4c0a65b6 100644 --- a/docusign_esign/models/billing_payment_request.py +++ b/docusign_esign/models/billing_payment_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPaymentRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BillingPaymentRequest(object): 'payment_amount': 'paymentAmount' } - def __init__(self, payment_amount=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPaymentRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._payment_amount = None self.discriminator = None - if payment_amount is not None: - self.payment_amount = payment_amount + setattr(self, "_{}".format('payment_amount'), kwargs.get('payment_amount', None)) @property def payment_amount(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BillingPaymentRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPaymentRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_payment_response.py b/docusign_esign/models/billing_payment_response.py index 4805c956..cf22bf96 100644 --- a/docusign_esign/models/billing_payment_response.py +++ b/docusign_esign/models/billing_payment_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPaymentResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BillingPaymentResponse(object): 'billing_payments': 'billingPayments' } - def __init__(self, billing_payments=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPaymentResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_payments = None self.discriminator = None - if billing_payments is not None: - self.billing_payments = billing_payments + setattr(self, "_{}".format('billing_payments'), kwargs.get('billing_payments', None)) @property def billing_payments(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BillingPaymentResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPaymentResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_payments_response.py b/docusign_esign/models/billing_payments_response.py index e162c3b2..33317e69 100644 --- a/docusign_esign/models/billing_payments_response.py +++ b/docusign_esign/models/billing_payments_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPaymentsResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BillingPaymentsResponse(object): 'previous_uri': 'previousUri' } - def __init__(self, billing_payments=None, next_uri=None, previous_uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPaymentsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_payments = None self._next_uri = None self._previous_uri = None self.discriminator = None - if billing_payments is not None: - self.billing_payments = billing_payments - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri + setattr(self, "_{}".format('billing_payments'), kwargs.get('billing_payments', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) @property def billing_payments(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BillingPaymentsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPaymentsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_plan.py b/docusign_esign/models/billing_plan.py index aa649a95..da8f2a44 100644 --- a/docusign_esign/models/billing_plan.py +++ b/docusign_esign/models/billing_plan.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPlan(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -66,8 +68,11 @@ class BillingPlan(object): 'support_plan_fee': 'supportPlanFee' } - def __init__(self, app_store_products=None, currency_plan_prices=None, enable_support=None, included_seats=None, other_discount_percent=None, payment_cycle=None, payment_method=None, per_seat_price=None, plan_classification=None, plan_feature_sets=None, plan_id=None, plan_name=None, seat_discounts=None, support_incident_fee=None, support_plan_fee=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPlan - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._app_store_products = None self._currency_plan_prices = None @@ -86,36 +91,21 @@ def __init__(self, app_store_products=None, currency_plan_prices=None, enable_su self._support_plan_fee = None self.discriminator = None - if app_store_products is not None: - self.app_store_products = app_store_products - if currency_plan_prices is not None: - self.currency_plan_prices = currency_plan_prices - if enable_support is not None: - self.enable_support = enable_support - if included_seats is not None: - self.included_seats = included_seats - if other_discount_percent is not None: - self.other_discount_percent = other_discount_percent - if payment_cycle is not None: - self.payment_cycle = payment_cycle - if payment_method is not None: - self.payment_method = payment_method - if per_seat_price is not None: - self.per_seat_price = per_seat_price - if plan_classification is not None: - self.plan_classification = plan_classification - if plan_feature_sets is not None: - self.plan_feature_sets = plan_feature_sets - if plan_id is not None: - self.plan_id = plan_id - if plan_name is not None: - self.plan_name = plan_name - if seat_discounts is not None: - self.seat_discounts = seat_discounts - if support_incident_fee is not None: - self.support_incident_fee = support_incident_fee - if support_plan_fee is not None: - self.support_plan_fee = support_plan_fee + setattr(self, "_{}".format('app_store_products'), kwargs.get('app_store_products', None)) + setattr(self, "_{}".format('currency_plan_prices'), kwargs.get('currency_plan_prices', None)) + setattr(self, "_{}".format('enable_support'), kwargs.get('enable_support', None)) + setattr(self, "_{}".format('included_seats'), kwargs.get('included_seats', None)) + setattr(self, "_{}".format('other_discount_percent'), kwargs.get('other_discount_percent', None)) + setattr(self, "_{}".format('payment_cycle'), kwargs.get('payment_cycle', None)) + setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) + setattr(self, "_{}".format('per_seat_price'), kwargs.get('per_seat_price', None)) + setattr(self, "_{}".format('plan_classification'), kwargs.get('plan_classification', None)) + setattr(self, "_{}".format('plan_feature_sets'), kwargs.get('plan_feature_sets', None)) + setattr(self, "_{}".format('plan_id'), kwargs.get('plan_id', None)) + setattr(self, "_{}".format('plan_name'), kwargs.get('plan_name', None)) + setattr(self, "_{}".format('seat_discounts'), kwargs.get('seat_discounts', None)) + setattr(self, "_{}".format('support_incident_fee'), kwargs.get('support_incident_fee', None)) + setattr(self, "_{}".format('support_plan_fee'), kwargs.get('support_plan_fee', None)) @property def app_store_products(self): @@ -502,8 +492,11 @@ def __eq__(self, other): if not isinstance(other, BillingPlan): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPlan): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_plan_information.py b/docusign_esign/models/billing_plan_information.py index 075daf6b..68ee459b 100644 --- a/docusign_esign/models/billing_plan_information.py +++ b/docusign_esign/models/billing_plan_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPlanInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class BillingPlanInformation(object): 'sale_discount_seat_price_override': 'saleDiscountSeatPriceOverride' } - def __init__(self, app_store_receipt=None, billing_address=None, credit_card_information=None, downgrade_reason=None, enable_support=None, included_seats=None, incremental_seats=None, payment_processor_information=None, plan_information=None, referral_information=None, renewal_status=None, sale_discount_amount=None, sale_discount_fixed_amount=None, sale_discount_percent=None, sale_discount_periods=None, sale_discount_seat_price_override=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPlanInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._app_store_receipt = None self._billing_address = None @@ -89,38 +94,22 @@ def __init__(self, app_store_receipt=None, billing_address=None, credit_card_inf self._sale_discount_seat_price_override = None self.discriminator = None - if app_store_receipt is not None: - self.app_store_receipt = app_store_receipt - if billing_address is not None: - self.billing_address = billing_address - if credit_card_information is not None: - self.credit_card_information = credit_card_information - if downgrade_reason is not None: - self.downgrade_reason = downgrade_reason - if enable_support is not None: - self.enable_support = enable_support - if included_seats is not None: - self.included_seats = included_seats - if incremental_seats is not None: - self.incremental_seats = incremental_seats - if payment_processor_information is not None: - self.payment_processor_information = payment_processor_information - if plan_information is not None: - self.plan_information = plan_information - if referral_information is not None: - self.referral_information = referral_information - if renewal_status is not None: - self.renewal_status = renewal_status - if sale_discount_amount is not None: - self.sale_discount_amount = sale_discount_amount - if sale_discount_fixed_amount is not None: - self.sale_discount_fixed_amount = sale_discount_fixed_amount - if sale_discount_percent is not None: - self.sale_discount_percent = sale_discount_percent - if sale_discount_periods is not None: - self.sale_discount_periods = sale_discount_periods - if sale_discount_seat_price_override is not None: - self.sale_discount_seat_price_override = sale_discount_seat_price_override + setattr(self, "_{}".format('app_store_receipt'), kwargs.get('app_store_receipt', None)) + setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None)) + setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) + setattr(self, "_{}".format('downgrade_reason'), kwargs.get('downgrade_reason', None)) + setattr(self, "_{}".format('enable_support'), kwargs.get('enable_support', None)) + setattr(self, "_{}".format('included_seats'), kwargs.get('included_seats', None)) + setattr(self, "_{}".format('incremental_seats'), kwargs.get('incremental_seats', None)) + setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) + setattr(self, "_{}".format('plan_information'), kwargs.get('plan_information', None)) + setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) + setattr(self, "_{}".format('renewal_status'), kwargs.get('renewal_status', None)) + setattr(self, "_{}".format('sale_discount_amount'), kwargs.get('sale_discount_amount', None)) + setattr(self, "_{}".format('sale_discount_fixed_amount'), kwargs.get('sale_discount_fixed_amount', None)) + setattr(self, "_{}".format('sale_discount_percent'), kwargs.get('sale_discount_percent', None)) + setattr(self, "_{}".format('sale_discount_periods'), kwargs.get('sale_discount_periods', None)) + setattr(self, "_{}".format('sale_discount_seat_price_override'), kwargs.get('sale_discount_seat_price_override', None)) @property def app_store_receipt(self): @@ -518,8 +507,11 @@ def __eq__(self, other): if not isinstance(other, BillingPlanInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPlanInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_plan_preview.py b/docusign_esign/models/billing_plan_preview.py index 905fc0cd..77b3e39d 100644 --- a/docusign_esign/models/billing_plan_preview.py +++ b/docusign_esign/models/billing_plan_preview.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPlanPreview(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class BillingPlanPreview(object): 'total_amount': 'totalAmount' } - def __init__(self, currency_code=None, invoice=None, is_prorated=None, subtotal_amount=None, tax_amount=None, total_amount=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPlanPreview - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._currency_code = None self._invoice = None @@ -59,18 +64,12 @@ def __init__(self, currency_code=None, invoice=None, is_prorated=None, subtotal_ self._total_amount = None self.discriminator = None - if currency_code is not None: - self.currency_code = currency_code - if invoice is not None: - self.invoice = invoice - if is_prorated is not None: - self.is_prorated = is_prorated - if subtotal_amount is not None: - self.subtotal_amount = subtotal_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if total_amount is not None: - self.total_amount = total_amount + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('invoice'), kwargs.get('invoice', None)) + setattr(self, "_{}".format('is_prorated'), kwargs.get('is_prorated', None)) + setattr(self, "_{}".format('subtotal_amount'), kwargs.get('subtotal_amount', None)) + setattr(self, "_{}".format('tax_amount'), kwargs.get('tax_amount', None)) + setattr(self, "_{}".format('total_amount'), kwargs.get('total_amount', None)) @property def currency_code(self): @@ -248,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, BillingPlanPreview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPlanPreview): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_plan_response.py b/docusign_esign/models/billing_plan_response.py index 552bc786..7de78b2d 100644 --- a/docusign_esign/models/billing_plan_response.py +++ b/docusign_esign/models/billing_plan_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPlanResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class BillingPlanResponse(object): 'successor_plans': 'successorPlans' } - def __init__(self, billing_plan=None, successor_plans=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPlanResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_plan = None self._successor_plans = None self.discriminator = None - if billing_plan is not None: - self.billing_plan = billing_plan - if successor_plans is not None: - self.successor_plans = successor_plans + setattr(self, "_{}".format('billing_plan'), kwargs.get('billing_plan', None)) + setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None)) @property def billing_plan(self): @@ -136,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, BillingPlanResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPlanResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_plan_update_response.py b/docusign_esign/models/billing_plan_update_response.py index 167ef9cc..a03fdbcd 100644 --- a/docusign_esign/models/billing_plan_update_response.py +++ b/docusign_esign/models/billing_plan_update_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPlanUpdateResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class BillingPlanUpdateResponse(object): 'plan_name': 'planName' } - def __init__(self, account_payment_method=None, billing_plan_preview=None, currency_code=None, included_seats=None, payment_cycle=None, payment_method=None, plan_id=None, plan_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPlanUpdateResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_payment_method = None self._billing_plan_preview = None @@ -65,22 +70,14 @@ def __init__(self, account_payment_method=None, billing_plan_preview=None, curre self._plan_name = None self.discriminator = None - if account_payment_method is not None: - self.account_payment_method = account_payment_method - if billing_plan_preview is not None: - self.billing_plan_preview = billing_plan_preview - if currency_code is not None: - self.currency_code = currency_code - if included_seats is not None: - self.included_seats = included_seats - if payment_cycle is not None: - self.payment_cycle = payment_cycle - if payment_method is not None: - self.payment_method = payment_method - if plan_id is not None: - self.plan_id = plan_id - if plan_name is not None: - self.plan_name = plan_name + setattr(self, "_{}".format('account_payment_method'), kwargs.get('account_payment_method', None)) + setattr(self, "_{}".format('billing_plan_preview'), kwargs.get('billing_plan_preview', None)) + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('included_seats'), kwargs.get('included_seats', None)) + setattr(self, "_{}".format('payment_cycle'), kwargs.get('payment_cycle', None)) + setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) + setattr(self, "_{}".format('plan_id'), kwargs.get('plan_id', None)) + setattr(self, "_{}".format('plan_name'), kwargs.get('plan_name', None)) @property def account_payment_method(self): @@ -304,8 +301,11 @@ def __eq__(self, other): if not isinstance(other, BillingPlanUpdateResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPlanUpdateResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_plans_response.py b/docusign_esign/models/billing_plans_response.py index e7ccc217..59615a62 100644 --- a/docusign_esign/models/billing_plans_response.py +++ b/docusign_esign/models/billing_plans_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPlansResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BillingPlansResponse(object): 'billing_plans': 'billingPlans' } - def __init__(self, billing_plans=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPlansResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billing_plans = None self.discriminator = None - if billing_plans is not None: - self.billing_plans = billing_plans + setattr(self, "_{}".format('billing_plans'), kwargs.get('billing_plans', None)) @property def billing_plans(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BillingPlansResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPlansResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/billing_price.py b/docusign_esign/models/billing_price.py index 7e8c5337..0eae8dfc 100644 --- a/docusign_esign/models/billing_price.py +++ b/docusign_esign/models/billing_price.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BillingPrice(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BillingPrice(object): 'unit_price': 'unitPrice' } - def __init__(self, begin_quantity=None, end_quantity=None, unit_price=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BillingPrice - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._begin_quantity = None self._end_quantity = None self._unit_price = None self.discriminator = None - if begin_quantity is not None: - self.begin_quantity = begin_quantity - if end_quantity is not None: - self.end_quantity = end_quantity - if unit_price is not None: - self.unit_price = unit_price + setattr(self, "_{}".format('begin_quantity'), kwargs.get('begin_quantity', None)) + setattr(self, "_{}".format('end_quantity'), kwargs.get('end_quantity', None)) + setattr(self, "_{}".format('unit_price'), kwargs.get('unit_price', None)) @property def begin_quantity(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BillingPrice): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BillingPrice): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand.py b/docusign_esign/models/brand.py index ca32ed8e..4bbce058 100644 --- a/docusign_esign/models/brand.py +++ b/docusign_esign/models/brand.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Brand(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -62,8 +64,11 @@ class Brand(object): 'resources': 'resources' } - def __init__(self, brand_company=None, brand_id=None, brand_name=None, colors=None, email_content=None, error_details=None, is_overriding_company_name=None, is_sending_default=None, is_signing_default=None, landing_pages=None, links=None, logos=None, resources=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Brand - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._brand_company = None self._brand_id = None @@ -80,32 +85,19 @@ def __init__(self, brand_company=None, brand_id=None, brand_name=None, colors=No self._resources = None self.discriminator = None - if brand_company is not None: - self.brand_company = brand_company - if brand_id is not None: - self.brand_id = brand_id - if brand_name is not None: - self.brand_name = brand_name - if colors is not None: - self.colors = colors - if email_content is not None: - self.email_content = email_content - if error_details is not None: - self.error_details = error_details - if is_overriding_company_name is not None: - self.is_overriding_company_name = is_overriding_company_name - if is_sending_default is not None: - self.is_sending_default = is_sending_default - if is_signing_default is not None: - self.is_signing_default = is_signing_default - if landing_pages is not None: - self.landing_pages = landing_pages - if links is not None: - self.links = links - if logos is not None: - self.logos = logos - if resources is not None: - self.resources = resources + setattr(self, "_{}".format('brand_company'), kwargs.get('brand_company', None)) + setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None)) + setattr(self, "_{}".format('brand_name'), kwargs.get('brand_name', None)) + setattr(self, "_{}".format('colors'), kwargs.get('colors', None)) + setattr(self, "_{}".format('email_content'), kwargs.get('email_content', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('is_overriding_company_name'), kwargs.get('is_overriding_company_name', None)) + setattr(self, "_{}".format('is_sending_default'), kwargs.get('is_sending_default', None)) + setattr(self, "_{}".format('is_signing_default'), kwargs.get('is_signing_default', None)) + setattr(self, "_{}".format('landing_pages'), kwargs.get('landing_pages', None)) + setattr(self, "_{}".format('links'), kwargs.get('links', None)) + setattr(self, "_{}".format('logos'), kwargs.get('logos', None)) + setattr(self, "_{}".format('resources'), kwargs.get('resources', None)) @property def brand_company(self): @@ -440,8 +432,11 @@ def __eq__(self, other): if not isinstance(other, Brand): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Brand): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_email_content.py b/docusign_esign/models/brand_email_content.py index 9deb79ba..de76c08b 100644 --- a/docusign_esign/models/brand_email_content.py +++ b/docusign_esign/models/brand_email_content.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandEmailContent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class BrandEmailContent(object): 'link_text': 'linkText' } - def __init__(self, content=None, email_content_type=None, email_to_link=None, link_text=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandEmailContent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._content = None self._email_content_type = None @@ -53,14 +58,10 @@ def __init__(self, content=None, email_content_type=None, email_to_link=None, li self._link_text = None self.discriminator = None - if content is not None: - self.content = content - if email_content_type is not None: - self.email_content_type = email_content_type - if email_to_link is not None: - self.email_to_link = email_to_link - if link_text is not None: - self.link_text = link_text + setattr(self, "_{}".format('content'), kwargs.get('content', None)) + setattr(self, "_{}".format('email_content_type'), kwargs.get('email_content_type', None)) + setattr(self, "_{}".format('email_to_link'), kwargs.get('email_to_link', None)) + setattr(self, "_{}".format('link_text'), kwargs.get('link_text', None)) @property def content(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, BrandEmailContent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandEmailContent): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_link.py b/docusign_esign/models/brand_link.py index cf687b18..1ef7a8ba 100644 --- a/docusign_esign/models/brand_link.py +++ b/docusign_esign/models/brand_link.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandLink(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class BrandLink(object): 'url_or_mail_to': 'urlOrMailTo' } - def __init__(self, link_text=None, link_type=None, show_link=None, url_or_mail_to=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandLink - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._link_text = None self._link_type = None @@ -53,14 +58,10 @@ def __init__(self, link_text=None, link_type=None, show_link=None, url_or_mail_t self._url_or_mail_to = None self.discriminator = None - if link_text is not None: - self.link_text = link_text - if link_type is not None: - self.link_type = link_type - if show_link is not None: - self.show_link = show_link - if url_or_mail_to is not None: - self.url_or_mail_to = url_or_mail_to + setattr(self, "_{}".format('link_text'), kwargs.get('link_text', None)) + setattr(self, "_{}".format('link_type'), kwargs.get('link_type', None)) + setattr(self, "_{}".format('show_link'), kwargs.get('show_link', None)) + setattr(self, "_{}".format('url_or_mail_to'), kwargs.get('url_or_mail_to', None)) @property def link_text(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, BrandLink): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandLink): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_logos.py b/docusign_esign/models/brand_logos.py index 6946c14d..df88c822 100644 --- a/docusign_esign/models/brand_logos.py +++ b/docusign_esign/models/brand_logos.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandLogos(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BrandLogos(object): 'secondary': 'secondary' } - def __init__(self, email=None, primary=None, secondary=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandLogos - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._primary = None self._secondary = None self.discriminator = None - if email is not None: - self.email = email - if primary is not None: - self.primary = primary - if secondary is not None: - self.secondary = secondary + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('primary'), kwargs.get('primary', None)) + setattr(self, "_{}".format('secondary'), kwargs.get('secondary', None)) @property def email(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BrandLogos): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandLogos): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_request.py b/docusign_esign/models/brand_request.py index 2d4e268e..419f0f81 100644 --- a/docusign_esign/models/brand_request.py +++ b/docusign_esign/models/brand_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BrandRequest(object): 'brand_id': 'brandId' } - def __init__(self, brand_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._brand_id = None self.discriminator = None - if brand_id is not None: - self.brand_id = brand_id + setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None)) @property def brand_id(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BrandRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_resource_urls.py b/docusign_esign/models/brand_resource_urls.py index 65d69024..5362167a 100644 --- a/docusign_esign/models/brand_resource_urls.py +++ b/docusign_esign/models/brand_resource_urls.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandResourceUrls(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class BrandResourceUrls(object): 'signing_captive': 'signingCaptive' } - def __init__(self, email=None, sending=None, signing=None, signing_captive=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandResourceUrls - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._sending = None @@ -53,14 +58,10 @@ def __init__(self, email=None, sending=None, signing=None, signing_captive=None) self._signing_captive = None self.discriminator = None - if email is not None: - self.email = email - if sending is not None: - self.sending = sending - if signing is not None: - self.signing = signing - if signing_captive is not None: - self.signing_captive = signing_captive + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('sending'), kwargs.get('sending', None)) + setattr(self, "_{}".format('signing'), kwargs.get('signing', None)) + setattr(self, "_{}".format('signing_captive'), kwargs.get('signing_captive', None)) @property def email(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, BrandResourceUrls): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandResourceUrls): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_resources.py b/docusign_esign/models/brand_resources.py index 24c0c896..6318cdd0 100644 --- a/docusign_esign/models/brand_resources.py +++ b/docusign_esign/models/brand_resources.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandResources(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class BrandResources(object): 'resources_content_uri': 'resourcesContentUri' } - def __init__(self, created_by_user_info=None, created_date=None, modified_by_user_info=None, modified_date=None, modified_templates=None, resources_content_type=None, resources_content_uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandResources - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_by_user_info = None self._created_date = None @@ -62,20 +67,13 @@ def __init__(self, created_by_user_info=None, created_date=None, modified_by_use self._resources_content_uri = None self.discriminator = None - if created_by_user_info is not None: - self.created_by_user_info = created_by_user_info - if created_date is not None: - self.created_date = created_date - if modified_by_user_info is not None: - self.modified_by_user_info = modified_by_user_info - if modified_date is not None: - self.modified_date = modified_date - if modified_templates is not None: - self.modified_templates = modified_templates - if resources_content_type is not None: - self.resources_content_type = resources_content_type - if resources_content_uri is not None: - self.resources_content_uri = resources_content_uri + setattr(self, "_{}".format('created_by_user_info'), kwargs.get('created_by_user_info', None)) + setattr(self, "_{}".format('created_date'), kwargs.get('created_date', None)) + setattr(self, "_{}".format('modified_by_user_info'), kwargs.get('modified_by_user_info', None)) + setattr(self, "_{}".format('modified_date'), kwargs.get('modified_date', None)) + setattr(self, "_{}".format('modified_templates'), kwargs.get('modified_templates', None)) + setattr(self, "_{}".format('resources_content_type'), kwargs.get('resources_content_type', None)) + setattr(self, "_{}".format('resources_content_uri'), kwargs.get('resources_content_uri', None)) @property def created_by_user_info(self): @@ -274,8 +272,11 @@ def __eq__(self, other): if not isinstance(other, BrandResources): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandResources): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brand_resources_list.py b/docusign_esign/models/brand_resources_list.py index 2f2ba931..1d2c3eb2 100644 --- a/docusign_esign/models/brand_resources_list.py +++ b/docusign_esign/models/brand_resources_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandResourcesList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BrandResourcesList(object): 'resources_content_types': 'resourcesContentTypes' } - def __init__(self, resources_content_types=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandResourcesList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._resources_content_types = None self.discriminator = None - if resources_content_types is not None: - self.resources_content_types = resources_content_types + setattr(self, "_{}".format('resources_content_types'), kwargs.get('resources_content_types', None)) @property def resources_content_types(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BrandResourcesList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandResourcesList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brands_request.py b/docusign_esign/models/brands_request.py index 76e28855..8f6a94e5 100644 --- a/docusign_esign/models/brands_request.py +++ b/docusign_esign/models/brands_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandsRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BrandsRequest(object): 'brands': 'brands' } - def __init__(self, brands=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandsRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._brands = None self.discriminator = None - if brands is not None: - self.brands = brands + setattr(self, "_{}".format('brands'), kwargs.get('brands', None)) @property def brands(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BrandsRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/brands_response.py b/docusign_esign/models/brands_response.py index dbfe7089..70a04759 100644 --- a/docusign_esign/models/brands_response.py +++ b/docusign_esign/models/brands_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BrandsResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class BrandsResponse(object): 'sender_brand_id_default': 'senderBrandIdDefault' } - def __init__(self, brands=None, recipient_brand_id_default=None, sender_brand_id_default=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BrandsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._brands = None self._recipient_brand_id_default = None self._sender_brand_id_default = None self.discriminator = None - if brands is not None: - self.brands = brands - if recipient_brand_id_default is not None: - self.recipient_brand_id_default = recipient_brand_id_default - if sender_brand_id_default is not None: - self.sender_brand_id_default = sender_brand_id_default + setattr(self, "_{}".format('brands'), kwargs.get('brands', None)) + setattr(self, "_{}".format('recipient_brand_id_default'), kwargs.get('recipient_brand_id_default', None)) + setattr(self, "_{}".format('sender_brand_id_default'), kwargs.get('sender_brand_id_default', None)) @property def brands(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, BrandsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BrandsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_envelope.py b/docusign_esign/models/bulk_envelope.py index 24867510..fa0874a1 100644 --- a/docusign_esign/models/bulk_envelope.py +++ b/docusign_esign/models/bulk_envelope.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkEnvelope(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class BulkEnvelope(object): 'transaction_id': 'transactionId' } - def __init__(self, bulk_recipient_row=None, bulk_status=None, email=None, envelope_id=None, envelope_uri=None, error_details=None, name=None, submitted_date_time=None, transaction_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkEnvelope - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bulk_recipient_row = None self._bulk_status = None @@ -68,24 +73,15 @@ def __init__(self, bulk_recipient_row=None, bulk_status=None, email=None, envelo self._transaction_id = None self.discriminator = None - if bulk_recipient_row is not None: - self.bulk_recipient_row = bulk_recipient_row - if bulk_status is not None: - self.bulk_status = bulk_status - if email is not None: - self.email = email - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if error_details is not None: - self.error_details = error_details - if name is not None: - self.name = name - if submitted_date_time is not None: - self.submitted_date_time = submitted_date_time - if transaction_id is not None: - self.transaction_id = transaction_id + setattr(self, "_{}".format('bulk_recipient_row'), kwargs.get('bulk_recipient_row', None)) + setattr(self, "_{}".format('bulk_status'), kwargs.get('bulk_status', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('submitted_date_time'), kwargs.get('submitted_date_time', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) @property def bulk_recipient_row(self): @@ -332,8 +328,11 @@ def __eq__(self, other): if not isinstance(other, BulkEnvelope): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkEnvelope): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_envelope_status.py b/docusign_esign/models/bulk_envelope_status.py index a9718ee2..d28acbe3 100644 --- a/docusign_esign/models/bulk_envelope_status.py +++ b/docusign_esign/models/bulk_envelope_status.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkEnvelopeStatus(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -64,8 +66,11 @@ class BulkEnvelopeStatus(object): 'total_set_size': 'totalSetSize' } - def __init__(self, batch_id=None, batch_size=None, bulk_envelopes=None, bulk_envelopes_batch_uri=None, end_position=None, failed=None, next_uri=None, previous_uri=None, queued=None, result_set_size=None, sent=None, start_position=None, submitted_date=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkEnvelopeStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._batch_id = None self._batch_size = None @@ -83,34 +88,20 @@ def __init__(self, batch_id=None, batch_size=None, bulk_envelopes=None, bulk_env self._total_set_size = None self.discriminator = None - if batch_id is not None: - self.batch_id = batch_id - if batch_size is not None: - self.batch_size = batch_size - if bulk_envelopes is not None: - self.bulk_envelopes = bulk_envelopes - if bulk_envelopes_batch_uri is not None: - self.bulk_envelopes_batch_uri = bulk_envelopes_batch_uri - if end_position is not None: - self.end_position = end_position - if failed is not None: - self.failed = failed - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if queued is not None: - self.queued = queued - if result_set_size is not None: - self.result_set_size = result_set_size - if sent is not None: - self.sent = sent - if start_position is not None: - self.start_position = start_position - if submitted_date is not None: - self.submitted_date = submitted_date - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('batch_id'), kwargs.get('batch_id', None)) + setattr(self, "_{}".format('batch_size'), kwargs.get('batch_size', None)) + setattr(self, "_{}".format('bulk_envelopes'), kwargs.get('bulk_envelopes', None)) + setattr(self, "_{}".format('bulk_envelopes_batch_uri'), kwargs.get('bulk_envelopes_batch_uri', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('failed'), kwargs.get('failed', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('queued'), kwargs.get('queued', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('sent'), kwargs.get('sent', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('submitted_date'), kwargs.get('submitted_date', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def batch_id(self): @@ -474,8 +465,11 @@ def __eq__(self, other): if not isinstance(other, BulkEnvelopeStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkEnvelopeStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipient.py b/docusign_esign/models/bulk_recipient.py index 38adb1b6..e44747cf 100644 --- a/docusign_esign/models/bulk_recipient.py +++ b/docusign_esign/models/bulk_recipient.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipient(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class BulkRecipient(object): 'tab_labels': 'tabLabels' } - def __init__(self, access_code=None, email=None, error_details=None, identification=None, name=None, note=None, phone_number=None, recipient_signature_provider_info=None, row_number=None, tab_labels=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipient - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._email = None @@ -71,26 +76,16 @@ def __init__(self, access_code=None, email=None, error_details=None, identificat self._tab_labels = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if identification is not None: - self.identification = identification - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_number is not None: - self.phone_number = phone_number - if recipient_signature_provider_info is not None: - self.recipient_signature_provider_info = recipient_signature_provider_info - if row_number is not None: - self.row_number = row_number - if tab_labels is not None: - self.tab_labels = tab_labels + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('identification'), kwargs.get('identification', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_number'), kwargs.get('phone_number', None)) + setattr(self, "_{}".format('recipient_signature_provider_info'), kwargs.get('recipient_signature_provider_info', None)) + setattr(self, "_{}".format('row_number'), kwargs.get('row_number', None)) + setattr(self, "_{}".format('tab_labels'), kwargs.get('tab_labels', None)) @property def access_code(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipient): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipient): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipient_signature_provider.py b/docusign_esign/models/bulk_recipient_signature_provider.py index 86f84b9d..4f0c8dda 100644 --- a/docusign_esign/models/bulk_recipient_signature_provider.py +++ b/docusign_esign/models/bulk_recipient_signature_provider.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipientSignatureProvider(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class BulkRecipientSignatureProvider(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipientSignatureProvider - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._value = None self.discriminator = None - if name is not None: - self.name = name - if value is not None: - self.value = value + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def name(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipientSignatureProvider): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipientSignatureProvider): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipient_tab_label.py b/docusign_esign/models/bulk_recipient_tab_label.py index 9750100e..73711f15 100644 --- a/docusign_esign/models/bulk_recipient_tab_label.py +++ b/docusign_esign/models/bulk_recipient_tab_label.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipientTabLabel(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class BulkRecipientTabLabel(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipientTabLabel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._value = None self.discriminator = None - if name is not None: - self.name = name - if value is not None: - self.value = value + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def name(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipientTabLabel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipientTabLabel): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipients_request.py b/docusign_esign/models/bulk_recipients_request.py index 4f748085..bbd8848e 100644 --- a/docusign_esign/models/bulk_recipients_request.py +++ b/docusign_esign/models/bulk_recipients_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipientsRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BulkRecipientsRequest(object): 'bulk_recipients': 'bulkRecipients' } - def __init__(self, bulk_recipients=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipientsRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bulk_recipients = None self.discriminator = None - if bulk_recipients is not None: - self.bulk_recipients = bulk_recipients + setattr(self, "_{}".format('bulk_recipients'), kwargs.get('bulk_recipients', None)) @property def bulk_recipients(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipientsRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipientsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipients_response.py b/docusign_esign/models/bulk_recipients_response.py index 33b441a4..f4cae137 100644 --- a/docusign_esign/models/bulk_recipients_response.py +++ b/docusign_esign/models/bulk_recipients_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipientsResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class BulkRecipientsResponse(object): 'total_set_size': 'totalSetSize' } - def __init__(self, bulk_recipients=None, end_position=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipientsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bulk_recipients = None self._end_position = None @@ -62,20 +67,13 @@ def __init__(self, bulk_recipients=None, end_position=None, next_uri=None, previ self._total_set_size = None self.discriminator = None - if bulk_recipients is not None: - self.bulk_recipients = bulk_recipients - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('bulk_recipients'), kwargs.get('bulk_recipients', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def bulk_recipients(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipientsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipientsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipients_summary_response.py b/docusign_esign/models/bulk_recipients_summary_response.py index 05cd5fc2..8d96b3a4 100644 --- a/docusign_esign/models/bulk_recipients_summary_response.py +++ b/docusign_esign/models/bulk_recipients_summary_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipientsSummaryResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class BulkRecipientsSummaryResponse(object): 'error_details': 'errorDetails' } - def __init__(self, bulk_recipients=None, bulk_recipients_count=None, bulk_recipients_uri=None, error_details=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipientsSummaryResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bulk_recipients = None self._bulk_recipients_count = None @@ -53,14 +58,10 @@ def __init__(self, bulk_recipients=None, bulk_recipients_count=None, bulk_recipi self._error_details = None self.discriminator = None - if bulk_recipients is not None: - self.bulk_recipients = bulk_recipients - if bulk_recipients_count is not None: - self.bulk_recipients_count = bulk_recipients_count - if bulk_recipients_uri is not None: - self.bulk_recipients_uri = bulk_recipients_uri - if error_details is not None: - self.error_details = error_details + setattr(self, "_{}".format('bulk_recipients'), kwargs.get('bulk_recipients', None)) + setattr(self, "_{}".format('bulk_recipients_count'), kwargs.get('bulk_recipients_count', None)) + setattr(self, "_{}".format('bulk_recipients_uri'), kwargs.get('bulk_recipients_uri', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) @property def bulk_recipients(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipientsSummaryResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipientsSummaryResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_recipients_update_response.py b/docusign_esign/models/bulk_recipients_update_response.py index 9b6f0f58..6cd6cb44 100644 --- a/docusign_esign/models/bulk_recipients_update_response.py +++ b/docusign_esign/models/bulk_recipients_update_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class BulkRecipientsUpdateResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class BulkRecipientsUpdateResponse(object): 'signer': 'signer' } - def __init__(self, signer=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """BulkRecipientsUpdateResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._signer = None self.discriminator = None - if signer is not None: - self.signer = signer + setattr(self, "_{}".format('signer'), kwargs.get('signer', None)) @property def signer(self): @@ -108,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, BulkRecipientsUpdateResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkRecipientsUpdateResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/captive_recipient.py b/docusign_esign/models/captive_recipient.py index 33ce5adb..b2a2de8a 100644 --- a/docusign_esign/models/captive_recipient.py +++ b/docusign_esign/models/captive_recipient.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CaptiveRecipient(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class CaptiveRecipient(object): 'user_name': 'userName' } - def __init__(self, client_user_id=None, email=None, error_details=None, user_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CaptiveRecipient - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._client_user_id = None self._email = None @@ -53,14 +58,10 @@ def __init__(self, client_user_id=None, email=None, error_details=None, user_nam self._user_name = None self.discriminator = None - if client_user_id is not None: - self.client_user_id = client_user_id - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if user_name is not None: - self.user_name = user_name + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) @property def client_user_id(self): @@ -192,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, CaptiveRecipient): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CaptiveRecipient): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/captive_recipient_information.py b/docusign_esign/models/captive_recipient_information.py index 1cc31d66..0b3035e7 100644 --- a/docusign_esign/models/captive_recipient_information.py +++ b/docusign_esign/models/captive_recipient_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CaptiveRecipientInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class CaptiveRecipientInformation(object): 'captive_recipients': 'captiveRecipients' } - def __init__(self, captive_recipients=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CaptiveRecipientInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._captive_recipients = None self.discriminator = None - if captive_recipients is not None: - self.captive_recipients = captive_recipients + setattr(self, "_{}".format('captive_recipients'), kwargs.get('captive_recipients', None)) @property def captive_recipients(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, CaptiveRecipientInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CaptiveRecipientInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/carbon_copy.py b/docusign_esign/models/carbon_copy.py index 454eeed6..9a1d12f4 100644 --- a/docusign_esign/models/carbon_copy.py +++ b/docusign_esign/models/carbon_copy.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CarbonCopy(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -134,8 +136,11 @@ class CarbonCopy(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_edit_email=None, agent_can_edit_name=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, name=None, note=None, phone_authentication=None, proof_file=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CarbonCopy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -188,104 +193,55 @@ def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_ed self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if agent_can_edit_email is not None: - self.agent_can_edit_email = agent_can_edit_email - if agent_can_edit_name is not None: - self.agent_can_edit_name = agent_can_edit_name - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if proof_file is not None: - self.proof_file = proof_file - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('agent_can_edit_email'), kwargs.get('agent_can_edit_email', None)) + setattr(self, "_{}".format('agent_can_edit_name'), kwargs.get('agent_can_edit_name', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('proof_file'), kwargs.get('proof_file', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1436,8 +1392,11 @@ def __eq__(self, other): if not isinstance(other, CarbonCopy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CarbonCopy): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/certified_delivery.py b/docusign_esign/models/certified_delivery.py index 4dec65c8..72d47be7 100644 --- a/docusign_esign/models/certified_delivery.py +++ b/docusign_esign/models/certified_delivery.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CertifiedDelivery(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -134,8 +136,11 @@ class CertifiedDelivery(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_edit_email=None, agent_can_edit_name=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, name=None, note=None, phone_authentication=None, proof_file=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CertifiedDelivery - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -188,104 +193,55 @@ def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_ed self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if agent_can_edit_email is not None: - self.agent_can_edit_email = agent_can_edit_email - if agent_can_edit_name is not None: - self.agent_can_edit_name = agent_can_edit_name - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if proof_file is not None: - self.proof_file = proof_file - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('agent_can_edit_email'), kwargs.get('agent_can_edit_email', None)) + setattr(self, "_{}".format('agent_can_edit_name'), kwargs.get('agent_can_edit_name', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('proof_file'), kwargs.get('proof_file', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1436,8 +1392,11 @@ def __eq__(self, other): if not isinstance(other, CertifiedDelivery): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CertifiedDelivery): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/checkbox.py b/docusign_esign/models/checkbox.py index 8c218208..9f27543a 100644 --- a/docusign_esign/models/checkbox.py +++ b/docusign_esign/models/checkbox.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Checkbox(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -100,8 +102,11 @@ class Checkbox(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, locked=None, merge_field=None, name=None, page_number=None, recipient_id=None, required=None, require_initial_on_shared_change=None, selected=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Checkbox - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -137,70 +142,38 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if locked is not None: - self.locked = locked - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if selected is not None: - self.selected = selected - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('selected'), kwargs.get('selected', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -974,8 +947,11 @@ def __eq__(self, other): if not isinstance(other, Checkbox): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Checkbox): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/chunked_upload_part.py b/docusign_esign/models/chunked_upload_part.py index 2d575481..292a4d1a 100644 --- a/docusign_esign/models/chunked_upload_part.py +++ b/docusign_esign/models/chunked_upload_part.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ChunkedUploadPart(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ChunkedUploadPart(object): 'size': 'size' } - def __init__(self, sequence=None, size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ChunkedUploadPart - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._sequence = None self._size = None self.discriminator = None - if sequence is not None: - self.sequence = sequence - if size is not None: - self.size = size + setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) + setattr(self, "_{}".format('size'), kwargs.get('size', None)) @property def sequence(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ChunkedUploadPart): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ChunkedUploadPart): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/chunked_upload_request.py b/docusign_esign/models/chunked_upload_request.py index 1e96a97f..d4aab6c6 100644 --- a/docusign_esign/models/chunked_upload_request.py +++ b/docusign_esign/models/chunked_upload_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ChunkedUploadRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ChunkedUploadRequest(object): 'data': 'data' } - def __init__(self, chunked_upload_id=None, data=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ChunkedUploadRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._chunked_upload_id = None self._data = None self.discriminator = None - if chunked_upload_id is not None: - self.chunked_upload_id = chunked_upload_id - if data is not None: - self.data = data + setattr(self, "_{}".format('chunked_upload_id'), kwargs.get('chunked_upload_id', None)) + setattr(self, "_{}".format('data'), kwargs.get('data', None)) @property def chunked_upload_id(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ChunkedUploadRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ChunkedUploadRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/chunked_upload_response.py b/docusign_esign/models/chunked_upload_response.py index f1814e0c..d8e81169 100644 --- a/docusign_esign/models/chunked_upload_response.py +++ b/docusign_esign/models/chunked_upload_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ChunkedUploadResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class ChunkedUploadResponse(object): 'total_size': 'totalSize' } - def __init__(self, checksum=None, chunked_upload_id=None, chunked_upload_parts=None, chunked_upload_uri=None, committed=None, expiration_date_time=None, max_chunked_upload_parts=None, max_total_size=None, total_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ChunkedUploadResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._checksum = None self._chunked_upload_id = None @@ -68,24 +73,15 @@ def __init__(self, checksum=None, chunked_upload_id=None, chunked_upload_parts=N self._total_size = None self.discriminator = None - if checksum is not None: - self.checksum = checksum - if chunked_upload_id is not None: - self.chunked_upload_id = chunked_upload_id - if chunked_upload_parts is not None: - self.chunked_upload_parts = chunked_upload_parts - if chunked_upload_uri is not None: - self.chunked_upload_uri = chunked_upload_uri - if committed is not None: - self.committed = committed - if expiration_date_time is not None: - self.expiration_date_time = expiration_date_time - if max_chunked_upload_parts is not None: - self.max_chunked_upload_parts = max_chunked_upload_parts - if max_total_size is not None: - self.max_total_size = max_total_size - if total_size is not None: - self.total_size = total_size + setattr(self, "_{}".format('checksum'), kwargs.get('checksum', None)) + setattr(self, "_{}".format('chunked_upload_id'), kwargs.get('chunked_upload_id', None)) + setattr(self, "_{}".format('chunked_upload_parts'), kwargs.get('chunked_upload_parts', None)) + setattr(self, "_{}".format('chunked_upload_uri'), kwargs.get('chunked_upload_uri', None)) + setattr(self, "_{}".format('committed'), kwargs.get('committed', None)) + setattr(self, "_{}".format('expiration_date_time'), kwargs.get('expiration_date_time', None)) + setattr(self, "_{}".format('max_chunked_upload_parts'), kwargs.get('max_chunked_upload_parts', None)) + setattr(self, "_{}".format('max_total_size'), kwargs.get('max_total_size', None)) + setattr(self, "_{}".format('total_size'), kwargs.get('total_size', None)) @property def checksum(self): @@ -334,8 +330,11 @@ def __eq__(self, other): if not isinstance(other, ChunkedUploadResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ChunkedUploadResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/cloud_storage_provider.py b/docusign_esign/models/cloud_storage_provider.py index 37f8aaf3..192cb3b5 100644 --- a/docusign_esign/models/cloud_storage_provider.py +++ b/docusign_esign/models/cloud_storage_provider.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CloudStorageProvider(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class CloudStorageProvider(object): 'service_id': 'serviceId' } - def __init__(self, authentication_url=None, error_details=None, redirect_url=None, service=None, service_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CloudStorageProvider - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._authentication_url = None self._error_details = None @@ -56,16 +61,11 @@ def __init__(self, authentication_url=None, error_details=None, redirect_url=Non self._service_id = None self.discriminator = None - if authentication_url is not None: - self.authentication_url = authentication_url - if error_details is not None: - self.error_details = error_details - if redirect_url is not None: - self.redirect_url = redirect_url - if service is not None: - self.service = service - if service_id is not None: - self.service_id = service_id + setattr(self, "_{}".format('authentication_url'), kwargs.get('authentication_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('redirect_url'), kwargs.get('redirect_url', None)) + setattr(self, "_{}".format('service'), kwargs.get('service', None)) + setattr(self, "_{}".format('service_id'), kwargs.get('service_id', None)) @property def authentication_url(self): @@ -220,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, CloudStorageProvider): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CloudStorageProvider): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/cloud_storage_providers.py b/docusign_esign/models/cloud_storage_providers.py index 856e02fd..e499b190 100644 --- a/docusign_esign/models/cloud_storage_providers.py +++ b/docusign_esign/models/cloud_storage_providers.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CloudStorageProviders(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class CloudStorageProviders(object): 'storage_providers': 'storageProviders' } - def __init__(self, storage_providers=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CloudStorageProviders - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._storage_providers = None self.discriminator = None - if storage_providers is not None: - self.storage_providers = storage_providers + setattr(self, "_{}".format('storage_providers'), kwargs.get('storage_providers', None)) @property def storage_providers(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, CloudStorageProviders): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CloudStorageProviders): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/company.py b/docusign_esign/models/company.py index bf9f4776..490e2fdd 100644 --- a/docusign_esign/models/company.py +++ b/docusign_esign/models/company.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Company(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -118,8 +120,11 @@ class Company(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, required=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Company - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -164,88 +169,47 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if required is not None: - self.required = required - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1226,8 +1190,11 @@ def __eq__(self, other): if not isinstance(other, Company): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Company): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/composite_template.py b/docusign_esign/models/composite_template.py index 96241274..66c82f5b 100644 --- a/docusign_esign/models/composite_template.py +++ b/docusign_esign/models/composite_template.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CompositeTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class CompositeTemplate(object): 'server_templates': 'serverTemplates' } - def __init__(self, composite_template_id=None, document=None, inline_templates=None, pdf_meta_data_template_sequence=None, server_templates=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CompositeTemplate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._composite_template_id = None self._document = None @@ -56,16 +61,11 @@ def __init__(self, composite_template_id=None, document=None, inline_templates=N self._server_templates = None self.discriminator = None - if composite_template_id is not None: - self.composite_template_id = composite_template_id - if document is not None: - self.document = document - if inline_templates is not None: - self.inline_templates = inline_templates - if pdf_meta_data_template_sequence is not None: - self.pdf_meta_data_template_sequence = pdf_meta_data_template_sequence - if server_templates is not None: - self.server_templates = server_templates + setattr(self, "_{}".format('composite_template_id'), kwargs.get('composite_template_id', None)) + setattr(self, "_{}".format('document'), kwargs.get('document', None)) + setattr(self, "_{}".format('inline_templates'), kwargs.get('inline_templates', None)) + setattr(self, "_{}".format('pdf_meta_data_template_sequence'), kwargs.get('pdf_meta_data_template_sequence', None)) + setattr(self, "_{}".format('server_templates'), kwargs.get('server_templates', None)) @property def composite_template_id(self): @@ -220,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, CompositeTemplate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CompositeTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_config_results.py b/docusign_esign/models/connect_config_results.py index 2187717f..e628bfe3 100644 --- a/docusign_esign/models/connect_config_results.py +++ b/docusign_esign/models/connect_config_results.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectConfigResults(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ConnectConfigResults(object): 'total_records': 'totalRecords' } - def __init__(self, configurations=None, total_records=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectConfigResults - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._configurations = None self._total_records = None self.discriminator = None - if configurations is not None: - self.configurations = configurations - if total_records is not None: - self.total_records = total_records + setattr(self, "_{}".format('configurations'), kwargs.get('configurations', None)) + setattr(self, "_{}".format('total_records'), kwargs.get('total_records', None)) @property def configurations(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ConnectConfigResults): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectConfigResults): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_custom_configuration.py b/docusign_esign/models/connect_custom_configuration.py index 75983332..6a76f330 100644 --- a/docusign_esign/models/connect_custom_configuration.py +++ b/docusign_esign/models/connect_custom_configuration.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectCustomConfiguration(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -80,8 +82,11 @@ class ConnectCustomConfiguration(object): 'use_soap_interface': 'useSoapInterface' } - def __init__(self, allow_envelope_publish=None, all_users=None, configuration_type=None, connect_id=None, enable_log=None, envelope_events=None, include_certificate_of_completion=None, include_cert_soap_header=None, include_document_fields=None, include_documents=None, include_envelope_void_reason=None, include_hmac=None, include_sender_accountas_custom_field=None, include_time_zone_information=None, name=None, recipient_events=None, requires_acknowledgement=None, sign_message_with_x509_certificate=None, soap_namespace=None, url_to_publish_to=None, user_ids=None, use_soap_interface=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectCustomConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_envelope_publish = None self._all_users = None @@ -107,50 +112,28 @@ def __init__(self, allow_envelope_publish=None, all_users=None, configuration_ty self._use_soap_interface = None self.discriminator = None - if allow_envelope_publish is not None: - self.allow_envelope_publish = allow_envelope_publish - if all_users is not None: - self.all_users = all_users - if configuration_type is not None: - self.configuration_type = configuration_type - if connect_id is not None: - self.connect_id = connect_id - if enable_log is not None: - self.enable_log = enable_log - if envelope_events is not None: - self.envelope_events = envelope_events - if include_certificate_of_completion is not None: - self.include_certificate_of_completion = include_certificate_of_completion - if include_cert_soap_header is not None: - self.include_cert_soap_header = include_cert_soap_header - if include_document_fields is not None: - self.include_document_fields = include_document_fields - if include_documents is not None: - self.include_documents = include_documents - if include_envelope_void_reason is not None: - self.include_envelope_void_reason = include_envelope_void_reason - if include_hmac is not None: - self.include_hmac = include_hmac - if include_sender_accountas_custom_field is not None: - self.include_sender_accountas_custom_field = include_sender_accountas_custom_field - if include_time_zone_information is not None: - self.include_time_zone_information = include_time_zone_information - if name is not None: - self.name = name - if recipient_events is not None: - self.recipient_events = recipient_events - if requires_acknowledgement is not None: - self.requires_acknowledgement = requires_acknowledgement - if sign_message_with_x509_certificate is not None: - self.sign_message_with_x509_certificate = sign_message_with_x509_certificate - if soap_namespace is not None: - self.soap_namespace = soap_namespace - if url_to_publish_to is not None: - self.url_to_publish_to = url_to_publish_to - if user_ids is not None: - self.user_ids = user_ids - if use_soap_interface is not None: - self.use_soap_interface = use_soap_interface + setattr(self, "_{}".format('allow_envelope_publish'), kwargs.get('allow_envelope_publish', None)) + setattr(self, "_{}".format('all_users'), kwargs.get('all_users', None)) + setattr(self, "_{}".format('configuration_type'), kwargs.get('configuration_type', None)) + setattr(self, "_{}".format('connect_id'), kwargs.get('connect_id', None)) + setattr(self, "_{}".format('enable_log'), kwargs.get('enable_log', None)) + setattr(self, "_{}".format('envelope_events'), kwargs.get('envelope_events', None)) + setattr(self, "_{}".format('include_certificate_of_completion'), kwargs.get('include_certificate_of_completion', None)) + setattr(self, "_{}".format('include_cert_soap_header'), kwargs.get('include_cert_soap_header', None)) + setattr(self, "_{}".format('include_document_fields'), kwargs.get('include_document_fields', None)) + setattr(self, "_{}".format('include_documents'), kwargs.get('include_documents', None)) + setattr(self, "_{}".format('include_envelope_void_reason'), kwargs.get('include_envelope_void_reason', None)) + setattr(self, "_{}".format('include_hmac'), kwargs.get('include_hmac', None)) + setattr(self, "_{}".format('include_sender_accountas_custom_field'), kwargs.get('include_sender_accountas_custom_field', None)) + setattr(self, "_{}".format('include_time_zone_information'), kwargs.get('include_time_zone_information', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('recipient_events'), kwargs.get('recipient_events', None)) + setattr(self, "_{}".format('requires_acknowledgement'), kwargs.get('requires_acknowledgement', None)) + setattr(self, "_{}".format('sign_message_with_x509_certificate'), kwargs.get('sign_message_with_x509_certificate', None)) + setattr(self, "_{}".format('soap_namespace'), kwargs.get('soap_namespace', None)) + setattr(self, "_{}".format('url_to_publish_to'), kwargs.get('url_to_publish_to', None)) + setattr(self, "_{}".format('user_ids'), kwargs.get('user_ids', None)) + setattr(self, "_{}".format('use_soap_interface'), kwargs.get('use_soap_interface', None)) @property def allow_envelope_publish(self): @@ -698,8 +681,11 @@ def __eq__(self, other): if not isinstance(other, ConnectCustomConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectCustomConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_debug_log.py b/docusign_esign/models/connect_debug_log.py index d36e4a3d..c0dafd9d 100644 --- a/docusign_esign/models/connect_debug_log.py +++ b/docusign_esign/models/connect_debug_log.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectDebugLog(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class ConnectDebugLog(object): 'payload': 'payload' } - def __init__(self, connect_config=None, error_details=None, event_date_time=None, event_description=None, payload=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectDebugLog - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._connect_config = None self._error_details = None @@ -56,16 +61,11 @@ def __init__(self, connect_config=None, error_details=None, event_date_time=None self._payload = None self.discriminator = None - if connect_config is not None: - self.connect_config = connect_config - if error_details is not None: - self.error_details = error_details - if event_date_time is not None: - self.event_date_time = event_date_time - if event_description is not None: - self.event_description = event_description - if payload is not None: - self.payload = payload + setattr(self, "_{}".format('connect_config'), kwargs.get('connect_config', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('event_date_time'), kwargs.get('event_date_time', None)) + setattr(self, "_{}".format('event_description'), kwargs.get('event_description', None)) + setattr(self, "_{}".format('payload'), kwargs.get('payload', None)) @property def connect_config(self): @@ -220,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, ConnectDebugLog): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectDebugLog): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_failure_filter.py b/docusign_esign/models/connect_failure_filter.py index 7b2a5be2..f104ba86 100644 --- a/docusign_esign/models/connect_failure_filter.py +++ b/docusign_esign/models/connect_failure_filter.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectFailureFilter(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ConnectFailureFilter(object): 'synchronous': 'synchronous' } - def __init__(self, envelope_ids=None, synchronous=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectFailureFilter - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_ids = None self._synchronous = None self.discriminator = None - if envelope_ids is not None: - self.envelope_ids = envelope_ids - if synchronous is not None: - self.synchronous = synchronous + setattr(self, "_{}".format('envelope_ids'), kwargs.get('envelope_ids', None)) + setattr(self, "_{}".format('synchronous'), kwargs.get('synchronous', None)) @property def envelope_ids(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ConnectFailureFilter): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectFailureFilter): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_failure_result.py b/docusign_esign/models/connect_failure_result.py index e9702154..e15227b3 100644 --- a/docusign_esign/models/connect_failure_result.py +++ b/docusign_esign/models/connect_failure_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectFailureResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class ConnectFailureResult(object): 'status_message': 'statusMessage' } - def __init__(self, config_id=None, config_url=None, envelope_id=None, status=None, status_message=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectFailureResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._config_id = None self._config_url = None @@ -56,16 +61,11 @@ def __init__(self, config_id=None, config_url=None, envelope_id=None, status=Non self._status_message = None self.discriminator = None - if config_id is not None: - self.config_id = config_id - if config_url is not None: - self.config_url = config_url - if envelope_id is not None: - self.envelope_id = envelope_id - if status is not None: - self.status = status - if status_message is not None: - self.status_message = status_message + setattr(self, "_{}".format('config_id'), kwargs.get('config_id', None)) + setattr(self, "_{}".format('config_url'), kwargs.get('config_url', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('status_message'), kwargs.get('status_message', None)) @property def config_id(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, ConnectFailureResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectFailureResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_failure_results.py b/docusign_esign/models/connect_failure_results.py index 152db3d9..558e3ab1 100644 --- a/docusign_esign/models/connect_failure_results.py +++ b/docusign_esign/models/connect_failure_results.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectFailureResults(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ConnectFailureResults(object): 'retry_queue': 'retryQueue' } - def __init__(self, retry_queue=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectFailureResults - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._retry_queue = None self.discriminator = None - if retry_queue is not None: - self.retry_queue = retry_queue + setattr(self, "_{}".format('retry_queue'), kwargs.get('retry_queue', None)) @property def retry_queue(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ConnectFailureResults): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectFailureResults): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_log.py b/docusign_esign/models/connect_log.py index fe3d1d1d..30d1ef45 100644 --- a/docusign_esign/models/connect_log.py +++ b/docusign_esign/models/connect_log.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectLog(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -72,8 +74,11 @@ class ConnectLog(object): 'user_name': 'userName' } - def __init__(self, account_id=None, config_url=None, connect_debug_log=None, connect_id=None, created=None, email=None, envelope_id=None, error=None, failure_id=None, failure_uri=None, last_try=None, log_id=None, log_uri=None, retry_count=None, retry_uri=None, status=None, subject=None, user_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectLog - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_id = None self._config_url = None @@ -95,42 +100,24 @@ def __init__(self, account_id=None, config_url=None, connect_debug_log=None, con self._user_name = None self.discriminator = None - if account_id is not None: - self.account_id = account_id - if config_url is not None: - self.config_url = config_url - if connect_debug_log is not None: - self.connect_debug_log = connect_debug_log - if connect_id is not None: - self.connect_id = connect_id - if created is not None: - self.created = created - if email is not None: - self.email = email - if envelope_id is not None: - self.envelope_id = envelope_id - if error is not None: - self.error = error - if failure_id is not None: - self.failure_id = failure_id - if failure_uri is not None: - self.failure_uri = failure_uri - if last_try is not None: - self.last_try = last_try - if log_id is not None: - self.log_id = log_id - if log_uri is not None: - self.log_uri = log_uri - if retry_count is not None: - self.retry_count = retry_count - if retry_uri is not None: - self.retry_uri = retry_uri - if status is not None: - self.status = status - if subject is not None: - self.subject = subject - if user_name is not None: - self.user_name = user_name + setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) + setattr(self, "_{}".format('config_url'), kwargs.get('config_url', None)) + setattr(self, "_{}".format('connect_debug_log'), kwargs.get('connect_debug_log', None)) + setattr(self, "_{}".format('connect_id'), kwargs.get('connect_id', None)) + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('error'), kwargs.get('error', None)) + setattr(self, "_{}".format('failure_id'), kwargs.get('failure_id', None)) + setattr(self, "_{}".format('failure_uri'), kwargs.get('failure_uri', None)) + setattr(self, "_{}".format('last_try'), kwargs.get('last_try', None)) + setattr(self, "_{}".format('log_id'), kwargs.get('log_id', None)) + setattr(self, "_{}".format('log_uri'), kwargs.get('log_uri', None)) + setattr(self, "_{}".format('retry_count'), kwargs.get('retry_count', None)) + setattr(self, "_{}".format('retry_uri'), kwargs.get('retry_uri', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('subject'), kwargs.get('subject', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) @property def account_id(self): @@ -586,8 +573,11 @@ def __eq__(self, other): if not isinstance(other, ConnectLog): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectLog): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/connect_logs.py b/docusign_esign/models/connect_logs.py index 70d33fe6..795296a6 100644 --- a/docusign_esign/models/connect_logs.py +++ b/docusign_esign/models/connect_logs.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConnectLogs(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class ConnectLogs(object): 'type': 'type' } - def __init__(self, failures=None, logs=None, total_records=None, type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConnectLogs - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._failures = None self._logs = None @@ -53,14 +58,10 @@ def __init__(self, failures=None, logs=None, total_records=None, type=None): # self._type = None self.discriminator = None - if failures is not None: - self.failures = failures - if logs is not None: - self.logs = logs - if total_records is not None: - self.total_records = total_records - if type is not None: - self.type = type + setattr(self, "_{}".format('failures'), kwargs.get('failures', None)) + setattr(self, "_{}".format('logs'), kwargs.get('logs', None)) + setattr(self, "_{}".format('total_records'), kwargs.get('total_records', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) @property def failures(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, ConnectLogs): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConnectLogs): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/console_view_request.py b/docusign_esign/models/console_view_request.py index 55396e7f..91599bb1 100644 --- a/docusign_esign/models/console_view_request.py +++ b/docusign_esign/models/console_view_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConsoleViewRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ConsoleViewRequest(object): 'return_url': 'returnUrl' } - def __init__(self, envelope_id=None, return_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConsoleViewRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_id = None self._return_url = None self.discriminator = None - if envelope_id is not None: - self.envelope_id = envelope_id - if return_url is not None: - self.return_url = return_url + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('return_url'), kwargs.get('return_url', None)) @property def envelope_id(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ConsoleViewRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConsoleViewRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/consumer_disclosure.py b/docusign_esign/models/consumer_disclosure.py index 88b0a076..81b956ab 100644 --- a/docusign_esign/models/consumer_disclosure.py +++ b/docusign_esign/models/consumer_disclosure.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ConsumerDisclosure(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -100,8 +102,11 @@ class ConsumerDisclosure(object): 'withdraw_state': 'withdrawState' } - def __init__(self, account_esign_id=None, allow_cd_withdraw=None, allow_cd_withdraw_metadata=None, change_email=None, change_email_other=None, company_name=None, company_phone=None, copy_cost_per_page=None, copy_fee_collection_method=None, copy_request_email=None, custom=None, enable_esign=None, esign_agreement=None, esign_text=None, language_code=None, must_agree_to_esign=None, pdf_id=None, use_brand=None, use_consumer_disclosure_within_account=None, use_consumer_disclosure_within_account_metadata=None, withdraw_address_line1=None, withdraw_address_line2=None, withdraw_by_email=None, withdraw_by_mail=None, withdraw_by_phone=None, withdraw_city=None, withdraw_consequences=None, withdraw_email=None, withdraw_other=None, withdraw_phone=None, withdraw_postal_code=None, withdraw_state=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ConsumerDisclosure - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_esign_id = None self._allow_cd_withdraw = None @@ -137,70 +142,38 @@ def __init__(self, account_esign_id=None, allow_cd_withdraw=None, allow_cd_withd self._withdraw_state = None self.discriminator = None - if account_esign_id is not None: - self.account_esign_id = account_esign_id - if allow_cd_withdraw is not None: - self.allow_cd_withdraw = allow_cd_withdraw - if allow_cd_withdraw_metadata is not None: - self.allow_cd_withdraw_metadata = allow_cd_withdraw_metadata - if change_email is not None: - self.change_email = change_email - if change_email_other is not None: - self.change_email_other = change_email_other - if company_name is not None: - self.company_name = company_name - if company_phone is not None: - self.company_phone = company_phone - if copy_cost_per_page is not None: - self.copy_cost_per_page = copy_cost_per_page - if copy_fee_collection_method is not None: - self.copy_fee_collection_method = copy_fee_collection_method - if copy_request_email is not None: - self.copy_request_email = copy_request_email - if custom is not None: - self.custom = custom - if enable_esign is not None: - self.enable_esign = enable_esign - if esign_agreement is not None: - self.esign_agreement = esign_agreement - if esign_text is not None: - self.esign_text = esign_text - if language_code is not None: - self.language_code = language_code - if must_agree_to_esign is not None: - self.must_agree_to_esign = must_agree_to_esign - if pdf_id is not None: - self.pdf_id = pdf_id - if use_brand is not None: - self.use_brand = use_brand - if use_consumer_disclosure_within_account is not None: - self.use_consumer_disclosure_within_account = use_consumer_disclosure_within_account - if use_consumer_disclosure_within_account_metadata is not None: - self.use_consumer_disclosure_within_account_metadata = use_consumer_disclosure_within_account_metadata - if withdraw_address_line1 is not None: - self.withdraw_address_line1 = withdraw_address_line1 - if withdraw_address_line2 is not None: - self.withdraw_address_line2 = withdraw_address_line2 - if withdraw_by_email is not None: - self.withdraw_by_email = withdraw_by_email - if withdraw_by_mail is not None: - self.withdraw_by_mail = withdraw_by_mail - if withdraw_by_phone is not None: - self.withdraw_by_phone = withdraw_by_phone - if withdraw_city is not None: - self.withdraw_city = withdraw_city - if withdraw_consequences is not None: - self.withdraw_consequences = withdraw_consequences - if withdraw_email is not None: - self.withdraw_email = withdraw_email - if withdraw_other is not None: - self.withdraw_other = withdraw_other - if withdraw_phone is not None: - self.withdraw_phone = withdraw_phone - if withdraw_postal_code is not None: - self.withdraw_postal_code = withdraw_postal_code - if withdraw_state is not None: - self.withdraw_state = withdraw_state + setattr(self, "_{}".format('account_esign_id'), kwargs.get('account_esign_id', None)) + setattr(self, "_{}".format('allow_cd_withdraw'), kwargs.get('allow_cd_withdraw', None)) + setattr(self, "_{}".format('allow_cd_withdraw_metadata'), kwargs.get('allow_cd_withdraw_metadata', None)) + setattr(self, "_{}".format('change_email'), kwargs.get('change_email', None)) + setattr(self, "_{}".format('change_email_other'), kwargs.get('change_email_other', None)) + setattr(self, "_{}".format('company_name'), kwargs.get('company_name', None)) + setattr(self, "_{}".format('company_phone'), kwargs.get('company_phone', None)) + setattr(self, "_{}".format('copy_cost_per_page'), kwargs.get('copy_cost_per_page', None)) + setattr(self, "_{}".format('copy_fee_collection_method'), kwargs.get('copy_fee_collection_method', None)) + setattr(self, "_{}".format('copy_request_email'), kwargs.get('copy_request_email', None)) + setattr(self, "_{}".format('custom'), kwargs.get('custom', None)) + setattr(self, "_{}".format('enable_esign'), kwargs.get('enable_esign', None)) + setattr(self, "_{}".format('esign_agreement'), kwargs.get('esign_agreement', None)) + setattr(self, "_{}".format('esign_text'), kwargs.get('esign_text', None)) + setattr(self, "_{}".format('language_code'), kwargs.get('language_code', None)) + setattr(self, "_{}".format('must_agree_to_esign'), kwargs.get('must_agree_to_esign', None)) + setattr(self, "_{}".format('pdf_id'), kwargs.get('pdf_id', None)) + setattr(self, "_{}".format('use_brand'), kwargs.get('use_brand', None)) + setattr(self, "_{}".format('use_consumer_disclosure_within_account'), kwargs.get('use_consumer_disclosure_within_account', None)) + setattr(self, "_{}".format('use_consumer_disclosure_within_account_metadata'), kwargs.get('use_consumer_disclosure_within_account_metadata', None)) + setattr(self, "_{}".format('withdraw_address_line1'), kwargs.get('withdraw_address_line1', None)) + setattr(self, "_{}".format('withdraw_address_line2'), kwargs.get('withdraw_address_line2', None)) + setattr(self, "_{}".format('withdraw_by_email'), kwargs.get('withdraw_by_email', None)) + setattr(self, "_{}".format('withdraw_by_mail'), kwargs.get('withdraw_by_mail', None)) + setattr(self, "_{}".format('withdraw_by_phone'), kwargs.get('withdraw_by_phone', None)) + setattr(self, "_{}".format('withdraw_city'), kwargs.get('withdraw_city', None)) + setattr(self, "_{}".format('withdraw_consequences'), kwargs.get('withdraw_consequences', None)) + setattr(self, "_{}".format('withdraw_email'), kwargs.get('withdraw_email', None)) + setattr(self, "_{}".format('withdraw_other'), kwargs.get('withdraw_other', None)) + setattr(self, "_{}".format('withdraw_phone'), kwargs.get('withdraw_phone', None)) + setattr(self, "_{}".format('withdraw_postal_code'), kwargs.get('withdraw_postal_code', None)) + setattr(self, "_{}".format('withdraw_state'), kwargs.get('withdraw_state', None)) @property def account_esign_id(self): @@ -974,8 +947,11 @@ def __eq__(self, other): if not isinstance(other, ConsumerDisclosure): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ConsumerDisclosure): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/contact.py b/docusign_esign/models/contact.py index 63d4bdce..b6d6b9e9 100644 --- a/docusign_esign/models/contact.py +++ b/docusign_esign/models/contact.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Contact(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class Contact(object): 'signing_group_name': 'signingGroupName' } - def __init__(self, contact_id=None, contact_phone_numbers=None, contact_uri=None, emails=None, error_details=None, name=None, organization=None, shared=None, signing_group=None, signing_group_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Contact - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._contact_id = None self._contact_phone_numbers = None @@ -71,26 +76,16 @@ def __init__(self, contact_id=None, contact_phone_numbers=None, contact_uri=None self._signing_group_name = None self.discriminator = None - if contact_id is not None: - self.contact_id = contact_id - if contact_phone_numbers is not None: - self.contact_phone_numbers = contact_phone_numbers - if contact_uri is not None: - self.contact_uri = contact_uri - if emails is not None: - self.emails = emails - if error_details is not None: - self.error_details = error_details - if name is not None: - self.name = name - if organization is not None: - self.organization = organization - if shared is not None: - self.shared = shared - if signing_group is not None: - self.signing_group = signing_group - if signing_group_name is not None: - self.signing_group_name = signing_group_name + setattr(self, "_{}".format('contact_id'), kwargs.get('contact_id', None)) + setattr(self, "_{}".format('contact_phone_numbers'), kwargs.get('contact_phone_numbers', None)) + setattr(self, "_{}".format('contact_uri'), kwargs.get('contact_uri', None)) + setattr(self, "_{}".format('emails'), kwargs.get('emails', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('organization'), kwargs.get('organization', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('signing_group'), kwargs.get('signing_group', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) @property def contact_id(self): @@ -360,8 +355,11 @@ def __eq__(self, other): if not isinstance(other, Contact): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Contact): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/contact_get_response.py b/docusign_esign/models/contact_get_response.py index bd09e399..e155a349 100644 --- a/docusign_esign/models/contact_get_response.py +++ b/docusign_esign/models/contact_get_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ContactGetResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class ContactGetResponse(object): 'total_set_size': 'totalSetSize' } - def __init__(self, contacts=None, end_position=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ContactGetResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._contacts = None self._end_position = None @@ -62,20 +67,13 @@ def __init__(self, contacts=None, end_position=None, next_uri=None, previous_uri self._total_set_size = None self.discriminator = None - if contacts is not None: - self.contacts = contacts - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('contacts'), kwargs.get('contacts', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def contacts(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, ContactGetResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ContactGetResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/contact_mod_request.py b/docusign_esign/models/contact_mod_request.py index 6a673b1f..00628db8 100644 --- a/docusign_esign/models/contact_mod_request.py +++ b/docusign_esign/models/contact_mod_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ContactModRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ContactModRequest(object): 'contacts': 'contacts' } - def __init__(self, contacts=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ContactModRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._contacts = None self.discriminator = None - if contacts is not None: - self.contacts = contacts + setattr(self, "_{}".format('contacts'), kwargs.get('contacts', None)) @property def contacts(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ContactModRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ContactModRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/contact_phone_number.py b/docusign_esign/models/contact_phone_number.py index 2395f892..090d4aeb 100644 --- a/docusign_esign/models/contact_phone_number.py +++ b/docusign_esign/models/contact_phone_number.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ContactPhoneNumber(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ContactPhoneNumber(object): 'phone_type': 'phoneType' } - def __init__(self, phone_number=None, phone_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ContactPhoneNumber - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._phone_number = None self._phone_type = None self.discriminator = None - if phone_number is not None: - self.phone_number = phone_number - if phone_type is not None: - self.phone_type = phone_type + setattr(self, "_{}".format('phone_number'), kwargs.get('phone_number', None)) + setattr(self, "_{}".format('phone_type'), kwargs.get('phone_type', None)) @property def phone_number(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ContactPhoneNumber): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ContactPhoneNumber): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/contact_update_response.py b/docusign_esign/models/contact_update_response.py index ee3abc77..279cbac2 100644 --- a/docusign_esign/models/contact_update_response.py +++ b/docusign_esign/models/contact_update_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ContactUpdateResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ContactUpdateResponse(object): 'contacts': 'contacts' } - def __init__(self, contacts=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ContactUpdateResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._contacts = None self.discriminator = None - if contacts is not None: - self.contacts = contacts + setattr(self, "_{}".format('contacts'), kwargs.get('contacts', None)) @property def contacts(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ContactUpdateResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ContactUpdateResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/correct_view_request.py b/docusign_esign/models/correct_view_request.py index 21b32f93..e1510ddf 100644 --- a/docusign_esign/models/correct_view_request.py +++ b/docusign_esign/models/correct_view_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CorrectViewRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class CorrectViewRequest(object): 'view_url': 'viewUrl' } - def __init__(self, return_url=None, suppress_navigation=None, view_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CorrectViewRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._return_url = None self._suppress_navigation = None self._view_url = None self.discriminator = None - if return_url is not None: - self.return_url = return_url - if suppress_navigation is not None: - self.suppress_navigation = suppress_navigation - if view_url is not None: - self.view_url = view_url + setattr(self, "_{}".format('return_url'), kwargs.get('return_url', None)) + setattr(self, "_{}".format('suppress_navigation'), kwargs.get('suppress_navigation', None)) + setattr(self, "_{}".format('view_url'), kwargs.get('view_url', None)) @property def return_url(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, CorrectViewRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CorrectViewRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/country.py b/docusign_esign/models/country.py index 7534b5be..cf3ff8de 100644 --- a/docusign_esign/models/country.py +++ b/docusign_esign/models/country.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Country(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class Country(object): 'province_validated': 'provinceValidated' } - def __init__(self, iso_code=None, name=None, provinces=None, province_validated=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Country - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._iso_code = None self._name = None @@ -53,14 +58,10 @@ def __init__(self, iso_code=None, name=None, provinces=None, province_validated= self._province_validated = None self.discriminator = None - if iso_code is not None: - self.iso_code = iso_code - if name is not None: - self.name = name - if provinces is not None: - self.provinces = provinces - if province_validated is not None: - self.province_validated = province_validated + setattr(self, "_{}".format('iso_code'), kwargs.get('iso_code', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('provinces'), kwargs.get('provinces', None)) + setattr(self, "_{}".format('province_validated'), kwargs.get('province_validated', None)) @property def iso_code(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, Country): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Country): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/credit_card_information.py b/docusign_esign/models/credit_card_information.py index a68596bc..55e20ee8 100644 --- a/docusign_esign/models/credit_card_information.py +++ b/docusign_esign/models/credit_card_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CreditCardInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class CreditCardInformation(object): 'name_on_card': 'nameOnCard' } - def __init__(self, address=None, card_number=None, card_type=None, expiration_month=None, expiration_year=None, name_on_card=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CreditCardInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address = None self._card_number = None @@ -59,18 +64,12 @@ def __init__(self, address=None, card_number=None, card_type=None, expiration_mo self._name_on_card = None self.discriminator = None - if address is not None: - self.address = address - if card_number is not None: - self.card_number = card_number - if card_type is not None: - self.card_type = card_type - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if name_on_card is not None: - self.name_on_card = name_on_card + setattr(self, "_{}".format('address'), kwargs.get('address', None)) + setattr(self, "_{}".format('card_number'), kwargs.get('card_number', None)) + setattr(self, "_{}".format('card_type'), kwargs.get('card_type', None)) + setattr(self, "_{}".format('expiration_month'), kwargs.get('expiration_month', None)) + setattr(self, "_{}".format('expiration_year'), kwargs.get('expiration_year', None)) + setattr(self, "_{}".format('name_on_card'), kwargs.get('name_on_card', None)) @property def address(self): @@ -248,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, CreditCardInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreditCardInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/credit_card_types.py b/docusign_esign/models/credit_card_types.py index 5ff0175a..49eff291 100644 --- a/docusign_esign/models/credit_card_types.py +++ b/docusign_esign/models/credit_card_types.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CreditCardTypes(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class CreditCardTypes(object): 'card_types': 'cardTypes' } - def __init__(self, card_types=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CreditCardTypes - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._card_types = None self.discriminator = None - if card_types is not None: - self.card_types = card_types + setattr(self, "_{}".format('card_types'), kwargs.get('card_types', None)) @property def card_types(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, CreditCardTypes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreditCardTypes): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/currency_feature_set_price.py b/docusign_esign/models/currency_feature_set_price.py index 4554dde5..60f614a5 100644 --- a/docusign_esign/models/currency_feature_set_price.py +++ b/docusign_esign/models/currency_feature_set_price.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CurrencyFeatureSetPrice(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class CurrencyFeatureSetPrice(object): 'seat_fee': 'seatFee' } - def __init__(self, currency_code=None, currency_symbol=None, envelope_fee=None, fixed_fee=None, seat_fee=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CurrencyFeatureSetPrice - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._currency_code = None self._currency_symbol = None @@ -56,16 +61,11 @@ def __init__(self, currency_code=None, currency_symbol=None, envelope_fee=None, self._seat_fee = None self.discriminator = None - if currency_code is not None: - self.currency_code = currency_code - if currency_symbol is not None: - self.currency_symbol = currency_symbol - if envelope_fee is not None: - self.envelope_fee = envelope_fee - if fixed_fee is not None: - self.fixed_fee = fixed_fee - if seat_fee is not None: - self.seat_fee = seat_fee + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('currency_symbol'), kwargs.get('currency_symbol', None)) + setattr(self, "_{}".format('envelope_fee'), kwargs.get('envelope_fee', None)) + setattr(self, "_{}".format('fixed_fee'), kwargs.get('fixed_fee', None)) + setattr(self, "_{}".format('seat_fee'), kwargs.get('seat_fee', None)) @property def currency_code(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, CurrencyFeatureSetPrice): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CurrencyFeatureSetPrice): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/currency_plan_price.py b/docusign_esign/models/currency_plan_price.py index fbe455c4..21ed7a4f 100644 --- a/docusign_esign/models/currency_plan_price.py +++ b/docusign_esign/models/currency_plan_price.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CurrencyPlanPrice(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class CurrencyPlanPrice(object): 'support_plan_fee': 'supportPlanFee' } - def __init__(self, currency_code=None, currency_symbol=None, per_seat_price=None, supported_card_types=None, support_incident_fee=None, support_plan_fee=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CurrencyPlanPrice - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._currency_code = None self._currency_symbol = None @@ -59,18 +64,12 @@ def __init__(self, currency_code=None, currency_symbol=None, per_seat_price=None self._support_plan_fee = None self.discriminator = None - if currency_code is not None: - self.currency_code = currency_code - if currency_symbol is not None: - self.currency_symbol = currency_symbol - if per_seat_price is not None: - self.per_seat_price = per_seat_price - if supported_card_types is not None: - self.supported_card_types = supported_card_types - if support_incident_fee is not None: - self.support_incident_fee = support_incident_fee - if support_plan_fee is not None: - self.support_plan_fee = support_plan_fee + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('currency_symbol'), kwargs.get('currency_symbol', None)) + setattr(self, "_{}".format('per_seat_price'), kwargs.get('per_seat_price', None)) + setattr(self, "_{}".format('supported_card_types'), kwargs.get('supported_card_types', None)) + setattr(self, "_{}".format('support_incident_fee'), kwargs.get('support_incident_fee', None)) + setattr(self, "_{}".format('support_plan_fee'), kwargs.get('support_plan_fee', None)) @property def currency_code(self): @@ -248,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, CurrencyPlanPrice): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CurrencyPlanPrice): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/custom_field.py b/docusign_esign/models/custom_field.py index 94684554..557f91b0 100644 --- a/docusign_esign/models/custom_field.py +++ b/docusign_esign/models/custom_field.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CustomField(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class CustomField(object): 'value': 'value' } - def __init__(self, custom_field_type=None, error_details=None, field_id=None, list_items=None, name=None, required=None, show=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CustomField - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._custom_field_type = None self._error_details = None @@ -65,22 +70,14 @@ def __init__(self, custom_field_type=None, error_details=None, field_id=None, li self._value = None self.discriminator = None - if custom_field_type is not None: - self.custom_field_type = custom_field_type - if error_details is not None: - self.error_details = error_details - if field_id is not None: - self.field_id = field_id - if list_items is not None: - self.list_items = list_items - if name is not None: - self.name = name - if required is not None: - self.required = required - if show is not None: - self.show = show - if value is not None: - self.value = value + setattr(self, "_{}".format('custom_field_type'), kwargs.get('custom_field_type', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('field_id'), kwargs.get('field_id', None)) + setattr(self, "_{}".format('list_items'), kwargs.get('list_items', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('show'), kwargs.get('show', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def custom_field_type(self): @@ -304,8 +301,11 @@ def __eq__(self, other): if not isinstance(other, CustomField): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomField): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/custom_field_v2.py b/docusign_esign/models/custom_field_v2.py index ca741b3b..e7625734 100644 --- a/docusign_esign/models/custom_field_v2.py +++ b/docusign_esign/models/custom_field_v2.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CustomFieldV2(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class CustomFieldV2(object): 'value': 'value' } - def __init__(self, configuration_type=None, error_details=None, field_id=None, name=None, required=None, show=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CustomFieldV2 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._configuration_type = None self._error_details = None @@ -62,20 +67,13 @@ def __init__(self, configuration_type=None, error_details=None, field_id=None, n self._value = None self.discriminator = None - if configuration_type is not None: - self.configuration_type = configuration_type - if error_details is not None: - self.error_details = error_details - if field_id is not None: - self.field_id = field_id - if name is not None: - self.name = name - if required is not None: - self.required = required - if show is not None: - self.show = show - if value is not None: - self.value = value + setattr(self, "_{}".format('configuration_type'), kwargs.get('configuration_type', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('field_id'), kwargs.get('field_id', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('show'), kwargs.get('show', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def configuration_type(self): @@ -276,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, CustomFieldV2): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomFieldV2): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/custom_fields.py b/docusign_esign/models/custom_fields.py index b84cdca7..198831eb 100644 --- a/docusign_esign/models/custom_fields.py +++ b/docusign_esign/models/custom_fields.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CustomFields(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class CustomFields(object): 'text_custom_fields': 'textCustomFields' } - def __init__(self, list_custom_fields=None, text_custom_fields=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CustomFields - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._list_custom_fields = None self._text_custom_fields = None self.discriminator = None - if list_custom_fields is not None: - self.list_custom_fields = list_custom_fields - if text_custom_fields is not None: - self.text_custom_fields = text_custom_fields + setattr(self, "_{}".format('list_custom_fields'), kwargs.get('list_custom_fields', None)) + setattr(self, "_{}".format('text_custom_fields'), kwargs.get('text_custom_fields', None)) @property def list_custom_fields(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, CustomFields): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomFields): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/custom_fields_envelope.py b/docusign_esign/models/custom_fields_envelope.py index d5475bdd..4922ab26 100644 --- a/docusign_esign/models/custom_fields_envelope.py +++ b/docusign_esign/models/custom_fields_envelope.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CustomFieldsEnvelope(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class CustomFieldsEnvelope(object): 'text_custom_fields': 'textCustomFields' } - def __init__(self, list_custom_fields=None, text_custom_fields=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CustomFieldsEnvelope - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._list_custom_fields = None self._text_custom_fields = None self.discriminator = None - if list_custom_fields is not None: - self.list_custom_fields = list_custom_fields - if text_custom_fields is not None: - self.text_custom_fields = text_custom_fields + setattr(self, "_{}".format('list_custom_fields'), kwargs.get('list_custom_fields', None)) + setattr(self, "_{}".format('text_custom_fields'), kwargs.get('text_custom_fields', None)) @property def list_custom_fields(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, CustomFieldsEnvelope): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomFieldsEnvelope): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/custom_settings_information.py b/docusign_esign/models/custom_settings_information.py index d0bc6762..97259454 100644 --- a/docusign_esign/models/custom_settings_information.py +++ b/docusign_esign/models/custom_settings_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class CustomSettingsInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class CustomSettingsInformation(object): 'custom_settings': 'customSettings' } - def __init__(self, custom_settings=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """CustomSettingsInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._custom_settings = None self.discriminator = None - if custom_settings is not None: - self.custom_settings = custom_settings + setattr(self, "_{}".format('custom_settings'), kwargs.get('custom_settings', None)) @property def custom_settings(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, CustomSettingsInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomSettingsInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/date_signed.py b/docusign_esign/models/date_signed.py index 9f81cc33..9c0d9060 100644 --- a/docusign_esign/models/date_signed.py +++ b/docusign_esign/models/date_signed.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DateSigned(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -104,8 +106,11 @@ class DateSigned(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DateSigned - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -143,74 +148,40 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1030,8 +1001,11 @@ def __eq__(self, other): if not isinstance(other, DateSigned): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DateSigned): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/date_stamp_properties.py b/docusign_esign/models/date_stamp_properties.py index 991a8502..e16ea689 100644 --- a/docusign_esign/models/date_stamp_properties.py +++ b/docusign_esign/models/date_stamp_properties.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DateStampProperties(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class DateStampProperties(object): 'date_area_y': 'dateAreaY' } - def __init__(self, date_area_height=None, date_area_width=None, date_area_x=None, date_area_y=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DateStampProperties - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._date_area_height = None self._date_area_width = None @@ -53,14 +58,10 @@ def __init__(self, date_area_height=None, date_area_width=None, date_area_x=None self._date_area_y = None self.discriminator = None - if date_area_height is not None: - self.date_area_height = date_area_height - if date_area_width is not None: - self.date_area_width = date_area_width - if date_area_x is not None: - self.date_area_x = date_area_x - if date_area_y is not None: - self.date_area_y = date_area_y + setattr(self, "_{}".format('date_area_height'), kwargs.get('date_area_height', None)) + setattr(self, "_{}".format('date_area_width'), kwargs.get('date_area_width', None)) + setattr(self, "_{}".format('date_area_x'), kwargs.get('date_area_x', None)) + setattr(self, "_{}".format('date_area_y'), kwargs.get('date_area_y', None)) @property def date_area_height(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, DateStampProperties): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DateStampProperties): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/decline.py b/docusign_esign/models/decline.py index 20d664b1..30ab6288 100644 --- a/docusign_esign/models/decline.py +++ b/docusign_esign/models/decline.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Decline(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -108,8 +110,11 @@ class Decline(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, button_text=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, decline_reason=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, height=None, italic=None, merge_field=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Decline - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -149,78 +154,42 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if button_text is not None: - self.button_text = button_text - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if decline_reason is not None: - self.decline_reason = decline_reason - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if height is not None: - self.height = height - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('button_text'), kwargs.get('button_text', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('decline_reason'), kwargs.get('decline_reason', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1086,8 +1055,11 @@ def __eq__(self, other): if not isinstance(other, Decline): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Decline): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/diagnostics_settings_information.py b/docusign_esign/models/diagnostics_settings_information.py index b8a5f501..cbcab8be 100644 --- a/docusign_esign/models/diagnostics_settings_information.py +++ b/docusign_esign/models/diagnostics_settings_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DiagnosticsSettingsInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class DiagnosticsSettingsInformation(object): 'api_request_log_remaining_entries': 'apiRequestLogRemainingEntries' } - def __init__(self, api_request_logging=None, api_request_log_max_entries=None, api_request_log_remaining_entries=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DiagnosticsSettingsInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._api_request_logging = None self._api_request_log_max_entries = None self._api_request_log_remaining_entries = None self.discriminator = None - if api_request_logging is not None: - self.api_request_logging = api_request_logging - if api_request_log_max_entries is not None: - self.api_request_log_max_entries = api_request_log_max_entries - if api_request_log_remaining_entries is not None: - self.api_request_log_remaining_entries = api_request_log_remaining_entries + setattr(self, "_{}".format('api_request_logging'), kwargs.get('api_request_logging', None)) + setattr(self, "_{}".format('api_request_log_max_entries'), kwargs.get('api_request_log_max_entries', None)) + setattr(self, "_{}".format('api_request_log_remaining_entries'), kwargs.get('api_request_log_remaining_entries', None)) @property def api_request_logging(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, DiagnosticsSettingsInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DiagnosticsSettingsInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/dob_information_input.py b/docusign_esign/models/dob_information_input.py index ba18670c..72fadaa9 100644 --- a/docusign_esign/models/dob_information_input.py +++ b/docusign_esign/models/dob_information_input.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DobInformationInput(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class DobInformationInput(object): 'receive_in_response': 'receiveInResponse' } - def __init__(self, date_of_birth=None, display_level_code=None, receive_in_response=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DobInformationInput - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._date_of_birth = None self._display_level_code = None self._receive_in_response = None self.discriminator = None - if date_of_birth is not None: - self.date_of_birth = date_of_birth - if display_level_code is not None: - self.display_level_code = display_level_code - if receive_in_response is not None: - self.receive_in_response = receive_in_response + setattr(self, "_{}".format('date_of_birth'), kwargs.get('date_of_birth', None)) + setattr(self, "_{}".format('display_level_code'), kwargs.get('display_level_code', None)) + setattr(self, "_{}".format('receive_in_response'), kwargs.get('receive_in_response', None)) @property def date_of_birth(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, DobInformationInput): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DobInformationInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document.py b/docusign_esign/models/document.py index 0437f1bd..93d1753f 100644 --- a/docusign_esign/models/document.py +++ b/docusign_esign/models/document.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Document(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -80,8 +82,11 @@ class Document(object): 'uri': 'uri' } - def __init__(self, apply_anchor_tabs=None, authoritative_copy=None, display=None, document_base64=None, document_fields=None, document_id=None, encrypted_with_key_manager=None, file_extension=None, file_format_hint=None, html_definition=None, include_in_download=None, match_boxes=None, name=None, order=None, pages=None, password=None, remote_url=None, signer_must_acknowledge=None, template_locked=None, template_required=None, transform_pdf_fields=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Document - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._apply_anchor_tabs = None self._authoritative_copy = None @@ -107,50 +112,28 @@ def __init__(self, apply_anchor_tabs=None, authoritative_copy=None, display=None self._uri = None self.discriminator = None - if apply_anchor_tabs is not None: - self.apply_anchor_tabs = apply_anchor_tabs - if authoritative_copy is not None: - self.authoritative_copy = authoritative_copy - if display is not None: - self.display = display - if document_base64 is not None: - self.document_base64 = document_base64 - if document_fields is not None: - self.document_fields = document_fields - if document_id is not None: - self.document_id = document_id - if encrypted_with_key_manager is not None: - self.encrypted_with_key_manager = encrypted_with_key_manager - if file_extension is not None: - self.file_extension = file_extension - if file_format_hint is not None: - self.file_format_hint = file_format_hint - if html_definition is not None: - self.html_definition = html_definition - if include_in_download is not None: - self.include_in_download = include_in_download - if match_boxes is not None: - self.match_boxes = match_boxes - if name is not None: - self.name = name - if order is not None: - self.order = order - if pages is not None: - self.pages = pages - if password is not None: - self.password = password - if remote_url is not None: - self.remote_url = remote_url - if signer_must_acknowledge is not None: - self.signer_must_acknowledge = signer_must_acknowledge - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if transform_pdf_fields is not None: - self.transform_pdf_fields = transform_pdf_fields - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('apply_anchor_tabs'), kwargs.get('apply_anchor_tabs', None)) + setattr(self, "_{}".format('authoritative_copy'), kwargs.get('authoritative_copy', None)) + setattr(self, "_{}".format('display'), kwargs.get('display', None)) + setattr(self, "_{}".format('document_base64'), kwargs.get('document_base64', None)) + setattr(self, "_{}".format('document_fields'), kwargs.get('document_fields', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('encrypted_with_key_manager'), kwargs.get('encrypted_with_key_manager', None)) + setattr(self, "_{}".format('file_extension'), kwargs.get('file_extension', None)) + setattr(self, "_{}".format('file_format_hint'), kwargs.get('file_format_hint', None)) + setattr(self, "_{}".format('html_definition'), kwargs.get('html_definition', None)) + setattr(self, "_{}".format('include_in_download'), kwargs.get('include_in_download', None)) + setattr(self, "_{}".format('match_boxes'), kwargs.get('match_boxes', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('order'), kwargs.get('order', None)) + setattr(self, "_{}".format('pages'), kwargs.get('pages', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('remote_url'), kwargs.get('remote_url', None)) + setattr(self, "_{}".format('signer_must_acknowledge'), kwargs.get('signer_must_acknowledge', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('transform_pdf_fields'), kwargs.get('transform_pdf_fields', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def apply_anchor_tabs(self): @@ -696,8 +679,11 @@ def __eq__(self, other): if not isinstance(other, Document): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Document): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_fields_information.py b/docusign_esign/models/document_fields_information.py index 211d0413..7e69bdc5 100644 --- a/docusign_esign/models/document_fields_information.py +++ b/docusign_esign/models/document_fields_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentFieldsInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class DocumentFieldsInformation(object): 'document_fields': 'documentFields' } - def __init__(self, document_fields=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentFieldsInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_fields = None self.discriminator = None - if document_fields is not None: - self.document_fields = document_fields + setattr(self, "_{}".format('document_fields'), kwargs.get('document_fields', None)) @property def document_fields(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, DocumentFieldsInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentFieldsInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_collapsible_display_settings.py b/docusign_esign/models/document_html_collapsible_display_settings.py index 6eb69288..caa0e8c8 100644 --- a/docusign_esign/models/document_html_collapsible_display_settings.py +++ b/docusign_esign/models/document_html_collapsible_display_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlCollapsibleDisplaySettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class DocumentHtmlCollapsibleDisplaySettings(object): 'outer_label_and_arrow_style': 'outerLabelAndArrowStyle' } - def __init__(self, arrow_closed=None, arrow_color=None, arrow_location=None, arrow_open=None, arrow_size=None, arrow_style=None, container_style=None, label_style=None, only_arrow_is_clickable=None, outer_label_and_arrow_style=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlCollapsibleDisplaySettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._arrow_closed = None self._arrow_color = None @@ -71,26 +76,16 @@ def __init__(self, arrow_closed=None, arrow_color=None, arrow_location=None, arr self._outer_label_and_arrow_style = None self.discriminator = None - if arrow_closed is not None: - self.arrow_closed = arrow_closed - if arrow_color is not None: - self.arrow_color = arrow_color - if arrow_location is not None: - self.arrow_location = arrow_location - if arrow_open is not None: - self.arrow_open = arrow_open - if arrow_size is not None: - self.arrow_size = arrow_size - if arrow_style is not None: - self.arrow_style = arrow_style - if container_style is not None: - self.container_style = container_style - if label_style is not None: - self.label_style = label_style - if only_arrow_is_clickable is not None: - self.only_arrow_is_clickable = only_arrow_is_clickable - if outer_label_and_arrow_style is not None: - self.outer_label_and_arrow_style = outer_label_and_arrow_style + setattr(self, "_{}".format('arrow_closed'), kwargs.get('arrow_closed', None)) + setattr(self, "_{}".format('arrow_color'), kwargs.get('arrow_color', None)) + setattr(self, "_{}".format('arrow_location'), kwargs.get('arrow_location', None)) + setattr(self, "_{}".format('arrow_open'), kwargs.get('arrow_open', None)) + setattr(self, "_{}".format('arrow_size'), kwargs.get('arrow_size', None)) + setattr(self, "_{}".format('arrow_style'), kwargs.get('arrow_style', None)) + setattr(self, "_{}".format('container_style'), kwargs.get('container_style', None)) + setattr(self, "_{}".format('label_style'), kwargs.get('label_style', None)) + setattr(self, "_{}".format('only_arrow_is_clickable'), kwargs.get('only_arrow_is_clickable', None)) + setattr(self, "_{}".format('outer_label_and_arrow_style'), kwargs.get('outer_label_and_arrow_style', None)) @property def arrow_closed(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlCollapsibleDisplaySettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlCollapsibleDisplaySettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_definition.py b/docusign_esign/models/document_html_definition.py index b5027d91..e6e853a4 100644 --- a/docusign_esign/models/document_html_definition.py +++ b/docusign_esign/models/document_html_definition.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlDefinition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,8 +60,11 @@ class DocumentHtmlDefinition(object): 'source': 'source' } - def __init__(self, display_anchor_prefix=None, display_anchors=None, display_order=None, display_page_number=None, document_guid=None, document_id=None, header_label=None, max_screen_width=None, remove_empty_tags=None, show_mobile_optimized_toggle=None, source=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._display_anchor_prefix = None self._display_anchors = None @@ -74,28 +79,17 @@ def __init__(self, display_anchor_prefix=None, display_anchors=None, display_ord self._source = None self.discriminator = None - if display_anchor_prefix is not None: - self.display_anchor_prefix = display_anchor_prefix - if display_anchors is not None: - self.display_anchors = display_anchors - if display_order is not None: - self.display_order = display_order - if display_page_number is not None: - self.display_page_number = display_page_number - if document_guid is not None: - self.document_guid = document_guid - if document_id is not None: - self.document_id = document_id - if header_label is not None: - self.header_label = header_label - if max_screen_width is not None: - self.max_screen_width = max_screen_width - if remove_empty_tags is not None: - self.remove_empty_tags = remove_empty_tags - if show_mobile_optimized_toggle is not None: - self.show_mobile_optimized_toggle = show_mobile_optimized_toggle - if source is not None: - self.source = source + setattr(self, "_{}".format('display_anchor_prefix'), kwargs.get('display_anchor_prefix', None)) + setattr(self, "_{}".format('display_anchors'), kwargs.get('display_anchors', None)) + setattr(self, "_{}".format('display_order'), kwargs.get('display_order', None)) + setattr(self, "_{}".format('display_page_number'), kwargs.get('display_page_number', None)) + setattr(self, "_{}".format('document_guid'), kwargs.get('document_guid', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('header_label'), kwargs.get('header_label', None)) + setattr(self, "_{}".format('max_screen_width'), kwargs.get('max_screen_width', None)) + setattr(self, "_{}".format('remove_empty_tags'), kwargs.get('remove_empty_tags', None)) + setattr(self, "_{}".format('show_mobile_optimized_toggle'), kwargs.get('show_mobile_optimized_toggle', None)) + setattr(self, "_{}".format('source'), kwargs.get('source', None)) @property def display_anchor_prefix(self): @@ -390,8 +384,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_definition_original.py b/docusign_esign/models/document_html_definition_original.py index 86e73e7b..465dc5af 100644 --- a/docusign_esign/models/document_html_definition_original.py +++ b/docusign_esign/models/document_html_definition_original.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlDefinitionOriginal(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class DocumentHtmlDefinitionOriginal(object): 'html_definition': 'htmlDefinition' } - def __init__(self, document_id=None, document_id_guid=None, html_definition=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlDefinitionOriginal - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_id = None self._document_id_guid = None self._html_definition = None self.discriminator = None - if document_id is not None: - self.document_id = document_id - if document_id_guid is not None: - self.document_id_guid = document_id_guid - if html_definition is not None: - self.html_definition = html_definition + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('document_id_guid'), kwargs.get('document_id_guid', None)) + setattr(self, "_{}".format('html_definition'), kwargs.get('html_definition', None)) @property def document_id(self): @@ -164,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlDefinitionOriginal): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlDefinitionOriginal): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_definition_originals.py b/docusign_esign/models/document_html_definition_originals.py index 4076470a..4969045b 100644 --- a/docusign_esign/models/document_html_definition_originals.py +++ b/docusign_esign/models/document_html_definition_originals.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlDefinitionOriginals(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class DocumentHtmlDefinitionOriginals(object): 'html_definitions': 'htmlDefinitions' } - def __init__(self, html_definitions=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlDefinitionOriginals - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._html_definitions = None self.discriminator = None - if html_definitions is not None: - self.html_definitions = html_definitions + setattr(self, "_{}".format('html_definitions'), kwargs.get('html_definitions', None)) @property def html_definitions(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlDefinitionOriginals): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlDefinitionOriginals): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_definitions.py b/docusign_esign/models/document_html_definitions.py index bfd8f9ac..570edfa1 100644 --- a/docusign_esign/models/document_html_definitions.py +++ b/docusign_esign/models/document_html_definitions.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlDefinitions(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class DocumentHtmlDefinitions(object): 'html_definitions': 'htmlDefinitions' } - def __init__(self, html_definitions=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlDefinitions - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._html_definitions = None self.discriminator = None - if html_definitions is not None: - self.html_definitions = html_definitions + setattr(self, "_{}".format('html_definitions'), kwargs.get('html_definitions', None)) @property def html_definitions(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlDefinitions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlDefinitions): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_display_anchor.py b/docusign_esign/models/document_html_display_anchor.py index deaa5407..69fbf460 100644 --- a/docusign_esign/models/document_html_display_anchor.py +++ b/docusign_esign/models/document_html_display_anchor.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlDisplayAnchor(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class DocumentHtmlDisplayAnchor(object): 'start_anchor': 'startAnchor' } - def __init__(self, case_sensitive=None, display_settings=None, end_anchor=None, remove_end_anchor=None, remove_start_anchor=None, start_anchor=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlDisplayAnchor - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._case_sensitive = None self._display_settings = None @@ -59,18 +64,12 @@ def __init__(self, case_sensitive=None, display_settings=None, end_anchor=None, self._start_anchor = None self.discriminator = None - if case_sensitive is not None: - self.case_sensitive = case_sensitive - if display_settings is not None: - self.display_settings = display_settings - if end_anchor is not None: - self.end_anchor = end_anchor - if remove_end_anchor is not None: - self.remove_end_anchor = remove_end_anchor - if remove_start_anchor is not None: - self.remove_start_anchor = remove_start_anchor - if start_anchor is not None: - self.start_anchor = start_anchor + setattr(self, "_{}".format('case_sensitive'), kwargs.get('case_sensitive', None)) + setattr(self, "_{}".format('display_settings'), kwargs.get('display_settings', None)) + setattr(self, "_{}".format('end_anchor'), kwargs.get('end_anchor', None)) + setattr(self, "_{}".format('remove_end_anchor'), kwargs.get('remove_end_anchor', None)) + setattr(self, "_{}".format('remove_start_anchor'), kwargs.get('remove_start_anchor', None)) + setattr(self, "_{}".format('start_anchor'), kwargs.get('start_anchor', None)) @property def case_sensitive(self): @@ -248,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlDisplayAnchor): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlDisplayAnchor): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_html_display_settings.py b/docusign_esign/models/document_html_display_settings.py index 9e17d401..3f6b6be3 100644 --- a/docusign_esign/models/document_html_display_settings.py +++ b/docusign_esign/models/document_html_display_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentHtmlDisplaySettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class DocumentHtmlDisplaySettings(object): 'table_style': 'tableStyle' } - def __init__(self, cell_style=None, collapsible_settings=None, display=None, display_label=None, display_order=None, display_page_number=None, hide_label_when_opened=None, inline_outer_style=None, label_when_opened=None, pre_label=None, scroll_to_top_when_opened=None, table_style=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentHtmlDisplaySettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cell_style = None self._collapsible_settings = None @@ -77,30 +82,18 @@ def __init__(self, cell_style=None, collapsible_settings=None, display=None, dis self._table_style = None self.discriminator = None - if cell_style is not None: - self.cell_style = cell_style - if collapsible_settings is not None: - self.collapsible_settings = collapsible_settings - if display is not None: - self.display = display - if display_label is not None: - self.display_label = display_label - if display_order is not None: - self.display_order = display_order - if display_page_number is not None: - self.display_page_number = display_page_number - if hide_label_when_opened is not None: - self.hide_label_when_opened = hide_label_when_opened - if inline_outer_style is not None: - self.inline_outer_style = inline_outer_style - if label_when_opened is not None: - self.label_when_opened = label_when_opened - if pre_label is not None: - self.pre_label = pre_label - if scroll_to_top_when_opened is not None: - self.scroll_to_top_when_opened = scroll_to_top_when_opened - if table_style is not None: - self.table_style = table_style + setattr(self, "_{}".format('cell_style'), kwargs.get('cell_style', None)) + setattr(self, "_{}".format('collapsible_settings'), kwargs.get('collapsible_settings', None)) + setattr(self, "_{}".format('display'), kwargs.get('display', None)) + setattr(self, "_{}".format('display_label'), kwargs.get('display_label', None)) + setattr(self, "_{}".format('display_order'), kwargs.get('display_order', None)) + setattr(self, "_{}".format('display_page_number'), kwargs.get('display_page_number', None)) + setattr(self, "_{}".format('hide_label_when_opened'), kwargs.get('hide_label_when_opened', None)) + setattr(self, "_{}".format('inline_outer_style'), kwargs.get('inline_outer_style', None)) + setattr(self, "_{}".format('label_when_opened'), kwargs.get('label_when_opened', None)) + setattr(self, "_{}".format('pre_label'), kwargs.get('pre_label', None)) + setattr(self, "_{}".format('scroll_to_top_when_opened'), kwargs.get('scroll_to_top_when_opened', None)) + setattr(self, "_{}".format('table_style'), kwargs.get('table_style', None)) @property def cell_style(self): @@ -416,8 +409,11 @@ def __eq__(self, other): if not isinstance(other, DocumentHtmlDisplaySettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentHtmlDisplaySettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_template.py b/docusign_esign/models/document_template.py index 72bd9ae9..7d63ec86 100644 --- a/docusign_esign/models/document_template.py +++ b/docusign_esign/models/document_template.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class DocumentTemplate(object): 'template_id': 'templateId' } - def __init__(self, document_end_page=None, document_id=None, document_start_page=None, error_details=None, template_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentTemplate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_end_page = None self._document_id = None @@ -56,16 +61,11 @@ def __init__(self, document_end_page=None, document_id=None, document_start_page self._template_id = None self.discriminator = None - if document_end_page is not None: - self.document_end_page = document_end_page - if document_id is not None: - self.document_id = document_id - if document_start_page is not None: - self.document_start_page = document_start_page - if error_details is not None: - self.error_details = error_details - if template_id is not None: - self.template_id = template_id + setattr(self, "_{}".format('document_end_page'), kwargs.get('document_end_page', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('document_start_page'), kwargs.get('document_start_page', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) @property def document_end_page(self): @@ -220,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, DocumentTemplate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_template_list.py b/docusign_esign/models/document_template_list.py index 19a4a2df..9beeabae 100644 --- a/docusign_esign/models/document_template_list.py +++ b/docusign_esign/models/document_template_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentTemplateList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class DocumentTemplateList(object): 'document_templates': 'documentTemplates' } - def __init__(self, document_templates=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentTemplateList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_templates = None self.discriminator = None - if document_templates is not None: - self.document_templates = document_templates + setattr(self, "_{}".format('document_templates'), kwargs.get('document_templates', None)) @property def document_templates(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, DocumentTemplateList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentTemplateList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_visibility.py b/docusign_esign/models/document_visibility.py index ab5193bb..b0ce688d 100644 --- a/docusign_esign/models/document_visibility.py +++ b/docusign_esign/models/document_visibility.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentVisibility(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class DocumentVisibility(object): 'visible': 'visible' } - def __init__(self, document_id=None, error_details=None, recipient_id=None, rights=None, visible=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentVisibility - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_id = None self._error_details = None @@ -56,16 +61,11 @@ def __init__(self, document_id=None, error_details=None, recipient_id=None, righ self._visible = None self.discriminator = None - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if recipient_id is not None: - self.recipient_id = recipient_id - if rights is not None: - self.rights = rights - if visible is not None: - self.visible = visible + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('rights'), kwargs.get('rights', None)) + setattr(self, "_{}".format('visible'), kwargs.get('visible', None)) @property def document_id(self): @@ -220,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, DocumentVisibility): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentVisibility): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/document_visibility_list.py b/docusign_esign/models/document_visibility_list.py index 005212e6..2eda577e 100644 --- a/docusign_esign/models/document_visibility_list.py +++ b/docusign_esign/models/document_visibility_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class DocumentVisibilityList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class DocumentVisibilityList(object): 'document_visibility': 'documentVisibility' } - def __init__(self, document_visibility=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """DocumentVisibilityList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_visibility = None self.discriminator = None - if document_visibility is not None: - self.document_visibility = document_visibility + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) @property def document_visibility(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, DocumentVisibilityList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DocumentVisibilityList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/e_note_configuration.py b/docusign_esign/models/e_note_configuration.py index 8db1f548..68d54b25 100644 --- a/docusign_esign/models/e_note_configuration.py +++ b/docusign_esign/models/e_note_configuration.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ENoteConfiguration(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class ENoteConfiguration(object): 'user_name': 'userName' } - def __init__(self, connect_configured=None, e_note_configured=None, organization=None, password=None, user_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ENoteConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._connect_configured = None self._e_note_configured = None @@ -56,16 +61,11 @@ def __init__(self, connect_configured=None, e_note_configured=None, organization self._user_name = None self.discriminator = None - if connect_configured is not None: - self.connect_configured = connect_configured - if e_note_configured is not None: - self.e_note_configured = e_note_configured - if organization is not None: - self.organization = organization - if password is not None: - self.password = password - if user_name is not None: - self.user_name = user_name + setattr(self, "_{}".format('connect_configured'), kwargs.get('connect_configured', None)) + setattr(self, "_{}".format('e_note_configured'), kwargs.get('e_note_configured', None)) + setattr(self, "_{}".format('organization'), kwargs.get('organization', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) @property def connect_configured(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, ENoteConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ENoteConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/editor.py b/docusign_esign/models/editor.py index 8f73175b..ae459df0 100644 --- a/docusign_esign/models/editor.py +++ b/docusign_esign/models/editor.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Editor(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -126,8 +128,11 @@ class Editor(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, name=None, note=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Editor - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -176,96 +181,51 @@ def __init__(self, access_code=None, add_access_code_to_email=None, client_user_ self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1326,8 +1286,11 @@ def __eq__(self, other): if not isinstance(other, Editor): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Editor): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/email.py b/docusign_esign/models/email.py index b2672615..6dcb4f7c 100644 --- a/docusign_esign/models/email.py +++ b/docusign_esign/models/email.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Email(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -130,8 +132,11 @@ class Email(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Email - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -182,100 +187,53 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1394,8 +1352,11 @@ def __eq__(self, other): if not isinstance(other, Email): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Email): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/email_address.py b/docusign_esign/models/email_address.py index 3f0b0c74..41d99ffd 100644 --- a/docusign_esign/models/email_address.py +++ b/docusign_esign/models/email_address.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EmailAddress(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -104,8 +106,11 @@ class EmailAddress(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EmailAddress - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -143,74 +148,40 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1030,8 +1001,11 @@ def __eq__(self, other): if not isinstance(other, EmailAddress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EmailAddress): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/email_settings.py b/docusign_esign/models/email_settings.py index 84d0cf65..e0a22816 100644 --- a/docusign_esign/models/email_settings.py +++ b/docusign_esign/models/email_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EmailSettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class EmailSettings(object): 'reply_email_name_override': 'replyEmailNameOverride' } - def __init__(self, bcc_email_addresses=None, reply_email_address_override=None, reply_email_name_override=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EmailSettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bcc_email_addresses = None self._reply_email_address_override = None self._reply_email_name_override = None self.discriminator = None - if bcc_email_addresses is not None: - self.bcc_email_addresses = bcc_email_addresses - if reply_email_address_override is not None: - self.reply_email_address_override = reply_email_address_override - if reply_email_name_override is not None: - self.reply_email_name_override = reply_email_name_override + setattr(self, "_{}".format('bcc_email_addresses'), kwargs.get('bcc_email_addresses', None)) + setattr(self, "_{}".format('reply_email_address_override'), kwargs.get('reply_email_address_override', None)) + setattr(self, "_{}".format('reply_email_name_override'), kwargs.get('reply_email_name_override', None)) @property def bcc_email_addresses(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, EmailSettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EmailSettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope.py b/docusign_esign/models/envelope.py index 1c008929..7168bcca 100644 --- a/docusign_esign/models/envelope.py +++ b/docusign_esign/models/envelope.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Envelope(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -140,8 +142,11 @@ class Envelope(object): 'voided_reason': 'voidedReason' } - def __init__(self, allow_markup=None, allow_reassign=None, allow_view_history=None, asynchronous=None, attachments_uri=None, authoritative_copy=None, authoritative_copy_default=None, auto_navigation=None, brand_id=None, brand_lock=None, certificate_uri=None, completed_date_time=None, copy_recipient_data=None, created_date_time=None, custom_fields=None, custom_fields_uri=None, declined_date_time=None, deleted_date_time=None, delivered_date_time=None, disable_responsive_document=None, documents_combined_uri=None, documents_uri=None, email_blurb=None, email_settings=None, email_subject=None, enable_wet_sign=None, enforce_signer_visibility=None, envelope_id=None, envelope_id_stamping=None, envelope_uri=None, initial_sent_date_time=None, is21_cfr_part11=None, is_signature_provider_envelope=None, last_modified_date_time=None, lock_information=None, message_lock=None, notification=None, notification_uri=None, purge_state=None, recipients=None, recipients_lock=None, recipients_uri=None, sent_date_time=None, signer_can_sign_on_mobile=None, signing_location=None, status=None, status_changed_date_time=None, templates_uri=None, transaction_id=None, use_disclosure=None, voided_date_time=None, voided_reason=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Envelope - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_markup = None self._allow_reassign = None @@ -197,110 +202,58 @@ def __init__(self, allow_markup=None, allow_reassign=None, allow_view_history=No self._voided_reason = None self.discriminator = None - if allow_markup is not None: - self.allow_markup = allow_markup - if allow_reassign is not None: - self.allow_reassign = allow_reassign - if allow_view_history is not None: - self.allow_view_history = allow_view_history - if asynchronous is not None: - self.asynchronous = asynchronous - if attachments_uri is not None: - self.attachments_uri = attachments_uri - if authoritative_copy is not None: - self.authoritative_copy = authoritative_copy - if authoritative_copy_default is not None: - self.authoritative_copy_default = authoritative_copy_default - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if brand_id is not None: - self.brand_id = brand_id - if brand_lock is not None: - self.brand_lock = brand_lock - if certificate_uri is not None: - self.certificate_uri = certificate_uri - if completed_date_time is not None: - self.completed_date_time = completed_date_time - if copy_recipient_data is not None: - self.copy_recipient_data = copy_recipient_data - if created_date_time is not None: - self.created_date_time = created_date_time - if custom_fields is not None: - self.custom_fields = custom_fields - if custom_fields_uri is not None: - self.custom_fields_uri = custom_fields_uri - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if deleted_date_time is not None: - self.deleted_date_time = deleted_date_time - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if disable_responsive_document is not None: - self.disable_responsive_document = disable_responsive_document - if documents_combined_uri is not None: - self.documents_combined_uri = documents_combined_uri - if documents_uri is not None: - self.documents_uri = documents_uri - if email_blurb is not None: - self.email_blurb = email_blurb - if email_settings is not None: - self.email_settings = email_settings - if email_subject is not None: - self.email_subject = email_subject - if enable_wet_sign is not None: - self.enable_wet_sign = enable_wet_sign - if enforce_signer_visibility is not None: - self.enforce_signer_visibility = enforce_signer_visibility - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_id_stamping is not None: - self.envelope_id_stamping = envelope_id_stamping - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if initial_sent_date_time is not None: - self.initial_sent_date_time = initial_sent_date_time - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_signature_provider_envelope is not None: - self.is_signature_provider_envelope = is_signature_provider_envelope - if last_modified_date_time is not None: - self.last_modified_date_time = last_modified_date_time - if lock_information is not None: - self.lock_information = lock_information - if message_lock is not None: - self.message_lock = message_lock - if notification is not None: - self.notification = notification - if notification_uri is not None: - self.notification_uri = notification_uri - if purge_state is not None: - self.purge_state = purge_state - if recipients is not None: - self.recipients = recipients - if recipients_lock is not None: - self.recipients_lock = recipients_lock - if recipients_uri is not None: - self.recipients_uri = recipients_uri - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signer_can_sign_on_mobile is not None: - self.signer_can_sign_on_mobile = signer_can_sign_on_mobile - if signing_location is not None: - self.signing_location = signing_location - if status is not None: - self.status = status - if status_changed_date_time is not None: - self.status_changed_date_time = status_changed_date_time - if templates_uri is not None: - self.templates_uri = templates_uri - if transaction_id is not None: - self.transaction_id = transaction_id - if use_disclosure is not None: - self.use_disclosure = use_disclosure - if voided_date_time is not None: - self.voided_date_time = voided_date_time - if voided_reason is not None: - self.voided_reason = voided_reason + setattr(self, "_{}".format('allow_markup'), kwargs.get('allow_markup', None)) + setattr(self, "_{}".format('allow_reassign'), kwargs.get('allow_reassign', None)) + setattr(self, "_{}".format('allow_view_history'), kwargs.get('allow_view_history', None)) + setattr(self, "_{}".format('asynchronous'), kwargs.get('asynchronous', None)) + setattr(self, "_{}".format('attachments_uri'), kwargs.get('attachments_uri', None)) + setattr(self, "_{}".format('authoritative_copy'), kwargs.get('authoritative_copy', None)) + setattr(self, "_{}".format('authoritative_copy_default'), kwargs.get('authoritative_copy_default', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None)) + setattr(self, "_{}".format('brand_lock'), kwargs.get('brand_lock', None)) + setattr(self, "_{}".format('certificate_uri'), kwargs.get('certificate_uri', None)) + setattr(self, "_{}".format('completed_date_time'), kwargs.get('completed_date_time', None)) + setattr(self, "_{}".format('copy_recipient_data'), kwargs.get('copy_recipient_data', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('custom_fields_uri'), kwargs.get('custom_fields_uri', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('deleted_date_time'), kwargs.get('deleted_date_time', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('disable_responsive_document'), kwargs.get('disable_responsive_document', None)) + setattr(self, "_{}".format('documents_combined_uri'), kwargs.get('documents_combined_uri', None)) + setattr(self, "_{}".format('documents_uri'), kwargs.get('documents_uri', None)) + setattr(self, "_{}".format('email_blurb'), kwargs.get('email_blurb', None)) + setattr(self, "_{}".format('email_settings'), kwargs.get('email_settings', None)) + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) + setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('initial_sent_date_time'), kwargs.get('initial_sent_date_time', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_signature_provider_envelope'), kwargs.get('is_signature_provider_envelope', None)) + setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) + setattr(self, "_{}".format('lock_information'), kwargs.get('lock_information', None)) + setattr(self, "_{}".format('message_lock'), kwargs.get('message_lock', None)) + setattr(self, "_{}".format('notification'), kwargs.get('notification', None)) + setattr(self, "_{}".format('notification_uri'), kwargs.get('notification_uri', None)) + setattr(self, "_{}".format('purge_state'), kwargs.get('purge_state', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('recipients_lock'), kwargs.get('recipients_lock', None)) + setattr(self, "_{}".format('recipients_uri'), kwargs.get('recipients_uri', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signer_can_sign_on_mobile'), kwargs.get('signer_can_sign_on_mobile', None)) + setattr(self, "_{}".format('signing_location'), kwargs.get('signing_location', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('status_changed_date_time'), kwargs.get('status_changed_date_time', None)) + setattr(self, "_{}".format('templates_uri'), kwargs.get('templates_uri', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) + setattr(self, "_{}".format('use_disclosure'), kwargs.get('use_disclosure', None)) + setattr(self, "_{}".format('voided_date_time'), kwargs.get('voided_date_time', None)) + setattr(self, "_{}".format('voided_reason'), kwargs.get('voided_reason', None)) @property def allow_markup(self): @@ -1528,8 +1481,11 @@ def __eq__(self, other): if not isinstance(other, Envelope): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Envelope): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_attachment.py b/docusign_esign/models/envelope_attachment.py index 53e54ea2..3c9c9532 100644 --- a/docusign_esign/models/envelope_attachment.py +++ b/docusign_esign/models/envelope_attachment.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeAttachment(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class EnvelopeAttachment(object): 'name': 'name' } - def __init__(self, access_control=None, attachment_id=None, attachment_type=None, error_details=None, label=None, name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeAttachment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_control = None self._attachment_id = None @@ -59,18 +64,12 @@ def __init__(self, access_control=None, attachment_id=None, attachment_type=None self._name = None self.discriminator = None - if access_control is not None: - self.access_control = access_control - if attachment_id is not None: - self.attachment_id = attachment_id - if attachment_type is not None: - self.attachment_type = attachment_type - if error_details is not None: - self.error_details = error_details - if label is not None: - self.label = label - if name is not None: - self.name = name + setattr(self, "_{}".format('access_control'), kwargs.get('access_control', None)) + setattr(self, "_{}".format('attachment_id'), kwargs.get('attachment_id', None)) + setattr(self, "_{}".format('attachment_type'), kwargs.get('attachment_type', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('label'), kwargs.get('label', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) @property def access_control(self): @@ -248,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeAttachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeAttachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_attachments_request.py b/docusign_esign/models/envelope_attachments_request.py index fd5a78b5..2bcff511 100644 --- a/docusign_esign/models/envelope_attachments_request.py +++ b/docusign_esign/models/envelope_attachments_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeAttachmentsRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class EnvelopeAttachmentsRequest(object): 'attachments': 'attachments' } - def __init__(self, attachments=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeAttachmentsRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._attachments = None self.discriminator = None - if attachments is not None: - self.attachments = attachments + setattr(self, "_{}".format('attachments'), kwargs.get('attachments', None)) @property def attachments(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeAttachmentsRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeAttachmentsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_attachments_result.py b/docusign_esign/models/envelope_attachments_result.py index 435b79ec..fe3d5253 100644 --- a/docusign_esign/models/envelope_attachments_result.py +++ b/docusign_esign/models/envelope_attachments_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeAttachmentsResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class EnvelopeAttachmentsResult(object): 'attachments': 'attachments' } - def __init__(self, attachments=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeAttachmentsResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._attachments = None self.discriminator = None - if attachments is not None: - self.attachments = attachments + setattr(self, "_{}".format('attachments'), kwargs.get('attachments', None)) @property def attachments(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeAttachmentsResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeAttachmentsResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_audit_event.py b/docusign_esign/models/envelope_audit_event.py index 5995dbe3..a8db3ecb 100644 --- a/docusign_esign/models/envelope_audit_event.py +++ b/docusign_esign/models/envelope_audit_event.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeAuditEvent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class EnvelopeAuditEvent(object): 'event_fields': 'eventFields' } - def __init__(self, event_fields=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeAuditEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._event_fields = None self.discriminator = None - if event_fields is not None: - self.event_fields = event_fields + setattr(self, "_{}".format('event_fields'), kwargs.get('event_fields', None)) @property def event_fields(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeAuditEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeAuditEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_audit_event_response.py b/docusign_esign/models/envelope_audit_event_response.py index e4c3157a..e3c08be6 100644 --- a/docusign_esign/models/envelope_audit_event_response.py +++ b/docusign_esign/models/envelope_audit_event_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeAuditEventResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class EnvelopeAuditEventResponse(object): 'audit_events': 'auditEvents' } - def __init__(self, audit_events=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeAuditEventResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._audit_events = None self.discriminator = None - if audit_events is not None: - self.audit_events = audit_events + setattr(self, "_{}".format('audit_events'), kwargs.get('audit_events', None)) @property def audit_events(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeAuditEventResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeAuditEventResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_definition.py b/docusign_esign/models/envelope_definition.py index d8b56972..88930fb7 100644 --- a/docusign_esign/models/envelope_definition.py +++ b/docusign_esign/models/envelope_definition.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeDefinition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -158,8 +160,11 @@ class EnvelopeDefinition(object): 'voided_reason': 'voidedReason' } - def __init__(self, accessibility=None, allow_markup=None, allow_reassign=None, allow_recipient_recursion=None, allow_view_history=None, asynchronous=None, attachments=None, attachments_uri=None, authoritative_copy=None, authoritative_copy_default=None, auto_navigation=None, brand_id=None, brand_lock=None, certificate_uri=None, completed_date_time=None, composite_templates=None, copy_recipient_data=None, created_date_time=None, custom_fields=None, custom_fields_uri=None, declined_date_time=None, deleted_date_time=None, delivered_date_time=None, disable_responsive_document=None, documents=None, documents_combined_uri=None, documents_uri=None, email_blurb=None, email_settings=None, email_subject=None, enable_wet_sign=None, enforce_signer_visibility=None, envelope_id=None, envelope_id_stamping=None, envelope_uri=None, event_notification=None, initial_sent_date_time=None, is21_cfr_part11=None, is_signature_provider_envelope=None, last_modified_date_time=None, lock_information=None, message_lock=None, notification=None, notification_uri=None, password=None, purge_state=None, recipients=None, recipients_lock=None, recipients_uri=None, sent_date_time=None, signer_can_sign_on_mobile=None, signing_location=None, status=None, status_changed_date_time=None, template_id=None, template_roles=None, templates_uri=None, transaction_id=None, use_disclosure=None, voided_date_time=None, voided_reason=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._accessibility = None self._allow_markup = None @@ -224,128 +229,67 @@ def __init__(self, accessibility=None, allow_markup=None, allow_reassign=None, a self._voided_reason = None self.discriminator = None - if accessibility is not None: - self.accessibility = accessibility - if allow_markup is not None: - self.allow_markup = allow_markup - if allow_reassign is not None: - self.allow_reassign = allow_reassign - if allow_recipient_recursion is not None: - self.allow_recipient_recursion = allow_recipient_recursion - if allow_view_history is not None: - self.allow_view_history = allow_view_history - if asynchronous is not None: - self.asynchronous = asynchronous - if attachments is not None: - self.attachments = attachments - if attachments_uri is not None: - self.attachments_uri = attachments_uri - if authoritative_copy is not None: - self.authoritative_copy = authoritative_copy - if authoritative_copy_default is not None: - self.authoritative_copy_default = authoritative_copy_default - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if brand_id is not None: - self.brand_id = brand_id - if brand_lock is not None: - self.brand_lock = brand_lock - if certificate_uri is not None: - self.certificate_uri = certificate_uri - if completed_date_time is not None: - self.completed_date_time = completed_date_time - if composite_templates is not None: - self.composite_templates = composite_templates - if copy_recipient_data is not None: - self.copy_recipient_data = copy_recipient_data - if created_date_time is not None: - self.created_date_time = created_date_time - if custom_fields is not None: - self.custom_fields = custom_fields - if custom_fields_uri is not None: - self.custom_fields_uri = custom_fields_uri - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if deleted_date_time is not None: - self.deleted_date_time = deleted_date_time - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if disable_responsive_document is not None: - self.disable_responsive_document = disable_responsive_document - if documents is not None: - self.documents = documents - if documents_combined_uri is not None: - self.documents_combined_uri = documents_combined_uri - if documents_uri is not None: - self.documents_uri = documents_uri - if email_blurb is not None: - self.email_blurb = email_blurb - if email_settings is not None: - self.email_settings = email_settings - if email_subject is not None: - self.email_subject = email_subject - if enable_wet_sign is not None: - self.enable_wet_sign = enable_wet_sign - if enforce_signer_visibility is not None: - self.enforce_signer_visibility = enforce_signer_visibility - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_id_stamping is not None: - self.envelope_id_stamping = envelope_id_stamping - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if event_notification is not None: - self.event_notification = event_notification - if initial_sent_date_time is not None: - self.initial_sent_date_time = initial_sent_date_time - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_signature_provider_envelope is not None: - self.is_signature_provider_envelope = is_signature_provider_envelope - if last_modified_date_time is not None: - self.last_modified_date_time = last_modified_date_time - if lock_information is not None: - self.lock_information = lock_information - if message_lock is not None: - self.message_lock = message_lock - if notification is not None: - self.notification = notification - if notification_uri is not None: - self.notification_uri = notification_uri - if password is not None: - self.password = password - if purge_state is not None: - self.purge_state = purge_state - if recipients is not None: - self.recipients = recipients - if recipients_lock is not None: - self.recipients_lock = recipients_lock - if recipients_uri is not None: - self.recipients_uri = recipients_uri - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signer_can_sign_on_mobile is not None: - self.signer_can_sign_on_mobile = signer_can_sign_on_mobile - if signing_location is not None: - self.signing_location = signing_location - if status is not None: - self.status = status - if status_changed_date_time is not None: - self.status_changed_date_time = status_changed_date_time - if template_id is not None: - self.template_id = template_id - if template_roles is not None: - self.template_roles = template_roles - if templates_uri is not None: - self.templates_uri = templates_uri - if transaction_id is not None: - self.transaction_id = transaction_id - if use_disclosure is not None: - self.use_disclosure = use_disclosure - if voided_date_time is not None: - self.voided_date_time = voided_date_time - if voided_reason is not None: - self.voided_reason = voided_reason + setattr(self, "_{}".format('accessibility'), kwargs.get('accessibility', None)) + setattr(self, "_{}".format('allow_markup'), kwargs.get('allow_markup', None)) + setattr(self, "_{}".format('allow_reassign'), kwargs.get('allow_reassign', None)) + setattr(self, "_{}".format('allow_recipient_recursion'), kwargs.get('allow_recipient_recursion', None)) + setattr(self, "_{}".format('allow_view_history'), kwargs.get('allow_view_history', None)) + setattr(self, "_{}".format('asynchronous'), kwargs.get('asynchronous', None)) + setattr(self, "_{}".format('attachments'), kwargs.get('attachments', None)) + setattr(self, "_{}".format('attachments_uri'), kwargs.get('attachments_uri', None)) + setattr(self, "_{}".format('authoritative_copy'), kwargs.get('authoritative_copy', None)) + setattr(self, "_{}".format('authoritative_copy_default'), kwargs.get('authoritative_copy_default', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None)) + setattr(self, "_{}".format('brand_lock'), kwargs.get('brand_lock', None)) + setattr(self, "_{}".format('certificate_uri'), kwargs.get('certificate_uri', None)) + setattr(self, "_{}".format('completed_date_time'), kwargs.get('completed_date_time', None)) + setattr(self, "_{}".format('composite_templates'), kwargs.get('composite_templates', None)) + setattr(self, "_{}".format('copy_recipient_data'), kwargs.get('copy_recipient_data', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('custom_fields_uri'), kwargs.get('custom_fields_uri', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('deleted_date_time'), kwargs.get('deleted_date_time', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('disable_responsive_document'), kwargs.get('disable_responsive_document', None)) + setattr(self, "_{}".format('documents'), kwargs.get('documents', None)) + setattr(self, "_{}".format('documents_combined_uri'), kwargs.get('documents_combined_uri', None)) + setattr(self, "_{}".format('documents_uri'), kwargs.get('documents_uri', None)) + setattr(self, "_{}".format('email_blurb'), kwargs.get('email_blurb', None)) + setattr(self, "_{}".format('email_settings'), kwargs.get('email_settings', None)) + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) + setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('event_notification'), kwargs.get('event_notification', None)) + setattr(self, "_{}".format('initial_sent_date_time'), kwargs.get('initial_sent_date_time', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_signature_provider_envelope'), kwargs.get('is_signature_provider_envelope', None)) + setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) + setattr(self, "_{}".format('lock_information'), kwargs.get('lock_information', None)) + setattr(self, "_{}".format('message_lock'), kwargs.get('message_lock', None)) + setattr(self, "_{}".format('notification'), kwargs.get('notification', None)) + setattr(self, "_{}".format('notification_uri'), kwargs.get('notification_uri', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('purge_state'), kwargs.get('purge_state', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('recipients_lock'), kwargs.get('recipients_lock', None)) + setattr(self, "_{}".format('recipients_uri'), kwargs.get('recipients_uri', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signer_can_sign_on_mobile'), kwargs.get('signer_can_sign_on_mobile', None)) + setattr(self, "_{}".format('signing_location'), kwargs.get('signing_location', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('status_changed_date_time'), kwargs.get('status_changed_date_time', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('template_roles'), kwargs.get('template_roles', None)) + setattr(self, "_{}".format('templates_uri'), kwargs.get('templates_uri', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) + setattr(self, "_{}".format('use_disclosure'), kwargs.get('use_disclosure', None)) + setattr(self, "_{}".format('voided_date_time'), kwargs.get('voided_date_time', None)) + setattr(self, "_{}".format('voided_reason'), kwargs.get('voided_reason', None)) @property def accessibility(self): @@ -1778,8 +1722,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_document.py b/docusign_esign/models/envelope_document.py index 297b83b9..d39c49eb 100644 --- a/docusign_esign/models/envelope_document.py +++ b/docusign_esign/models/envelope_document.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeDocument(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class EnvelopeDocument(object): 'uri': 'uri' } - def __init__(self, attachment_tab_id=None, authoritative_copy=None, available_document_types=None, contains_pdf_form_fields=None, display=None, document_fields=None, document_id=None, error_details=None, include_in_download=None, name=None, order=None, pages=None, signer_must_acknowledge=None, size_bytes=None, type=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeDocument - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._attachment_tab_id = None self._authoritative_copy = None @@ -89,38 +94,22 @@ def __init__(self, attachment_tab_id=None, authoritative_copy=None, available_do self._uri = None self.discriminator = None - if attachment_tab_id is not None: - self.attachment_tab_id = attachment_tab_id - if authoritative_copy is not None: - self.authoritative_copy = authoritative_copy - if available_document_types is not None: - self.available_document_types = available_document_types - if contains_pdf_form_fields is not None: - self.contains_pdf_form_fields = contains_pdf_form_fields - if display is not None: - self.display = display - if document_fields is not None: - self.document_fields = document_fields - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if include_in_download is not None: - self.include_in_download = include_in_download - if name is not None: - self.name = name - if order is not None: - self.order = order - if pages is not None: - self.pages = pages - if signer_must_acknowledge is not None: - self.signer_must_acknowledge = signer_must_acknowledge - if size_bytes is not None: - self.size_bytes = size_bytes - if type is not None: - self.type = type - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('attachment_tab_id'), kwargs.get('attachment_tab_id', None)) + setattr(self, "_{}".format('authoritative_copy'), kwargs.get('authoritative_copy', None)) + setattr(self, "_{}".format('available_document_types'), kwargs.get('available_document_types', None)) + setattr(self, "_{}".format('contains_pdf_form_fields'), kwargs.get('contains_pdf_form_fields', None)) + setattr(self, "_{}".format('display'), kwargs.get('display', None)) + setattr(self, "_{}".format('document_fields'), kwargs.get('document_fields', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('include_in_download'), kwargs.get('include_in_download', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('order'), kwargs.get('order', None)) + setattr(self, "_{}".format('pages'), kwargs.get('pages', None)) + setattr(self, "_{}".format('signer_must_acknowledge'), kwargs.get('signer_must_acknowledge', None)) + setattr(self, "_{}".format('size_bytes'), kwargs.get('size_bytes', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def attachment_tab_id(self): @@ -528,8 +517,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeDocument): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeDocument): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_documents_result.py b/docusign_esign/models/envelope_documents_result.py index 7b54aac9..23cfa557 100644 --- a/docusign_esign/models/envelope_documents_result.py +++ b/docusign_esign/models/envelope_documents_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeDocumentsResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class EnvelopeDocumentsResult(object): 'envelope_id': 'envelopeId' } - def __init__(self, envelope_documents=None, envelope_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeDocumentsResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_documents = None self._envelope_id = None self.discriminator = None - if envelope_documents is not None: - self.envelope_documents = envelope_documents - if envelope_id is not None: - self.envelope_id = envelope_id + setattr(self, "_{}".format('envelope_documents'), kwargs.get('envelope_documents', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) @property def envelope_documents(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeDocumentsResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeDocumentsResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_event.py b/docusign_esign/models/envelope_event.py index 8617e5c0..03fe8fe3 100644 --- a/docusign_esign/models/envelope_event.py +++ b/docusign_esign/models/envelope_event.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeEvent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class EnvelopeEvent(object): 'include_documents': 'includeDocuments' } - def __init__(self, envelope_event_status_code=None, include_documents=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_event_status_code = None self._include_documents = None self.discriminator = None - if envelope_event_status_code is not None: - self.envelope_event_status_code = envelope_event_status_code - if include_documents is not None: - self.include_documents = include_documents + setattr(self, "_{}".format('envelope_event_status_code'), kwargs.get('envelope_event_status_code', None)) + setattr(self, "_{}".format('include_documents'), kwargs.get('include_documents', None)) @property def envelope_event_status_code(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_form_data.py b/docusign_esign/models/envelope_form_data.py index 684a4754..1ddcbf12 100644 --- a/docusign_esign/models/envelope_form_data.py +++ b/docusign_esign/models/envelope_form_data.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeFormData(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class EnvelopeFormData(object): 'status': 'status' } - def __init__(self, email_subject=None, envelope_id=None, form_data=None, prefill_form_data=None, recipient_form_data=None, sent_date_time=None, status=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeFormData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email_subject = None self._envelope_id = None @@ -62,20 +67,13 @@ def __init__(self, email_subject=None, envelope_id=None, form_data=None, prefill self._status = None self.discriminator = None - if email_subject is not None: - self.email_subject = email_subject - if envelope_id is not None: - self.envelope_id = envelope_id - if form_data is not None: - self.form_data = form_data - if prefill_form_data is not None: - self.prefill_form_data = prefill_form_data - if recipient_form_data is not None: - self.recipient_form_data = recipient_form_data - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if status is not None: - self.status = status + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None)) + setattr(self, "_{}".format('prefill_form_data'), kwargs.get('prefill_form_data', None)) + setattr(self, "_{}".format('recipient_form_data'), kwargs.get('recipient_form_data', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) @property def email_subject(self): @@ -276,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeFormData): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeFormData): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_id.py b/docusign_esign/models/envelope_id.py index 03b37e47..fa885c22 100644 --- a/docusign_esign/models/envelope_id.py +++ b/docusign_esign/models/envelope_id.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeId(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -102,8 +104,11 @@ class EnvelopeId(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeId - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -140,72 +145,39 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1002,8 +974,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeId): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeId): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_ids_request.py b/docusign_esign/models/envelope_ids_request.py index 0f9e4abf..5c5fee8c 100644 --- a/docusign_esign/models/envelope_ids_request.py +++ b/docusign_esign/models/envelope_ids_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeIdsRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class EnvelopeIdsRequest(object): 'transaction_ids': 'transactionIds' } - def __init__(self, envelope_ids=None, transaction_ids=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeIdsRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_ids = None self._transaction_ids = None self.discriminator = None - if envelope_ids is not None: - self.envelope_ids = envelope_ids - if transaction_ids is not None: - self.transaction_ids = transaction_ids + setattr(self, "_{}".format('envelope_ids'), kwargs.get('envelope_ids', None)) + setattr(self, "_{}".format('transaction_ids'), kwargs.get('transaction_ids', None)) @property def envelope_ids(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeIdsRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeIdsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_notification_request.py b/docusign_esign/models/envelope_notification_request.py index 374c8e12..c1319259 100644 --- a/docusign_esign/models/envelope_notification_request.py +++ b/docusign_esign/models/envelope_notification_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeNotificationRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class EnvelopeNotificationRequest(object): 'use_account_defaults': 'useAccountDefaults' } - def __init__(self, expirations=None, reminders=None, use_account_defaults=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeNotificationRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._expirations = None self._reminders = None self._use_account_defaults = None self.discriminator = None - if expirations is not None: - self.expirations = expirations - if reminders is not None: - self.reminders = reminders - if use_account_defaults is not None: - self.use_account_defaults = use_account_defaults + setattr(self, "_{}".format('expirations'), kwargs.get('expirations', None)) + setattr(self, "_{}".format('reminders'), kwargs.get('reminders', None)) + setattr(self, "_{}".format('use_account_defaults'), kwargs.get('use_account_defaults', None)) @property def expirations(self): @@ -162,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeNotificationRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeNotificationRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_summary.py b/docusign_esign/models/envelope_summary.py index 3bdf14a3..8c23a12e 100644 --- a/docusign_esign/models/envelope_summary.py +++ b/docusign_esign/models/envelope_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class EnvelopeSummary(object): 'uri': 'uri' } - def __init__(self, envelope_id=None, status=None, status_date_time=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_id = None self._status = None @@ -53,14 +58,10 @@ def __init__(self, envelope_id=None, status=None, status_date_time=None, uri=Non self._uri = None self.discriminator = None - if envelope_id is not None: - self.envelope_id = envelope_id - if status is not None: - self.status = status - if status_date_time is not None: - self.status_date_time = status_date_time - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('status_date_time'), kwargs.get('status_date_time', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def envelope_id(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_template.py b/docusign_esign/models/envelope_template.py index 5cca7072..6089cc08 100644 --- a/docusign_esign/models/envelope_template.py +++ b/docusign_esign/models/envelope_template.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -144,8 +146,11 @@ class EnvelopeTemplate(object): 'voided_reason': 'voidedReason' } - def __init__(self, allow_markup=None, allow_reassign=None, allow_view_history=None, asynchronous=None, attachments_uri=None, authoritative_copy=None, authoritative_copy_default=None, auto_navigation=None, brand_id=None, brand_lock=None, certificate_uri=None, completed_date_time=None, copy_recipient_data=None, created_date_time=None, custom_fields=None, custom_fields_uri=None, declined_date_time=None, deleted_date_time=None, delivered_date_time=None, disable_responsive_document=None, documents=None, documents_combined_uri=None, documents_uri=None, email_blurb=None, email_settings=None, email_subject=None, enable_wet_sign=None, enforce_signer_visibility=None, envelope_id=None, envelope_id_stamping=None, envelope_template_definition=None, envelope_uri=None, initial_sent_date_time=None, is21_cfr_part11=None, is_signature_provider_envelope=None, last_modified_date_time=None, lock_information=None, message_lock=None, notification=None, notification_uri=None, purge_state=None, recipients=None, recipients_lock=None, recipients_uri=None, sent_date_time=None, signer_can_sign_on_mobile=None, signing_location=None, status=None, status_changed_date_time=None, templates_uri=None, transaction_id=None, use_disclosure=None, voided_date_time=None, voided_reason=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeTemplate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_markup = None self._allow_reassign = None @@ -203,114 +208,60 @@ def __init__(self, allow_markup=None, allow_reassign=None, allow_view_history=No self._voided_reason = None self.discriminator = None - if allow_markup is not None: - self.allow_markup = allow_markup - if allow_reassign is not None: - self.allow_reassign = allow_reassign - if allow_view_history is not None: - self.allow_view_history = allow_view_history - if asynchronous is not None: - self.asynchronous = asynchronous - if attachments_uri is not None: - self.attachments_uri = attachments_uri - if authoritative_copy is not None: - self.authoritative_copy = authoritative_copy - if authoritative_copy_default is not None: - self.authoritative_copy_default = authoritative_copy_default - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if brand_id is not None: - self.brand_id = brand_id - if brand_lock is not None: - self.brand_lock = brand_lock - if certificate_uri is not None: - self.certificate_uri = certificate_uri - if completed_date_time is not None: - self.completed_date_time = completed_date_time - if copy_recipient_data is not None: - self.copy_recipient_data = copy_recipient_data - if created_date_time is not None: - self.created_date_time = created_date_time - if custom_fields is not None: - self.custom_fields = custom_fields - if custom_fields_uri is not None: - self.custom_fields_uri = custom_fields_uri - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if deleted_date_time is not None: - self.deleted_date_time = deleted_date_time - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if disable_responsive_document is not None: - self.disable_responsive_document = disable_responsive_document - if documents is not None: - self.documents = documents - if documents_combined_uri is not None: - self.documents_combined_uri = documents_combined_uri - if documents_uri is not None: - self.documents_uri = documents_uri - if email_blurb is not None: - self.email_blurb = email_blurb - if email_settings is not None: - self.email_settings = email_settings - if email_subject is not None: - self.email_subject = email_subject - if enable_wet_sign is not None: - self.enable_wet_sign = enable_wet_sign - if enforce_signer_visibility is not None: - self.enforce_signer_visibility = enforce_signer_visibility - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_id_stamping is not None: - self.envelope_id_stamping = envelope_id_stamping - if envelope_template_definition is not None: - self.envelope_template_definition = envelope_template_definition - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if initial_sent_date_time is not None: - self.initial_sent_date_time = initial_sent_date_time - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_signature_provider_envelope is not None: - self.is_signature_provider_envelope = is_signature_provider_envelope - if last_modified_date_time is not None: - self.last_modified_date_time = last_modified_date_time - if lock_information is not None: - self.lock_information = lock_information - if message_lock is not None: - self.message_lock = message_lock - if notification is not None: - self.notification = notification - if notification_uri is not None: - self.notification_uri = notification_uri - if purge_state is not None: - self.purge_state = purge_state - if recipients is not None: - self.recipients = recipients - if recipients_lock is not None: - self.recipients_lock = recipients_lock - if recipients_uri is not None: - self.recipients_uri = recipients_uri - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signer_can_sign_on_mobile is not None: - self.signer_can_sign_on_mobile = signer_can_sign_on_mobile - if signing_location is not None: - self.signing_location = signing_location - if status is not None: - self.status = status - if status_changed_date_time is not None: - self.status_changed_date_time = status_changed_date_time - if templates_uri is not None: - self.templates_uri = templates_uri - if transaction_id is not None: - self.transaction_id = transaction_id - if use_disclosure is not None: - self.use_disclosure = use_disclosure - if voided_date_time is not None: - self.voided_date_time = voided_date_time - if voided_reason is not None: - self.voided_reason = voided_reason + setattr(self, "_{}".format('allow_markup'), kwargs.get('allow_markup', None)) + setattr(self, "_{}".format('allow_reassign'), kwargs.get('allow_reassign', None)) + setattr(self, "_{}".format('allow_view_history'), kwargs.get('allow_view_history', None)) + setattr(self, "_{}".format('asynchronous'), kwargs.get('asynchronous', None)) + setattr(self, "_{}".format('attachments_uri'), kwargs.get('attachments_uri', None)) + setattr(self, "_{}".format('authoritative_copy'), kwargs.get('authoritative_copy', None)) + setattr(self, "_{}".format('authoritative_copy_default'), kwargs.get('authoritative_copy_default', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None)) + setattr(self, "_{}".format('brand_lock'), kwargs.get('brand_lock', None)) + setattr(self, "_{}".format('certificate_uri'), kwargs.get('certificate_uri', None)) + setattr(self, "_{}".format('completed_date_time'), kwargs.get('completed_date_time', None)) + setattr(self, "_{}".format('copy_recipient_data'), kwargs.get('copy_recipient_data', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('custom_fields_uri'), kwargs.get('custom_fields_uri', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('deleted_date_time'), kwargs.get('deleted_date_time', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('disable_responsive_document'), kwargs.get('disable_responsive_document', None)) + setattr(self, "_{}".format('documents'), kwargs.get('documents', None)) + setattr(self, "_{}".format('documents_combined_uri'), kwargs.get('documents_combined_uri', None)) + setattr(self, "_{}".format('documents_uri'), kwargs.get('documents_uri', None)) + setattr(self, "_{}".format('email_blurb'), kwargs.get('email_blurb', None)) + setattr(self, "_{}".format('email_settings'), kwargs.get('email_settings', None)) + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) + setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) + setattr(self, "_{}".format('envelope_template_definition'), kwargs.get('envelope_template_definition', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('initial_sent_date_time'), kwargs.get('initial_sent_date_time', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_signature_provider_envelope'), kwargs.get('is_signature_provider_envelope', None)) + setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) + setattr(self, "_{}".format('lock_information'), kwargs.get('lock_information', None)) + setattr(self, "_{}".format('message_lock'), kwargs.get('message_lock', None)) + setattr(self, "_{}".format('notification'), kwargs.get('notification', None)) + setattr(self, "_{}".format('notification_uri'), kwargs.get('notification_uri', None)) + setattr(self, "_{}".format('purge_state'), kwargs.get('purge_state', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('recipients_lock'), kwargs.get('recipients_lock', None)) + setattr(self, "_{}".format('recipients_uri'), kwargs.get('recipients_uri', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signer_can_sign_on_mobile'), kwargs.get('signer_can_sign_on_mobile', None)) + setattr(self, "_{}".format('signing_location'), kwargs.get('signing_location', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('status_changed_date_time'), kwargs.get('status_changed_date_time', None)) + setattr(self, "_{}".format('templates_uri'), kwargs.get('templates_uri', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) + setattr(self, "_{}".format('use_disclosure'), kwargs.get('use_disclosure', None)) + setattr(self, "_{}".format('voided_date_time'), kwargs.get('voided_date_time', None)) + setattr(self, "_{}".format('voided_reason'), kwargs.get('voided_reason', None)) @property def allow_markup(self): @@ -1582,8 +1533,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeTemplate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_template_definition.py b/docusign_esign/models/envelope_template_definition.py index cab4432d..90304f26 100644 --- a/docusign_esign/models/envelope_template_definition.py +++ b/docusign_esign/models/envelope_template_definition.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeTemplateDefinition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class EnvelopeTemplateDefinition(object): 'uri': 'uri' } - def __init__(self, created=None, description=None, folder_id=None, folder_name=None, folder_uri=None, last_modified=None, last_modified_by=None, name=None, new_password=None, owner=None, page_count=None, parent_folder_uri=None, password=None, shared=None, template_id=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeTemplateDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created = None self._description = None @@ -89,38 +94,22 @@ def __init__(self, created=None, description=None, folder_id=None, folder_name=N self._uri = None self.discriminator = None - if created is not None: - self.created = created - if description is not None: - self.description = description - if folder_id is not None: - self.folder_id = folder_id - if folder_name is not None: - self.folder_name = folder_name - if folder_uri is not None: - self.folder_uri = folder_uri - if last_modified is not None: - self.last_modified = last_modified - if last_modified_by is not None: - self.last_modified_by = last_modified_by - if name is not None: - self.name = name - if new_password is not None: - self.new_password = new_password - if owner is not None: - self.owner = owner - if page_count is not None: - self.page_count = page_count - if parent_folder_uri is not None: - self.parent_folder_uri = parent_folder_uri - if password is not None: - self.password = password - if shared is not None: - self.shared = shared - if template_id is not None: - self.template_id = template_id - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('description'), kwargs.get('description', None)) + setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) + setattr(self, "_{}".format('folder_name'), kwargs.get('folder_name', None)) + setattr(self, "_{}".format('folder_uri'), kwargs.get('folder_uri', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('new_password'), kwargs.get('new_password', None)) + setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) + setattr(self, "_{}".format('page_count'), kwargs.get('page_count', None)) + setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def created(self): @@ -526,8 +515,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeTemplateDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeTemplateDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_template_result.py b/docusign_esign/models/envelope_template_result.py index 7aa185bd..f4cc31c1 100644 --- a/docusign_esign/models/envelope_template_result.py +++ b/docusign_esign/models/envelope_template_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeTemplateResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -170,8 +172,11 @@ class EnvelopeTemplateResult(object): 'voided_reason': 'voidedReason' } - def __init__(self, allow_markup=None, allow_reassign=None, allow_view_history=None, asynchronous=None, attachments_uri=None, authoritative_copy=None, authoritative_copy_default=None, auto_navigation=None, brand_id=None, brand_lock=None, certificate_uri=None, completed_date_time=None, copy_recipient_data=None, created=None, created_date_time=None, custom_fields=None, custom_fields_uri=None, declined_date_time=None, deleted_date_time=None, delivered_date_time=None, description=None, disable_responsive_document=None, documents=None, documents_combined_uri=None, documents_uri=None, email_blurb=None, email_settings=None, email_subject=None, enable_wet_sign=None, enforce_signer_visibility=None, envelope_id=None, envelope_id_stamping=None, envelope_uri=None, folder_id=None, folder_name=None, folder_uri=None, initial_sent_date_time=None, is21_cfr_part11=None, is_signature_provider_envelope=None, last_modified=None, last_modified_date_time=None, lock_information=None, message_lock=None, name=None, notification=None, notification_uri=None, owner=None, page_count=None, parent_folder_uri=None, password=None, purge_state=None, recipients=None, recipients_lock=None, recipients_uri=None, sent_date_time=None, shared=None, signer_can_sign_on_mobile=None, signing_location=None, status=None, status_changed_date_time=None, template_id=None, templates_uri=None, transaction_id=None, uri=None, use_disclosure=None, voided_date_time=None, voided_reason=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeTemplateResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_markup = None self._allow_reassign = None @@ -242,140 +247,73 @@ def __init__(self, allow_markup=None, allow_reassign=None, allow_view_history=No self._voided_reason = None self.discriminator = None - if allow_markup is not None: - self.allow_markup = allow_markup - if allow_reassign is not None: - self.allow_reassign = allow_reassign - if allow_view_history is not None: - self.allow_view_history = allow_view_history - if asynchronous is not None: - self.asynchronous = asynchronous - if attachments_uri is not None: - self.attachments_uri = attachments_uri - if authoritative_copy is not None: - self.authoritative_copy = authoritative_copy - if authoritative_copy_default is not None: - self.authoritative_copy_default = authoritative_copy_default - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if brand_id is not None: - self.brand_id = brand_id - if brand_lock is not None: - self.brand_lock = brand_lock - if certificate_uri is not None: - self.certificate_uri = certificate_uri - if completed_date_time is not None: - self.completed_date_time = completed_date_time - if copy_recipient_data is not None: - self.copy_recipient_data = copy_recipient_data - if created is not None: - self.created = created - if created_date_time is not None: - self.created_date_time = created_date_time - if custom_fields is not None: - self.custom_fields = custom_fields - if custom_fields_uri is not None: - self.custom_fields_uri = custom_fields_uri - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if deleted_date_time is not None: - self.deleted_date_time = deleted_date_time - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if description is not None: - self.description = description - if disable_responsive_document is not None: - self.disable_responsive_document = disable_responsive_document - if documents is not None: - self.documents = documents - if documents_combined_uri is not None: - self.documents_combined_uri = documents_combined_uri - if documents_uri is not None: - self.documents_uri = documents_uri - if email_blurb is not None: - self.email_blurb = email_blurb - if email_settings is not None: - self.email_settings = email_settings - if email_subject is not None: - self.email_subject = email_subject - if enable_wet_sign is not None: - self.enable_wet_sign = enable_wet_sign - if enforce_signer_visibility is not None: - self.enforce_signer_visibility = enforce_signer_visibility - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_id_stamping is not None: - self.envelope_id_stamping = envelope_id_stamping - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if folder_id is not None: - self.folder_id = folder_id - if folder_name is not None: - self.folder_name = folder_name - if folder_uri is not None: - self.folder_uri = folder_uri - if initial_sent_date_time is not None: - self.initial_sent_date_time = initial_sent_date_time - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_signature_provider_envelope is not None: - self.is_signature_provider_envelope = is_signature_provider_envelope - if last_modified is not None: - self.last_modified = last_modified - if last_modified_date_time is not None: - self.last_modified_date_time = last_modified_date_time - if lock_information is not None: - self.lock_information = lock_information - if message_lock is not None: - self.message_lock = message_lock - if name is not None: - self.name = name - if notification is not None: - self.notification = notification - if notification_uri is not None: - self.notification_uri = notification_uri - if owner is not None: - self.owner = owner - if page_count is not None: - self.page_count = page_count - if parent_folder_uri is not None: - self.parent_folder_uri = parent_folder_uri - if password is not None: - self.password = password - if purge_state is not None: - self.purge_state = purge_state - if recipients is not None: - self.recipients = recipients - if recipients_lock is not None: - self.recipients_lock = recipients_lock - if recipients_uri is not None: - self.recipients_uri = recipients_uri - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if shared is not None: - self.shared = shared - if signer_can_sign_on_mobile is not None: - self.signer_can_sign_on_mobile = signer_can_sign_on_mobile - if signing_location is not None: - self.signing_location = signing_location - if status is not None: - self.status = status - if status_changed_date_time is not None: - self.status_changed_date_time = status_changed_date_time - if template_id is not None: - self.template_id = template_id - if templates_uri is not None: - self.templates_uri = templates_uri - if transaction_id is not None: - self.transaction_id = transaction_id - if uri is not None: - self.uri = uri - if use_disclosure is not None: - self.use_disclosure = use_disclosure - if voided_date_time is not None: - self.voided_date_time = voided_date_time - if voided_reason is not None: - self.voided_reason = voided_reason + setattr(self, "_{}".format('allow_markup'), kwargs.get('allow_markup', None)) + setattr(self, "_{}".format('allow_reassign'), kwargs.get('allow_reassign', None)) + setattr(self, "_{}".format('allow_view_history'), kwargs.get('allow_view_history', None)) + setattr(self, "_{}".format('asynchronous'), kwargs.get('asynchronous', None)) + setattr(self, "_{}".format('attachments_uri'), kwargs.get('attachments_uri', None)) + setattr(self, "_{}".format('authoritative_copy'), kwargs.get('authoritative_copy', None)) + setattr(self, "_{}".format('authoritative_copy_default'), kwargs.get('authoritative_copy_default', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None)) + setattr(self, "_{}".format('brand_lock'), kwargs.get('brand_lock', None)) + setattr(self, "_{}".format('certificate_uri'), kwargs.get('certificate_uri', None)) + setattr(self, "_{}".format('completed_date_time'), kwargs.get('completed_date_time', None)) + setattr(self, "_{}".format('copy_recipient_data'), kwargs.get('copy_recipient_data', None)) + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('custom_fields_uri'), kwargs.get('custom_fields_uri', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('deleted_date_time'), kwargs.get('deleted_date_time', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('description'), kwargs.get('description', None)) + setattr(self, "_{}".format('disable_responsive_document'), kwargs.get('disable_responsive_document', None)) + setattr(self, "_{}".format('documents'), kwargs.get('documents', None)) + setattr(self, "_{}".format('documents_combined_uri'), kwargs.get('documents_combined_uri', None)) + setattr(self, "_{}".format('documents_uri'), kwargs.get('documents_uri', None)) + setattr(self, "_{}".format('email_blurb'), kwargs.get('email_blurb', None)) + setattr(self, "_{}".format('email_settings'), kwargs.get('email_settings', None)) + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) + setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) + setattr(self, "_{}".format('folder_name'), kwargs.get('folder_name', None)) + setattr(self, "_{}".format('folder_uri'), kwargs.get('folder_uri', None)) + setattr(self, "_{}".format('initial_sent_date_time'), kwargs.get('initial_sent_date_time', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_signature_provider_envelope'), kwargs.get('is_signature_provider_envelope', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) + setattr(self, "_{}".format('lock_information'), kwargs.get('lock_information', None)) + setattr(self, "_{}".format('message_lock'), kwargs.get('message_lock', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('notification'), kwargs.get('notification', None)) + setattr(self, "_{}".format('notification_uri'), kwargs.get('notification_uri', None)) + setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) + setattr(self, "_{}".format('page_count'), kwargs.get('page_count', None)) + setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('purge_state'), kwargs.get('purge_state', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('recipients_lock'), kwargs.get('recipients_lock', None)) + setattr(self, "_{}".format('recipients_uri'), kwargs.get('recipients_uri', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('signer_can_sign_on_mobile'), kwargs.get('signer_can_sign_on_mobile', None)) + setattr(self, "_{}".format('signing_location'), kwargs.get('signing_location', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('status_changed_date_time'), kwargs.get('status_changed_date_time', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('templates_uri'), kwargs.get('templates_uri', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) + setattr(self, "_{}".format('use_disclosure'), kwargs.get('use_disclosure', None)) + setattr(self, "_{}".format('voided_date_time'), kwargs.get('voided_date_time', None)) + setattr(self, "_{}".format('voided_reason'), kwargs.get('voided_reason', None)) @property def allow_markup(self): @@ -1946,8 +1884,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeTemplateResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeTemplateResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_template_results.py b/docusign_esign/models/envelope_template_results.py index c382f0be..8fd62c80 100644 --- a/docusign_esign/models/envelope_template_results.py +++ b/docusign_esign/models/envelope_template_results.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeTemplateResults(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class EnvelopeTemplateResults(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, envelope_templates=None, folders=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeTemplateResults - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._envelope_templates = None @@ -65,22 +70,14 @@ def __init__(self, end_position=None, envelope_templates=None, folders=None, nex self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if envelope_templates is not None: - self.envelope_templates = envelope_templates - if folders is not None: - self.folders = folders - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('envelope_templates'), kwargs.get('envelope_templates', None)) + setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -306,8 +303,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeTemplateResults): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeTemplateResults): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_transaction_status.py b/docusign_esign/models/envelope_transaction_status.py index 321b0afa..3266fb38 100644 --- a/docusign_esign/models/envelope_transaction_status.py +++ b/docusign_esign/models/envelope_transaction_status.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeTransactionStatus(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class EnvelopeTransactionStatus(object): 'transaction_id': 'transactionId' } - def __init__(self, envelope_id=None, error_details=None, status=None, transaction_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeTransactionStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_id = None self._error_details = None @@ -53,14 +58,10 @@ def __init__(self, envelope_id=None, error_details=None, status=None, transactio self._transaction_id = None self.discriminator = None - if envelope_id is not None: - self.envelope_id = envelope_id - if error_details is not None: - self.error_details = error_details - if status is not None: - self.status = status - if transaction_id is not None: - self.transaction_id = transaction_id + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) @property def envelope_id(self): @@ -192,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeTransactionStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeTransactionStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_update_summary.py b/docusign_esign/models/envelope_update_summary.py index ebeb5f05..e33690bb 100644 --- a/docusign_esign/models/envelope_update_summary.py +++ b/docusign_esign/models/envelope_update_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopeUpdateSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class EnvelopeUpdateSummary(object): 'text_custom_field_update_results': 'textCustomFieldUpdateResults' } - def __init__(self, bulk_envelope_status=None, envelope_id=None, error_details=None, list_custom_field_update_results=None, lock_information=None, recipient_update_results=None, tab_update_results=None, text_custom_field_update_results=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopeUpdateSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bulk_envelope_status = None self._envelope_id = None @@ -65,22 +70,14 @@ def __init__(self, bulk_envelope_status=None, envelope_id=None, error_details=No self._text_custom_field_update_results = None self.discriminator = None - if bulk_envelope_status is not None: - self.bulk_envelope_status = bulk_envelope_status - if envelope_id is not None: - self.envelope_id = envelope_id - if error_details is not None: - self.error_details = error_details - if list_custom_field_update_results is not None: - self.list_custom_field_update_results = list_custom_field_update_results - if lock_information is not None: - self.lock_information = lock_information - if recipient_update_results is not None: - self.recipient_update_results = recipient_update_results - if tab_update_results is not None: - self.tab_update_results = tab_update_results - if text_custom_field_update_results is not None: - self.text_custom_field_update_results = text_custom_field_update_results + setattr(self, "_{}".format('bulk_envelope_status'), kwargs.get('bulk_envelope_status', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('list_custom_field_update_results'), kwargs.get('list_custom_field_update_results', None)) + setattr(self, "_{}".format('lock_information'), kwargs.get('lock_information', None)) + setattr(self, "_{}".format('recipient_update_results'), kwargs.get('recipient_update_results', None)) + setattr(self, "_{}".format('tab_update_results'), kwargs.get('tab_update_results', None)) + setattr(self, "_{}".format('text_custom_field_update_results'), kwargs.get('text_custom_field_update_results', None)) @property def bulk_envelope_status(self): @@ -298,8 +295,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopeUpdateSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopeUpdateSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelopes_information.py b/docusign_esign/models/envelopes_information.py index 58cc84bb..531e90f9 100644 --- a/docusign_esign/models/envelopes_information.py +++ b/docusign_esign/models/envelopes_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EnvelopesInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class EnvelopesInformation(object): 'total_set_size': 'totalSetSize' } - def __init__(self, continuation_token=None, end_position=None, envelopes=None, envelope_transaction_statuses=None, last_queried_date_time=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EnvelopesInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._continuation_token = None self._end_position = None @@ -71,26 +76,16 @@ def __init__(self, continuation_token=None, end_position=None, envelopes=None, e self._total_set_size = None self.discriminator = None - if continuation_token is not None: - self.continuation_token = continuation_token - if end_position is not None: - self.end_position = end_position - if envelopes is not None: - self.envelopes = envelopes - if envelope_transaction_statuses is not None: - self.envelope_transaction_statuses = envelope_transaction_statuses - if last_queried_date_time is not None: - self.last_queried_date_time = last_queried_date_time - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('continuation_token'), kwargs.get('continuation_token', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('envelopes'), kwargs.get('envelopes', None)) + setattr(self, "_{}".format('envelope_transaction_statuses'), kwargs.get('envelope_transaction_statuses', None)) + setattr(self, "_{}".format('last_queried_date_time'), kwargs.get('last_queried_date_time', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def continuation_token(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, EnvelopesInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvelopesInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/error_details.py b/docusign_esign/models/error_details.py index 9ad066b6..820e0eaf 100644 --- a/docusign_esign/models/error_details.py +++ b/docusign_esign/models/error_details.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ErrorDetails(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ErrorDetails(object): 'message': 'message' } - def __init__(self, error_code=None, message=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ErrorDetails - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_code = None self._message = None self.discriminator = None - if error_code is not None: - self.error_code = error_code - if message is not None: - self.message = message + setattr(self, "_{}".format('error_code'), kwargs.get('error_code', None)) + setattr(self, "_{}".format('message'), kwargs.get('message', None)) @property def error_code(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ErrorDetails): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ErrorDetails): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/event_notification.py b/docusign_esign/models/event_notification.py index 56eeec12..9eb968b3 100644 --- a/docusign_esign/models/event_notification.py +++ b/docusign_esign/models/event_notification.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EventNotification(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class EventNotification(object): 'use_soap_interface': 'useSoapInterface' } - def __init__(self, envelope_events=None, include_certificate_of_completion=None, include_certificate_with_soap=None, include_document_fields=None, include_documents=None, include_envelope_void_reason=None, include_hmac=None, include_sender_account_as_custom_field=None, include_time_zone=None, logging_enabled=None, recipient_events=None, require_acknowledgment=None, sign_message_with_x509_cert=None, soap_name_space=None, url=None, use_soap_interface=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EventNotification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_events = None self._include_certificate_of_completion = None @@ -89,38 +94,22 @@ def __init__(self, envelope_events=None, include_certificate_of_completion=None, self._use_soap_interface = None self.discriminator = None - if envelope_events is not None: - self.envelope_events = envelope_events - if include_certificate_of_completion is not None: - self.include_certificate_of_completion = include_certificate_of_completion - if include_certificate_with_soap is not None: - self.include_certificate_with_soap = include_certificate_with_soap - if include_document_fields is not None: - self.include_document_fields = include_document_fields - if include_documents is not None: - self.include_documents = include_documents - if include_envelope_void_reason is not None: - self.include_envelope_void_reason = include_envelope_void_reason - if include_hmac is not None: - self.include_hmac = include_hmac - if include_sender_account_as_custom_field is not None: - self.include_sender_account_as_custom_field = include_sender_account_as_custom_field - if include_time_zone is not None: - self.include_time_zone = include_time_zone - if logging_enabled is not None: - self.logging_enabled = logging_enabled - if recipient_events is not None: - self.recipient_events = recipient_events - if require_acknowledgment is not None: - self.require_acknowledgment = require_acknowledgment - if sign_message_with_x509_cert is not None: - self.sign_message_with_x509_cert = sign_message_with_x509_cert - if soap_name_space is not None: - self.soap_name_space = soap_name_space - if url is not None: - self.url = url - if use_soap_interface is not None: - self.use_soap_interface = use_soap_interface + setattr(self, "_{}".format('envelope_events'), kwargs.get('envelope_events', None)) + setattr(self, "_{}".format('include_certificate_of_completion'), kwargs.get('include_certificate_of_completion', None)) + setattr(self, "_{}".format('include_certificate_with_soap'), kwargs.get('include_certificate_with_soap', None)) + setattr(self, "_{}".format('include_document_fields'), kwargs.get('include_document_fields', None)) + setattr(self, "_{}".format('include_documents'), kwargs.get('include_documents', None)) + setattr(self, "_{}".format('include_envelope_void_reason'), kwargs.get('include_envelope_void_reason', None)) + setattr(self, "_{}".format('include_hmac'), kwargs.get('include_hmac', None)) + setattr(self, "_{}".format('include_sender_account_as_custom_field'), kwargs.get('include_sender_account_as_custom_field', None)) + setattr(self, "_{}".format('include_time_zone'), kwargs.get('include_time_zone', None)) + setattr(self, "_{}".format('logging_enabled'), kwargs.get('logging_enabled', None)) + setattr(self, "_{}".format('recipient_events'), kwargs.get('recipient_events', None)) + setattr(self, "_{}".format('require_acknowledgment'), kwargs.get('require_acknowledgment', None)) + setattr(self, "_{}".format('sign_message_with_x509_cert'), kwargs.get('sign_message_with_x509_cert', None)) + setattr(self, "_{}".format('soap_name_space'), kwargs.get('soap_name_space', None)) + setattr(self, "_{}".format('url'), kwargs.get('url', None)) + setattr(self, "_{}".format('use_soap_interface'), kwargs.get('use_soap_interface', None)) @property def envelope_events(self): @@ -530,8 +519,11 @@ def __eq__(self, other): if not isinstance(other, EventNotification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EventNotification): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/event_result.py b/docusign_esign/models/event_result.py index 4c01ea1f..9605b238 100644 --- a/docusign_esign/models/event_result.py +++ b/docusign_esign/models/event_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class EventResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class EventResult(object): 'vendor_failure_status_code': 'vendorFailureStatusCode' } - def __init__(self, event_timestamp=None, failure_description=None, status=None, vendor_failure_status_code=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """EventResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._event_timestamp = None self._failure_description = None @@ -53,14 +58,10 @@ def __init__(self, event_timestamp=None, failure_description=None, status=None, self._vendor_failure_status_code = None self.discriminator = None - if event_timestamp is not None: - self.event_timestamp = event_timestamp - if failure_description is not None: - self.failure_description = failure_description - if status is not None: - self.status = status - if vendor_failure_status_code is not None: - self.vendor_failure_status_code = vendor_failure_status_code + setattr(self, "_{}".format('event_timestamp'), kwargs.get('event_timestamp', None)) + setattr(self, "_{}".format('failure_description'), kwargs.get('failure_description', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('vendor_failure_status_code'), kwargs.get('vendor_failure_status_code', None)) @property def event_timestamp(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, EventResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EventResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/expirations.py b/docusign_esign/models/expirations.py index c2a8c4e9..64360082 100644 --- a/docusign_esign/models/expirations.py +++ b/docusign_esign/models/expirations.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Expirations(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class Expirations(object): 'expire_warn': 'expireWarn' } - def __init__(self, expire_after=None, expire_enabled=None, expire_warn=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Expirations - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._expire_after = None self._expire_enabled = None self._expire_warn = None self.discriminator = None - if expire_after is not None: - self.expire_after = expire_after - if expire_enabled is not None: - self.expire_enabled = expire_enabled - if expire_warn is not None: - self.expire_warn = expire_warn + setattr(self, "_{}".format('expire_after'), kwargs.get('expire_after', None)) + setattr(self, "_{}".format('expire_enabled'), kwargs.get('expire_enabled', None)) + setattr(self, "_{}".format('expire_warn'), kwargs.get('expire_warn', None)) @property def expire_after(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, Expirations): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Expirations): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/external_doc_service_error_details.py b/docusign_esign/models/external_doc_service_error_details.py index b5750dd3..7d13115c 100644 --- a/docusign_esign/models/external_doc_service_error_details.py +++ b/docusign_esign/models/external_doc_service_error_details.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ExternalDocServiceErrorDetails(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class ExternalDocServiceErrorDetails(object): 'message': 'message' } - def __init__(self, authentication_url=None, error_code=None, message=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ExternalDocServiceErrorDetails - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._authentication_url = None self._error_code = None self._message = None self.discriminator = None - if authentication_url is not None: - self.authentication_url = authentication_url - if error_code is not None: - self.error_code = error_code - if message is not None: - self.message = message + setattr(self, "_{}".format('authentication_url'), kwargs.get('authentication_url', None)) + setattr(self, "_{}".format('error_code'), kwargs.get('error_code', None)) + setattr(self, "_{}".format('message'), kwargs.get('message', None)) @property def authentication_url(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, ExternalDocServiceErrorDetails): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExternalDocServiceErrorDetails): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/external_file.py b/docusign_esign/models/external_file.py index 0977f4d1..3c16d01c 100644 --- a/docusign_esign/models/external_file.py +++ b/docusign_esign/models/external_file.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ExternalFile(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class ExternalFile(object): 'uri': 'uri' } - def __init__(self, _date=None, id=None, img=None, name=None, size=None, supported=None, type=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ExternalFile - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.__date = None self._id = None @@ -65,22 +70,14 @@ def __init__(self, _date=None, id=None, img=None, name=None, size=None, supporte self._uri = None self.discriminator = None - if _date is not None: - self._date = _date - if id is not None: - self.id = id - if img is not None: - self.img = img - if name is not None: - self.name = name - if size is not None: - self.size = size - if supported is not None: - self.supported = supported - if type is not None: - self.type = type - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('_date'), kwargs.get('_date', None)) + setattr(self, "_{}".format('id'), kwargs.get('id', None)) + setattr(self, "_{}".format('img'), kwargs.get('img', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('size'), kwargs.get('size', None)) + setattr(self, "_{}".format('supported'), kwargs.get('supported', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def _date(self): @@ -306,8 +303,11 @@ def __eq__(self, other): if not isinstance(other, ExternalFile): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExternalFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/external_folder.py b/docusign_esign/models/external_folder.py index b859ffd5..9969e15f 100644 --- a/docusign_esign/models/external_folder.py +++ b/docusign_esign/models/external_folder.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ExternalFolder(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class ExternalFolder(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, error_details=None, id=None, items=None, name=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ExternalFolder - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._error_details = None @@ -71,26 +76,16 @@ def __init__(self, end_position=None, error_details=None, id=None, items=None, n self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if error_details is not None: - self.error_details = error_details - if id is not None: - self.id = id - if items is not None: - self.items = items - if name is not None: - self.name = name - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('id'), kwargs.get('id', None)) + setattr(self, "_{}".format('items'), kwargs.get('items', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -360,8 +355,11 @@ def __eq__(self, other): if not isinstance(other, ExternalFolder): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExternalFolder): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/feature_set.py b/docusign_esign/models/feature_set.py index adc550d3..f45b9c92 100644 --- a/docusign_esign/models/feature_set.py +++ b/docusign_esign/models/feature_set.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FeatureSet(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class FeatureSet(object): 'seat_fee': 'seatFee' } - def __init__(self, currency_feature_set_prices=None, envelope_fee=None, feature_set_id=None, fixed_fee=None, is21_cfr_part11=None, is_active=None, is_enabled=None, name=None, seat_fee=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FeatureSet - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._currency_feature_set_prices = None self._envelope_fee = None @@ -68,24 +73,15 @@ def __init__(self, currency_feature_set_prices=None, envelope_fee=None, feature_ self._seat_fee = None self.discriminator = None - if currency_feature_set_prices is not None: - self.currency_feature_set_prices = currency_feature_set_prices - if envelope_fee is not None: - self.envelope_fee = envelope_fee - if feature_set_id is not None: - self.feature_set_id = feature_set_id - if fixed_fee is not None: - self.fixed_fee = fixed_fee - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_active is not None: - self.is_active = is_active - if is_enabled is not None: - self.is_enabled = is_enabled - if name is not None: - self.name = name - if seat_fee is not None: - self.seat_fee = seat_fee + setattr(self, "_{}".format('currency_feature_set_prices'), kwargs.get('currency_feature_set_prices', None)) + setattr(self, "_{}".format('envelope_fee'), kwargs.get('envelope_fee', None)) + setattr(self, "_{}".format('feature_set_id'), kwargs.get('feature_set_id', None)) + setattr(self, "_{}".format('fixed_fee'), kwargs.get('fixed_fee', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_active'), kwargs.get('is_active', None)) + setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('seat_fee'), kwargs.get('seat_fee', None)) @property def currency_feature_set_prices(self): @@ -334,8 +330,11 @@ def __eq__(self, other): if not isinstance(other, FeatureSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FeatureSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/file_type.py b/docusign_esign/models/file_type.py index b69c3bc2..3c465ce5 100644 --- a/docusign_esign/models/file_type.py +++ b/docusign_esign/models/file_type.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FileType(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class FileType(object): 'mime_type': 'mimeType' } - def __init__(self, file_extension=None, mime_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FileType - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._file_extension = None self._mime_type = None self.discriminator = None - if file_extension is not None: - self.file_extension = file_extension - if mime_type is not None: - self.mime_type = mime_type + setattr(self, "_{}".format('file_extension'), kwargs.get('file_extension', None)) + setattr(self, "_{}".format('mime_type'), kwargs.get('mime_type', None)) @property def file_extension(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, FileType): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FileType): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/file_type_list.py b/docusign_esign/models/file_type_list.py index eb99fb6d..37d86540 100644 --- a/docusign_esign/models/file_type_list.py +++ b/docusign_esign/models/file_type_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FileTypeList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class FileTypeList(object): 'file_types': 'fileTypes' } - def __init__(self, file_types=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FileTypeList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._file_types = None self.discriminator = None - if file_types is not None: - self.file_types = file_types + setattr(self, "_{}".format('file_types'), kwargs.get('file_types', None)) @property def file_types(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, FileTypeList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FileTypeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/filter.py b/docusign_esign/models/filter.py index 691f285c..8df92bbc 100644 --- a/docusign_esign/models/filter.py +++ b/docusign_esign/models/filter.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Filter(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,8 +60,11 @@ class Filter(object): 'to_date_time': 'toDateTime' } - def __init__(self, action_required=None, expires=None, folder_ids=None, from_date_time=None, is_template=None, order=None, order_by=None, search_target=None, search_text=None, status=None, to_date_time=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Filter - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._action_required = None self._expires = None @@ -74,28 +79,17 @@ def __init__(self, action_required=None, expires=None, folder_ids=None, from_dat self._to_date_time = None self.discriminator = None - if action_required is not None: - self.action_required = action_required - if expires is not None: - self.expires = expires - if folder_ids is not None: - self.folder_ids = folder_ids - if from_date_time is not None: - self.from_date_time = from_date_time - if is_template is not None: - self.is_template = is_template - if order is not None: - self.order = order - if order_by is not None: - self.order_by = order_by - if search_target is not None: - self.search_target = search_target - if search_text is not None: - self.search_text = search_text - if status is not None: - self.status = status - if to_date_time is not None: - self.to_date_time = to_date_time + setattr(self, "_{}".format('action_required'), kwargs.get('action_required', None)) + setattr(self, "_{}".format('expires'), kwargs.get('expires', None)) + setattr(self, "_{}".format('folder_ids'), kwargs.get('folder_ids', None)) + setattr(self, "_{}".format('from_date_time'), kwargs.get('from_date_time', None)) + setattr(self, "_{}".format('is_template'), kwargs.get('is_template', None)) + setattr(self, "_{}".format('order'), kwargs.get('order', None)) + setattr(self, "_{}".format('order_by'), kwargs.get('order_by', None)) + setattr(self, "_{}".format('search_target'), kwargs.get('search_target', None)) + setattr(self, "_{}".format('search_text'), kwargs.get('search_text', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('to_date_time'), kwargs.get('to_date_time', None)) @property def action_required(self): @@ -390,8 +384,11 @@ def __eq__(self, other): if not isinstance(other, Filter): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Filter): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/first_name.py b/docusign_esign/models/first_name.py index 931f6305..5d417065 100644 --- a/docusign_esign/models/first_name.py +++ b/docusign_esign/models/first_name.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FirstName(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -104,8 +106,11 @@ class FirstName(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FirstName - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -143,74 +148,40 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1030,8 +1001,11 @@ def __eq__(self, other): if not isinstance(other, FirstName): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FirstName): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folder.py b/docusign_esign/models/folder.py index 9234be0a..2321d5a6 100644 --- a/docusign_esign/models/folder.py +++ b/docusign_esign/models/folder.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Folder(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class Folder(object): 'uri': 'uri' } - def __init__(self, error_details=None, filter=None, folder_id=None, folders=None, name=None, owner_email=None, owner_user_id=None, owner_user_name=None, parent_folder_id=None, parent_folder_uri=None, type=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Folder - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._filter = None @@ -77,30 +82,18 @@ def __init__(self, error_details=None, filter=None, folder_id=None, folders=None self._uri = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if filter is not None: - self.filter = filter - if folder_id is not None: - self.folder_id = folder_id - if folders is not None: - self.folders = folders - if name is not None: - self.name = name - if owner_email is not None: - self.owner_email = owner_email - if owner_user_id is not None: - self.owner_user_id = owner_user_id - if owner_user_name is not None: - self.owner_user_name = owner_user_name - if parent_folder_id is not None: - self.parent_folder_id = parent_folder_id - if parent_folder_uri is not None: - self.parent_folder_uri = parent_folder_uri - if type is not None: - self.type = type - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('filter'), kwargs.get('filter', None)) + setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) + setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('owner_email'), kwargs.get('owner_email', None)) + setattr(self, "_{}".format('owner_user_id'), kwargs.get('owner_user_id', None)) + setattr(self, "_{}".format('owner_user_name'), kwargs.get('owner_user_name', None)) + setattr(self, "_{}".format('parent_folder_id'), kwargs.get('parent_folder_id', None)) + setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def error_details(self): @@ -414,8 +407,11 @@ def __eq__(self, other): if not isinstance(other, Folder): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Folder): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folder_item.py b/docusign_esign/models/folder_item.py index b46e6375..1d60a39d 100644 --- a/docusign_esign/models/folder_item.py +++ b/docusign_esign/models/folder_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FolderItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -78,8 +80,11 @@ class FolderItem(object): 'uri': 'uri' } - def __init__(self, completed_date_time=None, created_date_time=None, custom_fields=None, description=None, envelope_id=None, envelope_uri=None, is21_cfr_part11=None, is_signature_provider_envelope=None, last_modified=None, name=None, owner_name=None, page_count=None, password=None, sender_email=None, sender_name=None, sent_date_time=None, shared=None, status=None, subject=None, template_id=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FolderItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._completed_date_time = None self._created_date_time = None @@ -104,48 +109,27 @@ def __init__(self, completed_date_time=None, created_date_time=None, custom_fiel self._uri = None self.discriminator = None - if completed_date_time is not None: - self.completed_date_time = completed_date_time - if created_date_time is not None: - self.created_date_time = created_date_time - if custom_fields is not None: - self.custom_fields = custom_fields - if description is not None: - self.description = description - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_signature_provider_envelope is not None: - self.is_signature_provider_envelope = is_signature_provider_envelope - if last_modified is not None: - self.last_modified = last_modified - if name is not None: - self.name = name - if owner_name is not None: - self.owner_name = owner_name - if page_count is not None: - self.page_count = page_count - if password is not None: - self.password = password - if sender_email is not None: - self.sender_email = sender_email - if sender_name is not None: - self.sender_name = sender_name - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if subject is not None: - self.subject = subject - if template_id is not None: - self.template_id = template_id - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('completed_date_time'), kwargs.get('completed_date_time', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('description'), kwargs.get('description', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_signature_provider_envelope'), kwargs.get('is_signature_provider_envelope', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('owner_name'), kwargs.get('owner_name', None)) + setattr(self, "_{}".format('page_count'), kwargs.get('page_count', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('sender_email'), kwargs.get('sender_email', None)) + setattr(self, "_{}".format('sender_name'), kwargs.get('sender_name', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('subject'), kwargs.get('subject', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def completed_date_time(self): @@ -670,8 +654,11 @@ def __eq__(self, other): if not isinstance(other, FolderItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FolderItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folder_item_response.py b/docusign_esign/models/folder_item_response.py index 4b415ef9..6173319b 100644 --- a/docusign_esign/models/folder_item_response.py +++ b/docusign_esign/models/folder_item_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FolderItemResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class FolderItemResponse(object): 'total_rows': 'totalRows' } - def __init__(self, end_position=None, folder_items=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_rows=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FolderItemResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._folder_items = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, folder_items=None, next_uri=None, previous self._total_rows = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if folder_items is not None: - self.folder_items = folder_items - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_rows is not None: - self.total_rows = total_rows + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('folder_items'), kwargs.get('folder_items', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_rows'), kwargs.get('total_rows', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, FolderItemResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FolderItemResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folder_item_v2.py b/docusign_esign/models/folder_item_v2.py index c2a1b4bd..4e6b92e6 100644 --- a/docusign_esign/models/folder_item_v2.py +++ b/docusign_esign/models/folder_item_v2.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FolderItemV2(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -76,8 +78,11 @@ class FolderItemV2(object): 'subject': 'subject' } - def __init__(self, completed_date_time=None, created_date_time=None, envelope_id=None, envelope_uri=None, expire_date_time=None, folder_id=None, folder_uri=None, is21_cfr_part11=None, is_signature_provider_envelope=None, last_modified_date_time=None, owner_name=None, recipients=None, recipients_uri=None, sender_company=None, sender_email=None, sender_name=None, sender_user_id=None, sent_date_time=None, status=None, subject=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FolderItemV2 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._completed_date_time = None self._created_date_time = None @@ -101,46 +106,26 @@ def __init__(self, completed_date_time=None, created_date_time=None, envelope_id self._subject = None self.discriminator = None - if completed_date_time is not None: - self.completed_date_time = completed_date_time - if created_date_time is not None: - self.created_date_time = created_date_time - if envelope_id is not None: - self.envelope_id = envelope_id - if envelope_uri is not None: - self.envelope_uri = envelope_uri - if expire_date_time is not None: - self.expire_date_time = expire_date_time - if folder_id is not None: - self.folder_id = folder_id - if folder_uri is not None: - self.folder_uri = folder_uri - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if is_signature_provider_envelope is not None: - self.is_signature_provider_envelope = is_signature_provider_envelope - if last_modified_date_time is not None: - self.last_modified_date_time = last_modified_date_time - if owner_name is not None: - self.owner_name = owner_name - if recipients is not None: - self.recipients = recipients - if recipients_uri is not None: - self.recipients_uri = recipients_uri - if sender_company is not None: - self.sender_company = sender_company - if sender_email is not None: - self.sender_email = sender_email - if sender_name is not None: - self.sender_name = sender_name - if sender_user_id is not None: - self.sender_user_id = sender_user_id - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if status is not None: - self.status = status - if subject is not None: - self.subject = subject + setattr(self, "_{}".format('completed_date_time'), kwargs.get('completed_date_time', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('envelope_uri'), kwargs.get('envelope_uri', None)) + setattr(self, "_{}".format('expire_date_time'), kwargs.get('expire_date_time', None)) + setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) + setattr(self, "_{}".format('folder_uri'), kwargs.get('folder_uri', None)) + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('is_signature_provider_envelope'), kwargs.get('is_signature_provider_envelope', None)) + setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) + setattr(self, "_{}".format('owner_name'), kwargs.get('owner_name', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('recipients_uri'), kwargs.get('recipients_uri', None)) + setattr(self, "_{}".format('sender_company'), kwargs.get('sender_company', None)) + setattr(self, "_{}".format('sender_email'), kwargs.get('sender_email', None)) + setattr(self, "_{}".format('sender_name'), kwargs.get('sender_name', None)) + setattr(self, "_{}".format('sender_user_id'), kwargs.get('sender_user_id', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('subject'), kwargs.get('subject', None)) @property def completed_date_time(self): @@ -640,8 +625,11 @@ def __eq__(self, other): if not isinstance(other, FolderItemV2): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FolderItemV2): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folder_items_response.py b/docusign_esign/models/folder_items_response.py index 221cd834..e07250f6 100644 --- a/docusign_esign/models/folder_items_response.py +++ b/docusign_esign/models/folder_items_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FolderItemsResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class FolderItemsResponse(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, folder_items=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FolderItemsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._folder_items = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, folder_items=None, next_uri=None, previous self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if folder_items is not None: - self.folder_items = folder_items - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('folder_items'), kwargs.get('folder_items', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, FolderItemsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FolderItemsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folders_request.py b/docusign_esign/models/folders_request.py index b5829a91..877abc96 100644 --- a/docusign_esign/models/folders_request.py +++ b/docusign_esign/models/folders_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FoldersRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class FoldersRequest(object): 'from_folder_id': 'fromFolderId' } - def __init__(self, envelope_ids=None, from_folder_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FoldersRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_ids = None self._from_folder_id = None self.discriminator = None - if envelope_ids is not None: - self.envelope_ids = envelope_ids - if from_folder_id is not None: - self.from_folder_id = from_folder_id + setattr(self, "_{}".format('envelope_ids'), kwargs.get('envelope_ids', None)) + setattr(self, "_{}".format('from_folder_id'), kwargs.get('from_folder_id', None)) @property def envelope_ids(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, FoldersRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FoldersRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/folders_response.py b/docusign_esign/models/folders_response.py index 4c36c4af..3872a408 100644 --- a/docusign_esign/models/folders_response.py +++ b/docusign_esign/models/folders_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FoldersResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class FoldersResponse(object): 'folders': 'folders' } - def __init__(self, folders=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FoldersResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._folders = None self.discriminator = None - if folders is not None: - self.folders = folders + setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) @property def folders(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, FoldersResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FoldersResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/forgotten_password_information.py b/docusign_esign/models/forgotten_password_information.py index d9523681..e99f3622 100644 --- a/docusign_esign/models/forgotten_password_information.py +++ b/docusign_esign/models/forgotten_password_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ForgottenPasswordInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class ForgottenPasswordInformation(object): 'forgotten_password_question4': 'forgottenPasswordQuestion4' } - def __init__(self, forgotten_password_answer1=None, forgotten_password_answer2=None, forgotten_password_answer3=None, forgotten_password_answer4=None, forgotten_password_question1=None, forgotten_password_question2=None, forgotten_password_question3=None, forgotten_password_question4=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ForgottenPasswordInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._forgotten_password_answer1 = None self._forgotten_password_answer2 = None @@ -65,22 +70,14 @@ def __init__(self, forgotten_password_answer1=None, forgotten_password_answer2=N self._forgotten_password_question4 = None self.discriminator = None - if forgotten_password_answer1 is not None: - self.forgotten_password_answer1 = forgotten_password_answer1 - if forgotten_password_answer2 is not None: - self.forgotten_password_answer2 = forgotten_password_answer2 - if forgotten_password_answer3 is not None: - self.forgotten_password_answer3 = forgotten_password_answer3 - if forgotten_password_answer4 is not None: - self.forgotten_password_answer4 = forgotten_password_answer4 - if forgotten_password_question1 is not None: - self.forgotten_password_question1 = forgotten_password_question1 - if forgotten_password_question2 is not None: - self.forgotten_password_question2 = forgotten_password_question2 - if forgotten_password_question3 is not None: - self.forgotten_password_question3 = forgotten_password_question3 - if forgotten_password_question4 is not None: - self.forgotten_password_question4 = forgotten_password_question4 + setattr(self, "_{}".format('forgotten_password_answer1'), kwargs.get('forgotten_password_answer1', None)) + setattr(self, "_{}".format('forgotten_password_answer2'), kwargs.get('forgotten_password_answer2', None)) + setattr(self, "_{}".format('forgotten_password_answer3'), kwargs.get('forgotten_password_answer3', None)) + setattr(self, "_{}".format('forgotten_password_answer4'), kwargs.get('forgotten_password_answer4', None)) + setattr(self, "_{}".format('forgotten_password_question1'), kwargs.get('forgotten_password_question1', None)) + setattr(self, "_{}".format('forgotten_password_question2'), kwargs.get('forgotten_password_question2', None)) + setattr(self, "_{}".format('forgotten_password_question3'), kwargs.get('forgotten_password_question3', None)) + setattr(self, "_{}".format('forgotten_password_question4'), kwargs.get('forgotten_password_question4', None)) @property def forgotten_password_answer1(self): @@ -306,8 +303,11 @@ def __eq__(self, other): if not isinstance(other, ForgottenPasswordInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ForgottenPasswordInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/formula_tab.py b/docusign_esign/models/formula_tab.py index a80281bf..0f7adffb 100644 --- a/docusign_esign/models/formula_tab.py +++ b/docusign_esign/models/formula_tab.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FormulaTab(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -140,8 +142,11 @@ class FormulaTab(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, formula=None, hidden=None, is_payment_amount=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, payment_details=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, round_decimal_places=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FormulaTab - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -197,110 +202,58 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if formula is not None: - self.formula = formula - if hidden is not None: - self.hidden = hidden - if is_payment_amount is not None: - self.is_payment_amount = is_payment_amount - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if payment_details is not None: - self.payment_details = payment_details - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if round_decimal_places is not None: - self.round_decimal_places = round_decimal_places - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('formula'), kwargs.get('formula', None)) + setattr(self, "_{}".format('hidden'), kwargs.get('hidden', None)) + setattr(self, "_{}".format('is_payment_amount'), kwargs.get('is_payment_amount', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('payment_details'), kwargs.get('payment_details', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('round_decimal_places'), kwargs.get('round_decimal_places', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1532,8 +1485,11 @@ def __eq__(self, other): if not isinstance(other, FormulaTab): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FormulaTab): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/full_name.py b/docusign_esign/models/full_name.py index fe012612..534ed958 100644 --- a/docusign_esign/models/full_name.py +++ b/docusign_esign/models/full_name.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class FullName(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -104,8 +106,11 @@ class FullName(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """FullName - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -143,74 +148,40 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1030,8 +1001,11 @@ def __eq__(self, other): if not isinstance(other, FullName): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, FullName): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/group.py b/docusign_esign/models/group.py index 072aa8bf..75b1e584 100644 --- a/docusign_esign/models/group.py +++ b/docusign_esign/models/group.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Group(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class Group(object): 'users': 'users' } - def __init__(self, error_details=None, group_id=None, group_name=None, group_type=None, permission_profile_id=None, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Group - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._group_id = None @@ -59,18 +64,12 @@ def __init__(self, error_details=None, group_id=None, group_name=None, group_typ self._users = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if group_id is not None: - self.group_id = group_id - if group_name is not None: - self.group_name = group_name - if group_type is not None: - self.group_type = group_type - if permission_profile_id is not None: - self.permission_profile_id = permission_profile_id - if users is not None: - self.users = users + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('group_id'), kwargs.get('group_id', None)) + setattr(self, "_{}".format('group_name'), kwargs.get('group_name', None)) + setattr(self, "_{}".format('group_type'), kwargs.get('group_type', None)) + setattr(self, "_{}".format('permission_profile_id'), kwargs.get('permission_profile_id', None)) + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def error_details(self): @@ -248,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, Group): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Group): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/group_brands.py b/docusign_esign/models/group_brands.py index e83d125c..18fd1468 100644 --- a/docusign_esign/models/group_brands.py +++ b/docusign_esign/models/group_brands.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class GroupBrands(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class GroupBrands(object): 'brand_options': 'brandOptions' } - def __init__(self, recipient_brand_id_default=None, sender_brand_id_default=None, brand_options=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """GroupBrands - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._recipient_brand_id_default = None self._sender_brand_id_default = None self._brand_options = None self.discriminator = None - if recipient_brand_id_default is not None: - self.recipient_brand_id_default = recipient_brand_id_default - if sender_brand_id_default is not None: - self.sender_brand_id_default = sender_brand_id_default - if brand_options is not None: - self.brand_options = brand_options + setattr(self, "_{}".format('recipient_brand_id_default'), kwargs.get('recipient_brand_id_default', None)) + setattr(self, "_{}".format('sender_brand_id_default'), kwargs.get('sender_brand_id_default', None)) + setattr(self, "_{}".format('brand_options'), kwargs.get('brand_options', None)) @property def recipient_brand_id_default(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, GroupBrands): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, GroupBrands): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/group_information.py b/docusign_esign/models/group_information.py index bca3058a..5ae187b8 100644 --- a/docusign_esign/models/group_information.py +++ b/docusign_esign/models/group_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class GroupInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class GroupInformation(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, groups=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """GroupInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._groups = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, groups=None, next_uri=None, previous_uri=N self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if groups is not None: - self.groups = groups - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('groups'), kwargs.get('groups', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, GroupInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, GroupInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/id_check_information_input.py b/docusign_esign/models/id_check_information_input.py index 5ad96bbc..41163927 100644 --- a/docusign_esign/models/id_check_information_input.py +++ b/docusign_esign/models/id_check_information_input.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class IdCheckInformationInput(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class IdCheckInformationInput(object): 'ssn9_information_input': 'ssn9InformationInput' } - def __init__(self, address_information_input=None, dob_information_input=None, ssn4_information_input=None, ssn9_information_input=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """IdCheckInformationInput - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address_information_input = None self._dob_information_input = None @@ -53,14 +58,10 @@ def __init__(self, address_information_input=None, dob_information_input=None, s self._ssn9_information_input = None self.discriminator = None - if address_information_input is not None: - self.address_information_input = address_information_input - if dob_information_input is not None: - self.dob_information_input = dob_information_input - if ssn4_information_input is not None: - self.ssn4_information_input = ssn4_information_input - if ssn9_information_input is not None: - self.ssn9_information_input = ssn9_information_input + setattr(self, "_{}".format('address_information_input'), kwargs.get('address_information_input', None)) + setattr(self, "_{}".format('dob_information_input'), kwargs.get('dob_information_input', None)) + setattr(self, "_{}".format('ssn4_information_input'), kwargs.get('ssn4_information_input', None)) + setattr(self, "_{}".format('ssn9_information_input'), kwargs.get('ssn9_information_input', None)) @property def address_information_input(self): @@ -186,8 +187,11 @@ def __eq__(self, other): if not isinstance(other, IdCheckInformationInput): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IdCheckInformationInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/in_person_signer.py b/docusign_esign/models/in_person_signer.py index e3df1a83..f48b5f7a 100644 --- a/docusign_esign/models/in_person_signer.py +++ b/docusign_esign/models/in_person_signer.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class InPersonSigner(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -156,8 +158,11 @@ class InPersonSigner(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, auto_navigation=None, can_sign_offline=None, client_user_id=None, creation_reason=None, custom_fields=None, declined_date_time=None, declined_reason=None, default_recipient=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, host_email=None, host_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, in_person_signing_type=None, name=None, notary_host=None, note=None, offline_attributes=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, recipient_signature_providers=None, recipient_supplies_tabs=None, require_id_lookup=None, require_signer_certificate=None, require_sign_on_paper=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signature_info=None, signed_date_time=None, signer_email=None, signer_name=None, sign_in_each_location=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, tabs=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """InPersonSigner - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -221,126 +226,66 @@ def __init__(self, access_code=None, add_access_code_to_email=None, auto_navigat self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if can_sign_offline is not None: - self.can_sign_offline = can_sign_offline - if client_user_id is not None: - self.client_user_id = client_user_id - if creation_reason is not None: - self.creation_reason = creation_reason - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if default_recipient is not None: - self.default_recipient = default_recipient - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if host_email is not None: - self.host_email = host_email - if host_name is not None: - self.host_name = host_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if in_person_signing_type is not None: - self.in_person_signing_type = in_person_signing_type - if name is not None: - self.name = name - if notary_host is not None: - self.notary_host = notary_host - if note is not None: - self.note = note - if offline_attributes is not None: - self.offline_attributes = offline_attributes - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if recipient_signature_providers is not None: - self.recipient_signature_providers = recipient_signature_providers - if recipient_supplies_tabs is not None: - self.recipient_supplies_tabs = recipient_supplies_tabs - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if require_signer_certificate is not None: - self.require_signer_certificate = require_signer_certificate - if require_sign_on_paper is not None: - self.require_sign_on_paper = require_sign_on_paper - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signature_info is not None: - self.signature_info = signature_info - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if signer_email is not None: - self.signer_email = signer_email - if signer_name is not None: - self.signer_name = signer_name - if sign_in_each_location is not None: - self.sign_in_each_location = sign_in_each_location - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if tabs is not None: - self.tabs = tabs - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('can_sign_offline'), kwargs.get('can_sign_offline', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('creation_reason'), kwargs.get('creation_reason', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('default_recipient'), kwargs.get('default_recipient', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('host_email'), kwargs.get('host_email', None)) + setattr(self, "_{}".format('host_name'), kwargs.get('host_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('in_person_signing_type'), kwargs.get('in_person_signing_type', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('notary_host'), kwargs.get('notary_host', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('offline_attributes'), kwargs.get('offline_attributes', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('recipient_signature_providers'), kwargs.get('recipient_signature_providers', None)) + setattr(self, "_{}".format('recipient_supplies_tabs'), kwargs.get('recipient_supplies_tabs', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('require_signer_certificate'), kwargs.get('require_signer_certificate', None)) + setattr(self, "_{}".format('require_sign_on_paper'), kwargs.get('require_sign_on_paper', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signature_info'), kwargs.get('signature_info', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('signer_email'), kwargs.get('signer_email', None)) + setattr(self, "_{}".format('signer_name'), kwargs.get('signer_name', None)) + setattr(self, "_{}".format('sign_in_each_location'), kwargs.get('sign_in_each_location', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1738,8 +1683,11 @@ def __eq__(self, other): if not isinstance(other, InPersonSigner): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, InPersonSigner): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/initial_here.py b/docusign_esign/models/initial_here.py index 56697f07..aab1e8fb 100644 --- a/docusign_esign/models/initial_here.py +++ b/docusign_esign/models/initial_here.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class InitialHere(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -94,8 +96,11 @@ class InitialHere(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, merge_field=None, name=None, optional=None, page_number=None, recipient_id=None, scale_value=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """InitialHere - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -128,64 +133,35 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if optional is not None: - self.optional = optional - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if scale_value is not None: - self.scale_value = scale_value - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('optional'), kwargs.get('optional', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('scale_value'), kwargs.get('scale_value', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -890,8 +866,11 @@ def __eq__(self, other): if not isinstance(other, InitialHere): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, InitialHere): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/inline_template.py b/docusign_esign/models/inline_template.py index e2ad9334..b69bb50e 100644 --- a/docusign_esign/models/inline_template.py +++ b/docusign_esign/models/inline_template.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class InlineTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class InlineTemplate(object): 'sequence': 'sequence' } - def __init__(self, custom_fields=None, documents=None, envelope=None, recipients=None, sequence=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """InlineTemplate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._custom_fields = None self._documents = None @@ -56,16 +61,11 @@ def __init__(self, custom_fields=None, documents=None, envelope=None, recipients self._sequence = None self.discriminator = None - if custom_fields is not None: - self.custom_fields = custom_fields - if documents is not None: - self.documents = documents - if envelope is not None: - self.envelope = envelope - if recipients is not None: - self.recipients = recipients - if sequence is not None: - self.sequence = sequence + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('documents'), kwargs.get('documents', None)) + setattr(self, "_{}".format('envelope'), kwargs.get('envelope', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) @property def custom_fields(self): @@ -216,8 +216,11 @@ def __eq__(self, other): if not isinstance(other, InlineTemplate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, InlineTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/integrated_user_info_list.py b/docusign_esign/models/integrated_user_info_list.py index 734cff04..bd9b681e 100644 --- a/docusign_esign/models/integrated_user_info_list.py +++ b/docusign_esign/models/integrated_user_info_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class IntegratedUserInfoList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class IntegratedUserInfoList(object): 'users': 'users' } - def __init__(self, all_users_selected=None, end_position=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """IntegratedUserInfoList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._all_users_selected = None self._end_position = None @@ -65,22 +70,14 @@ def __init__(self, all_users_selected=None, end_position=None, next_uri=None, pr self._users = None self.discriminator = None - if all_users_selected is not None: - self.all_users_selected = all_users_selected - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size - if users is not None: - self.users = users + setattr(self, "_{}".format('all_users_selected'), kwargs.get('all_users_selected', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def all_users_selected(self): @@ -306,8 +303,11 @@ def __eq__(self, other): if not isinstance(other, IntegratedUserInfoList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, IntegratedUserInfoList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/intermediary.py b/docusign_esign/models/intermediary.py index da80801b..cab02740 100644 --- a/docusign_esign/models/intermediary.py +++ b/docusign_esign/models/intermediary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Intermediary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -128,8 +130,11 @@ class Intermediary(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, name=None, note=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Intermediary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -179,98 +184,52 @@ def __init__(self, access_code=None, add_access_code_to_email=None, client_user_ self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1354,8 +1313,11 @@ def __eq__(self, other): if not isinstance(other, Intermediary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Intermediary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/jurisdiction.py b/docusign_esign/models/jurisdiction.py index 698b93c6..dc806c1e 100644 --- a/docusign_esign/models/jurisdiction.py +++ b/docusign_esign/models/jurisdiction.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Jurisdiction(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class Jurisdiction(object): 'state_name_in_seal': 'stateNameInSeal' } - def __init__(self, allow_system_created_seal=None, allow_user_uploaded_seal=None, commission_id_in_seal=None, county=None, county_in_seal=None, enabled=None, jurisdiction_id=None, name=None, notary_public_in_seal=None, state_name_in_seal=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Jurisdiction - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_system_created_seal = None self._allow_user_uploaded_seal = None @@ -71,26 +76,16 @@ def __init__(self, allow_system_created_seal=None, allow_user_uploaded_seal=None self._state_name_in_seal = None self.discriminator = None - if allow_system_created_seal is not None: - self.allow_system_created_seal = allow_system_created_seal - if allow_user_uploaded_seal is not None: - self.allow_user_uploaded_seal = allow_user_uploaded_seal - if commission_id_in_seal is not None: - self.commission_id_in_seal = commission_id_in_seal - if county is not None: - self.county = county - if county_in_seal is not None: - self.county_in_seal = county_in_seal - if enabled is not None: - self.enabled = enabled - if jurisdiction_id is not None: - self.jurisdiction_id = jurisdiction_id - if name is not None: - self.name = name - if notary_public_in_seal is not None: - self.notary_public_in_seal = notary_public_in_seal - if state_name_in_seal is not None: - self.state_name_in_seal = state_name_in_seal + setattr(self, "_{}".format('allow_system_created_seal'), kwargs.get('allow_system_created_seal', None)) + setattr(self, "_{}".format('allow_user_uploaded_seal'), kwargs.get('allow_user_uploaded_seal', None)) + setattr(self, "_{}".format('commission_id_in_seal'), kwargs.get('commission_id_in_seal', None)) + setattr(self, "_{}".format('county'), kwargs.get('county', None)) + setattr(self, "_{}".format('county_in_seal'), kwargs.get('county_in_seal', None)) + setattr(self, "_{}".format('enabled'), kwargs.get('enabled', None)) + setattr(self, "_{}".format('jurisdiction_id'), kwargs.get('jurisdiction_id', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('notary_public_in_seal'), kwargs.get('notary_public_in_seal', None)) + setattr(self, "_{}".format('state_name_in_seal'), kwargs.get('state_name_in_seal', None)) @property def allow_system_created_seal(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, Jurisdiction): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Jurisdiction): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/last_name.py b/docusign_esign/models/last_name.py index b5c14208..b960a779 100644 --- a/docusign_esign/models/last_name.py +++ b/docusign_esign/models/last_name.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class LastName(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -104,8 +106,11 @@ class LastName(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """LastName - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -143,74 +148,40 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1030,8 +1001,11 @@ def __eq__(self, other): if not isinstance(other, LastName): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, LastName): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/list.py b/docusign_esign/models/list.py index f15f53c3..711ee099 100644 --- a/docusign_esign/models/list.py +++ b/docusign_esign/models/list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class List(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -118,8 +120,11 @@ class List(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, list_items=None, locked=None, merge_field=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """List - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -164,88 +169,47 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if list_items is not None: - self.list_items = list_items - if locked is not None: - self.locked = locked - if merge_field is not None: - self.merge_field = merge_field - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('list_items'), kwargs.get('list_items', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1226,8 +1190,11 @@ def __eq__(self, other): if not isinstance(other, List): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, List): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/list_custom_field.py b/docusign_esign/models/list_custom_field.py index 0568da3b..7886b010 100644 --- a/docusign_esign/models/list_custom_field.py +++ b/docusign_esign/models/list_custom_field.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ListCustomField(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class ListCustomField(object): 'value': 'value' } - def __init__(self, configuration_type=None, error_details=None, field_id=None, list_items=None, name=None, required=None, show=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ListCustomField - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._configuration_type = None self._error_details = None @@ -65,22 +70,14 @@ def __init__(self, configuration_type=None, error_details=None, field_id=None, l self._value = None self.discriminator = None - if configuration_type is not None: - self.configuration_type = configuration_type - if error_details is not None: - self.error_details = error_details - if field_id is not None: - self.field_id = field_id - if list_items is not None: - self.list_items = list_items - if name is not None: - self.name = name - if required is not None: - self.required = required - if show is not None: - self.show = show - if value is not None: - self.value = value + setattr(self, "_{}".format('configuration_type'), kwargs.get('configuration_type', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('field_id'), kwargs.get('field_id', None)) + setattr(self, "_{}".format('list_items'), kwargs.get('list_items', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('show'), kwargs.get('show', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def configuration_type(self): @@ -304,8 +301,11 @@ def __eq__(self, other): if not isinstance(other, ListCustomField): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ListCustomField): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/list_item.py b/docusign_esign/models/list_item.py index 8e67d5f0..eb909d1b 100644 --- a/docusign_esign/models/list_item.py +++ b/docusign_esign/models/list_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ListItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class ListItem(object): 'value': 'value' } - def __init__(self, selected=None, text=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ListItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._selected = None self._text = None self._value = None self.discriminator = None - if selected is not None: - self.selected = selected - if text is not None: - self.text = text - if value is not None: - self.value = value + setattr(self, "_{}".format('selected'), kwargs.get('selected', None)) + setattr(self, "_{}".format('text'), kwargs.get('text', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def selected(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, ListItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ListItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/lock_information.py b/docusign_esign/models/lock_information.py index 26fbddd5..1ce715de 100644 --- a/docusign_esign/models/lock_information.py +++ b/docusign_esign/models/lock_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class LockInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class LockInformation(object): 'use_scratch_pad': 'useScratchPad' } - def __init__(self, error_details=None, lock_duration_in_seconds=None, locked_by_app=None, locked_by_user=None, locked_until_date_time=None, lock_token=None, lock_type=None, use_scratch_pad=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """LockInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._lock_duration_in_seconds = None @@ -65,22 +70,14 @@ def __init__(self, error_details=None, lock_duration_in_seconds=None, locked_by_ self._use_scratch_pad = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if lock_duration_in_seconds is not None: - self.lock_duration_in_seconds = lock_duration_in_seconds - if locked_by_app is not None: - self.locked_by_app = locked_by_app - if locked_by_user is not None: - self.locked_by_user = locked_by_user - if locked_until_date_time is not None: - self.locked_until_date_time = locked_until_date_time - if lock_token is not None: - self.lock_token = lock_token - if lock_type is not None: - self.lock_type = lock_type - if use_scratch_pad is not None: - self.use_scratch_pad = use_scratch_pad + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('lock_duration_in_seconds'), kwargs.get('lock_duration_in_seconds', None)) + setattr(self, "_{}".format('locked_by_app'), kwargs.get('locked_by_app', None)) + setattr(self, "_{}".format('locked_by_user'), kwargs.get('locked_by_user', None)) + setattr(self, "_{}".format('locked_until_date_time'), kwargs.get('locked_until_date_time', None)) + setattr(self, "_{}".format('lock_token'), kwargs.get('lock_token', None)) + setattr(self, "_{}".format('lock_type'), kwargs.get('lock_type', None)) + setattr(self, "_{}".format('use_scratch_pad'), kwargs.get('use_scratch_pad', None)) @property def error_details(self): @@ -302,8 +299,11 @@ def __eq__(self, other): if not isinstance(other, LockInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, LockInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/lock_request.py b/docusign_esign/models/lock_request.py index 8e24dfdf..51d2f290 100644 --- a/docusign_esign/models/lock_request.py +++ b/docusign_esign/models/lock_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class LockRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class LockRequest(object): 'use_scratch_pad': 'useScratchPad' } - def __init__(self, lock_duration_in_seconds=None, locked_by_app=None, lock_type=None, template_password=None, use_scratch_pad=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """LockRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._lock_duration_in_seconds = None self._locked_by_app = None @@ -56,16 +61,11 @@ def __init__(self, lock_duration_in_seconds=None, locked_by_app=None, lock_type= self._use_scratch_pad = None self.discriminator = None - if lock_duration_in_seconds is not None: - self.lock_duration_in_seconds = lock_duration_in_seconds - if locked_by_app is not None: - self.locked_by_app = locked_by_app - if lock_type is not None: - self.lock_type = lock_type - if template_password is not None: - self.template_password = template_password - if use_scratch_pad is not None: - self.use_scratch_pad = use_scratch_pad + setattr(self, "_{}".format('lock_duration_in_seconds'), kwargs.get('lock_duration_in_seconds', None)) + setattr(self, "_{}".format('locked_by_app'), kwargs.get('locked_by_app', None)) + setattr(self, "_{}".format('lock_type'), kwargs.get('lock_type', None)) + setattr(self, "_{}".format('template_password'), kwargs.get('template_password', None)) + setattr(self, "_{}".format('use_scratch_pad'), kwargs.get('use_scratch_pad', None)) @property def lock_duration_in_seconds(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, LockRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, LockRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/login_account.py b/docusign_esign/models/login_account.py index a86cdbb1..dafe0735 100644 --- a/docusign_esign/models/login_account.py +++ b/docusign_esign/models/login_account.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class LoginAccount(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,8 +60,11 @@ class LoginAccount(object): 'user_name': 'userName' } - def __init__(self, account_id=None, account_id_guid=None, base_url=None, email=None, is_default=None, login_account_settings=None, login_user_settings=None, name=None, site_description=None, user_id=None, user_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """LoginAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_id = None self._account_id_guid = None @@ -74,28 +79,17 @@ def __init__(self, account_id=None, account_id_guid=None, base_url=None, email=N self._user_name = None self.discriminator = None - if account_id is not None: - self.account_id = account_id - if account_id_guid is not None: - self.account_id_guid = account_id_guid - if base_url is not None: - self.base_url = base_url - if email is not None: - self.email = email - if is_default is not None: - self.is_default = is_default - if login_account_settings is not None: - self.login_account_settings = login_account_settings - if login_user_settings is not None: - self.login_user_settings = login_user_settings - if name is not None: - self.name = name - if site_description is not None: - self.site_description = site_description - if user_id is not None: - self.user_id = user_id - if user_name is not None: - self.user_name = user_name + setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) + setattr(self, "_{}".format('account_id_guid'), kwargs.get('account_id_guid', None)) + setattr(self, "_{}".format('base_url'), kwargs.get('base_url', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('is_default'), kwargs.get('is_default', None)) + setattr(self, "_{}".format('login_account_settings'), kwargs.get('login_account_settings', None)) + setattr(self, "_{}".format('login_user_settings'), kwargs.get('login_user_settings', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('site_description'), kwargs.get('site_description', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) @property def account_id(self): @@ -390,8 +384,11 @@ def __eq__(self, other): if not isinstance(other, LoginAccount): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, LoginAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/login_information.py b/docusign_esign/models/login_information.py index edd8e935..5ed4974e 100644 --- a/docusign_esign/models/login_information.py +++ b/docusign_esign/models/login_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class LoginInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class LoginInformation(object): 'login_accounts': 'loginAccounts' } - def __init__(self, api_password=None, login_accounts=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """LoginInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._api_password = None self._login_accounts = None self.discriminator = None - if api_password is not None: - self.api_password = api_password - if login_accounts is not None: - self.login_accounts = login_accounts + setattr(self, "_{}".format('api_password'), kwargs.get('api_password', None)) + setattr(self, "_{}".format('login_accounts'), kwargs.get('login_accounts', None)) @property def api_password(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, LoginInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, LoginInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/match_box.py b/docusign_esign/models/match_box.py index 9b3a904a..54b1fe84 100644 --- a/docusign_esign/models/match_box.py +++ b/docusign_esign/models/match_box.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class MatchBox(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class MatchBox(object): 'y_position': 'yPosition' } - def __init__(self, height=None, page_number=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """MatchBox - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._height = None self._page_number = None @@ -56,16 +61,11 @@ def __init__(self, height=None, page_number=None, width=None, x_position=None, y self._y_position = None self.discriminator = None - if height is not None: - self.height = height - if page_number is not None: - self.page_number = page_number - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def height(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, MatchBox): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MatchBox): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/member_group_shared_item.py b/docusign_esign/models/member_group_shared_item.py index 7e6986c7..24781e5f 100644 --- a/docusign_esign/models/member_group_shared_item.py +++ b/docusign_esign/models/member_group_shared_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class MemberGroupSharedItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class MemberGroupSharedItem(object): 'shared': 'shared' } - def __init__(self, error_details=None, group=None, shared=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """MemberGroupSharedItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._group = None self._shared = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if group is not None: - self.group = group - if shared is not None: - self.shared = shared + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('group'), kwargs.get('group', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) @property def error_details(self): @@ -162,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, MemberGroupSharedItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MemberGroupSharedItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/member_shared_items.py b/docusign_esign/models/member_shared_items.py index 15b331aa..9c7a57a3 100644 --- a/docusign_esign/models/member_shared_items.py +++ b/docusign_esign/models/member_shared_items.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class MemberSharedItems(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class MemberSharedItems(object): 'user': 'user' } - def __init__(self, envelopes=None, error_details=None, templates=None, user=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """MemberSharedItems - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelopes = None self._error_details = None @@ -53,14 +58,10 @@ def __init__(self, envelopes=None, error_details=None, templates=None, user=None self._user = None self.discriminator = None - if envelopes is not None: - self.envelopes = envelopes - if error_details is not None: - self.error_details = error_details - if templates is not None: - self.templates = templates - if user is not None: - self.user = user + setattr(self, "_{}".format('envelopes'), kwargs.get('envelopes', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('templates'), kwargs.get('templates', None)) + setattr(self, "_{}".format('user'), kwargs.get('user', None)) @property def envelopes(self): @@ -190,8 +191,11 @@ def __eq__(self, other): if not isinstance(other, MemberSharedItems): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MemberSharedItems): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/merge_field.py b/docusign_esign/models/merge_field.py index b3dca04f..923f9514 100644 --- a/docusign_esign/models/merge_field.py +++ b/docusign_esign/models/merge_field.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class MergeField(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class MergeField(object): 'write_back': 'writeBack' } - def __init__(self, allow_sender_to_edit=None, configuration_type=None, path=None, row=None, write_back=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """MergeField - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_sender_to_edit = None self._configuration_type = None @@ -56,16 +61,11 @@ def __init__(self, allow_sender_to_edit=None, configuration_type=None, path=None self._write_back = None self.discriminator = None - if allow_sender_to_edit is not None: - self.allow_sender_to_edit = allow_sender_to_edit - if configuration_type is not None: - self.configuration_type = configuration_type - if path is not None: - self.path = path - if row is not None: - self.row = row - if write_back is not None: - self.write_back = write_back + setattr(self, "_{}".format('allow_sender_to_edit'), kwargs.get('allow_sender_to_edit', None)) + setattr(self, "_{}".format('configuration_type'), kwargs.get('configuration_type', None)) + setattr(self, "_{}".format('path'), kwargs.get('path', None)) + setattr(self, "_{}".format('row'), kwargs.get('row', None)) + setattr(self, "_{}".format('write_back'), kwargs.get('write_back', None)) @property def allow_sender_to_edit(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, MergeField): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MergeField): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/mobile_notifier_configuration.py b/docusign_esign/models/mobile_notifier_configuration.py index 142262c5..698c3f25 100644 --- a/docusign_esign/models/mobile_notifier_configuration.py +++ b/docusign_esign/models/mobile_notifier_configuration.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class MobileNotifierConfiguration(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class MobileNotifierConfiguration(object): 'platform': 'platform' } - def __init__(self, device_id=None, error_details=None, platform=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """MobileNotifierConfiguration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._device_id = None self._error_details = None self._platform = None self.discriminator = None - if device_id is not None: - self.device_id = device_id - if error_details is not None: - self.error_details = error_details - if platform is not None: - self.platform = platform + setattr(self, "_{}".format('device_id'), kwargs.get('device_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('platform'), kwargs.get('platform', None)) @property def device_id(self): @@ -164,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, MobileNotifierConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MobileNotifierConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/mobile_notifier_configuration_information.py b/docusign_esign/models/mobile_notifier_configuration_information.py index 2692ca92..41b3ee92 100644 --- a/docusign_esign/models/mobile_notifier_configuration_information.py +++ b/docusign_esign/models/mobile_notifier_configuration_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class MobileNotifierConfigurationInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class MobileNotifierConfigurationInformation(object): 'mobile_notifier_configurations': 'mobileNotifierConfigurations' } - def __init__(self, mobile_notifier_configurations=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """MobileNotifierConfigurationInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._mobile_notifier_configurations = None self.discriminator = None - if mobile_notifier_configurations is not None: - self.mobile_notifier_configurations = mobile_notifier_configurations + setattr(self, "_{}".format('mobile_notifier_configurations'), kwargs.get('mobile_notifier_configurations', None)) @property def mobile_notifier_configurations(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, MobileNotifierConfigurationInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MobileNotifierConfigurationInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/model_date.py b/docusign_esign/models/model_date.py index f65f437f..aefdb51c 100644 --- a/docusign_esign/models/model_date.py +++ b/docusign_esign/models/model_date.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ModelDate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -130,8 +132,11 @@ class ModelDate(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ModelDate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -182,100 +187,53 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1394,8 +1352,11 @@ def __eq__(self, other): if not isinstance(other, ModelDate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ModelDate): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/money.py b/docusign_esign/models/money.py index 9826574b..a61e0f9f 100644 --- a/docusign_esign/models/money.py +++ b/docusign_esign/models/money.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Money(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class Money(object): 'display_amount': 'displayAmount' } - def __init__(self, amount_in_base_unit=None, currency=None, display_amount=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Money - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._amount_in_base_unit = None self._currency = None self._display_amount = None self.discriminator = None - if amount_in_base_unit is not None: - self.amount_in_base_unit = amount_in_base_unit - if currency is not None: - self.currency = currency - if display_amount is not None: - self.display_amount = display_amount + setattr(self, "_{}".format('amount_in_base_unit'), kwargs.get('amount_in_base_unit', None)) + setattr(self, "_{}".format('currency'), kwargs.get('currency', None)) + setattr(self, "_{}".format('display_amount'), kwargs.get('display_amount', None)) @property def amount_in_base_unit(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, Money): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Money): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/name_value.py b/docusign_esign/models/name_value.py index 4ee6a9a7..a8beff37 100644 --- a/docusign_esign/models/name_value.py +++ b/docusign_esign/models/name_value.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NameValue(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class NameValue(object): 'value': 'value' } - def __init__(self, error_details=None, name=None, original_value=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NameValue - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._name = None @@ -53,14 +58,10 @@ def __init__(self, error_details=None, name=None, original_value=None, value=Non self._value = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if value is not None: - self.value = value + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def error_details(self): @@ -192,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, NameValue): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NameValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/new_account_definition.py b/docusign_esign/models/new_account_definition.py index 2025af5c..2cdcc04d 100644 --- a/docusign_esign/models/new_account_definition.py +++ b/docusign_esign/models/new_account_definition.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NewAccountDefinition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class NewAccountDefinition(object): 'social_account_information': 'socialAccountInformation' } - def __init__(self, account_name=None, account_settings=None, address_information=None, credit_card_information=None, distributor_code=None, distributor_password=None, envelope_partition_id=None, initial_user=None, payment_processor_information=None, plan_information=None, referral_information=None, social_account_information=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NewAccountDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_name = None self._account_settings = None @@ -77,30 +82,18 @@ def __init__(self, account_name=None, account_settings=None, address_information self._social_account_information = None self.discriminator = None - if account_name is not None: - self.account_name = account_name - if account_settings is not None: - self.account_settings = account_settings - if address_information is not None: - self.address_information = address_information - if credit_card_information is not None: - self.credit_card_information = credit_card_information - if distributor_code is not None: - self.distributor_code = distributor_code - if distributor_password is not None: - self.distributor_password = distributor_password - if envelope_partition_id is not None: - self.envelope_partition_id = envelope_partition_id - if initial_user is not None: - self.initial_user = initial_user - if payment_processor_information is not None: - self.payment_processor_information = payment_processor_information - if plan_information is not None: - self.plan_information = plan_information - if referral_information is not None: - self.referral_information = referral_information - if social_account_information is not None: - self.social_account_information = social_account_information + setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) + setattr(self, "_{}".format('account_settings'), kwargs.get('account_settings', None)) + setattr(self, "_{}".format('address_information'), kwargs.get('address_information', None)) + setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) + setattr(self, "_{}".format('distributor_code'), kwargs.get('distributor_code', None)) + setattr(self, "_{}".format('distributor_password'), kwargs.get('distributor_password', None)) + setattr(self, "_{}".format('envelope_partition_id'), kwargs.get('envelope_partition_id', None)) + setattr(self, "_{}".format('initial_user'), kwargs.get('initial_user', None)) + setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) + setattr(self, "_{}".format('plan_information'), kwargs.get('plan_information', None)) + setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) + setattr(self, "_{}".format('social_account_information'), kwargs.get('social_account_information', None)) @property def account_name(self): @@ -404,8 +397,11 @@ def __eq__(self, other): if not isinstance(other, NewAccountDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NewAccountDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/new_account_summary.py b/docusign_esign/models/new_account_summary.py index a1c92776..6ab9848d 100644 --- a/docusign_esign/models/new_account_summary.py +++ b/docusign_esign/models/new_account_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NewAccountSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class NewAccountSummary(object): 'user_id': 'userId' } - def __init__(self, account_id=None, account_id_guid=None, account_name=None, api_password=None, base_url=None, billing_plan_preview=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NewAccountSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_id = None self._account_id_guid = None @@ -62,20 +67,13 @@ def __init__(self, account_id=None, account_id_guid=None, account_name=None, api self._user_id = None self.discriminator = None - if account_id is not None: - self.account_id = account_id - if account_id_guid is not None: - self.account_id_guid = account_id_guid - if account_name is not None: - self.account_name = account_name - if api_password is not None: - self.api_password = api_password - if base_url is not None: - self.base_url = base_url - if billing_plan_preview is not None: - self.billing_plan_preview = billing_plan_preview - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) + setattr(self, "_{}".format('account_id_guid'), kwargs.get('account_id_guid', None)) + setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) + setattr(self, "_{}".format('api_password'), kwargs.get('api_password', None)) + setattr(self, "_{}".format('base_url'), kwargs.get('base_url', None)) + setattr(self, "_{}".format('billing_plan_preview'), kwargs.get('billing_plan_preview', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def account_id(self): @@ -276,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, NewAccountSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NewAccountSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/new_user.py b/docusign_esign/models/new_user.py index fea885e2..6893f19c 100644 --- a/docusign_esign/models/new_user.py +++ b/docusign_esign/models/new_user.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NewUser(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,8 +60,11 @@ class NewUser(object): 'user_status': 'userStatus' } - def __init__(self, api_password=None, created_date_time=None, email=None, error_details=None, membership_id=None, permission_profile_id=None, permission_profile_name=None, uri=None, user_id=None, user_name=None, user_status=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NewUser - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._api_password = None self._created_date_time = None @@ -74,28 +79,17 @@ def __init__(self, api_password=None, created_date_time=None, email=None, error_ self._user_status = None self.discriminator = None - if api_password is not None: - self.api_password = api_password - if created_date_time is not None: - self.created_date_time = created_date_time - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if membership_id is not None: - self.membership_id = membership_id - if permission_profile_id is not None: - self.permission_profile_id = permission_profile_id - if permission_profile_name is not None: - self.permission_profile_name = permission_profile_name - if uri is not None: - self.uri = uri - if user_id is not None: - self.user_id = user_id - if user_name is not None: - self.user_name = user_name - if user_status is not None: - self.user_status = user_status + setattr(self, "_{}".format('api_password'), kwargs.get('api_password', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('membership_id'), kwargs.get('membership_id', None)) + setattr(self, "_{}".format('permission_profile_id'), kwargs.get('permission_profile_id', None)) + setattr(self, "_{}".format('permission_profile_name'), kwargs.get('permission_profile_name', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) + setattr(self, "_{}".format('user_status'), kwargs.get('user_status', None)) @property def api_password(self): @@ -388,8 +382,11 @@ def __eq__(self, other): if not isinstance(other, NewUser): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NewUser): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/new_users_definition.py b/docusign_esign/models/new_users_definition.py index c530ee41..3b8c3e4e 100644 --- a/docusign_esign/models/new_users_definition.py +++ b/docusign_esign/models/new_users_definition.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NewUsersDefinition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class NewUsersDefinition(object): 'new_users': 'newUsers' } - def __init__(self, new_users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NewUsersDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._new_users = None self.discriminator = None - if new_users is not None: - self.new_users = new_users + setattr(self, "_{}".format('new_users'), kwargs.get('new_users', None)) @property def new_users(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, NewUsersDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NewUsersDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/new_users_summary.py b/docusign_esign/models/new_users_summary.py index 714a8489..b900aeba 100644 --- a/docusign_esign/models/new_users_summary.py +++ b/docusign_esign/models/new_users_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NewUsersSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class NewUsersSummary(object): 'new_users': 'newUsers' } - def __init__(self, new_users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NewUsersSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._new_users = None self.discriminator = None - if new_users is not None: - self.new_users = new_users + setattr(self, "_{}".format('new_users'), kwargs.get('new_users', None)) @property def new_users(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, NewUsersSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NewUsersSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notarize.py b/docusign_esign/models/notarize.py index 5a286196..da291e00 100644 --- a/docusign_esign/models/notarize.py +++ b/docusign_esign/models/notarize.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Notarize(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -90,8 +92,11 @@ class Notarize(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, locked=None, merge_field=None, page_number=None, recipient_id=None, required=None, status=None, tab_group_labels=None, tab_id=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Notarize - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -122,60 +127,33 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if locked is not None: - self.locked = locked - if merge_field is not None: - self.merge_field = merge_field - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if required is not None: - self.required = required - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -834,8 +812,11 @@ def __eq__(self, other): if not isinstance(other, Notarize): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Notarize): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notary_host.py b/docusign_esign/models/notary_host.py index e2311373..71c14663 100644 --- a/docusign_esign/models/notary_host.py +++ b/docusign_esign/models/notary_host.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NotaryHost(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -116,8 +118,11 @@ class NotaryHost(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, embedded_recipient_start_url=None, error_details=None, fax_number=None, host_recipient_id=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, name=None, note=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, sms_authentication=None, social_authentications=None, status=None, tabs=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NotaryHost - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -161,86 +166,46 @@ def __init__(self, access_code=None, add_access_code_to_email=None, client_user_ self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if fax_number is not None: - self.fax_number = fax_number - if host_recipient_id is not None: - self.host_recipient_id = host_recipient_id - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if tabs is not None: - self.tabs = tabs - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('host_recipient_id'), kwargs.get('host_recipient_id', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1184,8 +1149,11 @@ def __eq__(self, other): if not isinstance(other, NotaryHost): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NotaryHost): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notary_journal.py b/docusign_esign/models/notary_journal.py index 24cf101c..e05746e8 100644 --- a/docusign_esign/models/notary_journal.py +++ b/docusign_esign/models/notary_journal.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NotaryJournal(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class NotaryJournal(object): 'signer_name': 'signerName' } - def __init__(self, created_date=None, document_name=None, jurisdiction=None, notary_journal_id=None, notary_journal_meta_data=None, signer_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NotaryJournal - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_date = None self._document_name = None @@ -59,18 +64,12 @@ def __init__(self, created_date=None, document_name=None, jurisdiction=None, not self._signer_name = None self.discriminator = None - if created_date is not None: - self.created_date = created_date - if document_name is not None: - self.document_name = document_name - if jurisdiction is not None: - self.jurisdiction = jurisdiction - if notary_journal_id is not None: - self.notary_journal_id = notary_journal_id - if notary_journal_meta_data is not None: - self.notary_journal_meta_data = notary_journal_meta_data - if signer_name is not None: - self.signer_name = signer_name + setattr(self, "_{}".format('created_date'), kwargs.get('created_date', None)) + setattr(self, "_{}".format('document_name'), kwargs.get('document_name', None)) + setattr(self, "_{}".format('jurisdiction'), kwargs.get('jurisdiction', None)) + setattr(self, "_{}".format('notary_journal_id'), kwargs.get('notary_journal_id', None)) + setattr(self, "_{}".format('notary_journal_meta_data'), kwargs.get('notary_journal_meta_data', None)) + setattr(self, "_{}".format('signer_name'), kwargs.get('signer_name', None)) @property def created_date(self): @@ -246,8 +245,11 @@ def __eq__(self, other): if not isinstance(other, NotaryJournal): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NotaryJournal): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notary_journal_credible_witness.py b/docusign_esign/models/notary_journal_credible_witness.py index d85b3008..791d58c4 100644 --- a/docusign_esign/models/notary_journal_credible_witness.py +++ b/docusign_esign/models/notary_journal_credible_witness.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NotaryJournalCredibleWitness(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class NotaryJournalCredibleWitness(object): 'signature_image': 'signatureImage' } - def __init__(self, address=None, name=None, signature_image=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NotaryJournalCredibleWitness - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address = None self._name = None self._signature_image = None self.discriminator = None - if address is not None: - self.address = address - if name is not None: - self.name = name - if signature_image is not None: - self.signature_image = signature_image + setattr(self, "_{}".format('address'), kwargs.get('address', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('signature_image'), kwargs.get('signature_image', None)) @property def address(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, NotaryJournalCredibleWitness): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NotaryJournalCredibleWitness): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notary_journal_list.py b/docusign_esign/models/notary_journal_list.py index 2ec15d03..4e8aefa8 100644 --- a/docusign_esign/models/notary_journal_list.py +++ b/docusign_esign/models/notary_journal_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NotaryJournalList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class NotaryJournalList(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, next_uri=None, notary_journals=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NotaryJournalList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._next_uri = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, next_uri=None, notary_journals=None, previ self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if notary_journals is not None: - self.notary_journals = notary_journals - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('notary_journals'), kwargs.get('notary_journals', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, NotaryJournalList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NotaryJournalList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notary_journal_meta_data.py b/docusign_esign/models/notary_journal_meta_data.py index a2b10e77..80faf778 100644 --- a/docusign_esign/models/notary_journal_meta_data.py +++ b/docusign_esign/models/notary_journal_meta_data.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class NotaryJournalMetaData(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class NotaryJournalMetaData(object): 'signer_id_type': 'signerIdType' } - def __init__(self, comment=None, credible_witnesses=None, signature_image=None, signer_id_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """NotaryJournalMetaData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._comment = None self._credible_witnesses = None @@ -53,14 +58,10 @@ def __init__(self, comment=None, credible_witnesses=None, signature_image=None, self._signer_id_type = None self.discriminator = None - if comment is not None: - self.comment = comment - if credible_witnesses is not None: - self.credible_witnesses = credible_witnesses - if signature_image is not None: - self.signature_image = signature_image - if signer_id_type is not None: - self.signer_id_type = signer_id_type + setattr(self, "_{}".format('comment'), kwargs.get('comment', None)) + setattr(self, "_{}".format('credible_witnesses'), kwargs.get('credible_witnesses', None)) + setattr(self, "_{}".format('signature_image'), kwargs.get('signature_image', None)) + setattr(self, "_{}".format('signer_id_type'), kwargs.get('signer_id_type', None)) @property def comment(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, NotaryJournalMetaData): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NotaryJournalMetaData): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/note.py b/docusign_esign/models/note.py index 0fafd775..215fe329 100644 --- a/docusign_esign/models/note.py +++ b/docusign_esign/models/note.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Note(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -110,8 +112,11 @@ class Note(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, height=None, italic=None, merge_field=None, name=None, page_number=None, recipient_id=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Note - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -152,80 +157,43 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if height is not None: - self.height = height - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1114,8 +1082,11 @@ def __eq__(self, other): if not isinstance(other, Note): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Note): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/notification.py b/docusign_esign/models/notification.py index ad658432..25eb0d22 100644 --- a/docusign_esign/models/notification.py +++ b/docusign_esign/models/notification.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Notification(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class Notification(object): 'use_account_defaults': 'useAccountDefaults' } - def __init__(self, expirations=None, reminders=None, use_account_defaults=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Notification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._expirations = None self._reminders = None self._use_account_defaults = None self.discriminator = None - if expirations is not None: - self.expirations = expirations - if reminders is not None: - self.reminders = reminders - if use_account_defaults is not None: - self.use_account_defaults = use_account_defaults + setattr(self, "_{}".format('expirations'), kwargs.get('expirations', None)) + setattr(self, "_{}".format('reminders'), kwargs.get('reminders', None)) + setattr(self, "_{}".format('use_account_defaults'), kwargs.get('use_account_defaults', None)) @property def expirations(self): @@ -162,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, Notification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Notification): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/number.py b/docusign_esign/models/number.py index 088a1734..697d9ae1 100644 --- a/docusign_esign/models/number.py +++ b/docusign_esign/models/number.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Number(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -134,8 +136,11 @@ class Number(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, formula=None, is_payment_amount=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Number - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -188,104 +193,55 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if formula is not None: - self.formula = formula - if is_payment_amount is not None: - self.is_payment_amount = is_payment_amount - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('formula'), kwargs.get('formula', None)) + setattr(self, "_{}".format('is_payment_amount'), kwargs.get('is_payment_amount', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1450,8 +1406,11 @@ def __eq__(self, other): if not isinstance(other, Number): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Number): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/oauth_access.py b/docusign_esign/models/oauth_access.py index 7af5fbfe..0b5a89f8 100644 --- a/docusign_esign/models/oauth_access.py +++ b/docusign_esign/models/oauth_access.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class OauthAccess(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class OauthAccess(object): 'token_type': 'token_type' } - def __init__(self, access_token=None, data=None, expires_in=None, refresh_token=None, scope=None, token_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """OauthAccess - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_token = None self._data = None @@ -59,18 +64,12 @@ def __init__(self, access_token=None, data=None, expires_in=None, refresh_token= self._token_type = None self.discriminator = None - if access_token is not None: - self.access_token = access_token - if data is not None: - self.data = data - if expires_in is not None: - self.expires_in = expires_in - if refresh_token is not None: - self.refresh_token = refresh_token - if scope is not None: - self.scope = scope - if token_type is not None: - self.token_type = token_type + setattr(self, "_{}".format('access_token'), kwargs.get('access_token', None)) + setattr(self, "_{}".format('data'), kwargs.get('data', None)) + setattr(self, "_{}".format('expires_in'), kwargs.get('expires_in', None)) + setattr(self, "_{}".format('refresh_token'), kwargs.get('refresh_token', None)) + setattr(self, "_{}".format('scope'), kwargs.get('scope', None)) + setattr(self, "_{}".format('token_type'), kwargs.get('token_type', None)) @property def access_token(self): @@ -250,8 +249,11 @@ def __eq__(self, other): if not isinstance(other, OauthAccess): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, OauthAccess): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/offline_attributes.py b/docusign_esign/models/offline_attributes.py index 507f6681..7565649b 100644 --- a/docusign_esign/models/offline_attributes.py +++ b/docusign_esign/models/offline_attributes.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class OfflineAttributes(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class OfflineAttributes(object): 'offline_signing_hash': 'offlineSigningHash' } - def __init__(self, account_esign_id=None, device_model=None, device_name=None, gps_latitude=None, gps_longitude=None, offline_signing_hash=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """OfflineAttributes - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_esign_id = None self._device_model = None @@ -59,18 +64,12 @@ def __init__(self, account_esign_id=None, device_model=None, device_name=None, g self._offline_signing_hash = None self.discriminator = None - if account_esign_id is not None: - self.account_esign_id = account_esign_id - if device_model is not None: - self.device_model = device_model - if device_name is not None: - self.device_name = device_name - if gps_latitude is not None: - self.gps_latitude = gps_latitude - if gps_longitude is not None: - self.gps_longitude = gps_longitude - if offline_signing_hash is not None: - self.offline_signing_hash = offline_signing_hash + setattr(self, "_{}".format('account_esign_id'), kwargs.get('account_esign_id', None)) + setattr(self, "_{}".format('device_model'), kwargs.get('device_model', None)) + setattr(self, "_{}".format('device_name'), kwargs.get('device_name', None)) + setattr(self, "_{}".format('gps_latitude'), kwargs.get('gps_latitude', None)) + setattr(self, "_{}".format('gps_longitude'), kwargs.get('gps_longitude', None)) + setattr(self, "_{}".format('offline_signing_hash'), kwargs.get('offline_signing_hash', None)) @property def account_esign_id(self): @@ -250,8 +249,11 @@ def __eq__(self, other): if not isinstance(other, OfflineAttributes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, OfflineAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/page.py b/docusign_esign/models/page.py index 72a9cdc0..606da2b3 100644 --- a/docusign_esign/models/page.py +++ b/docusign_esign/models/page.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Page(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class Page(object): 'width': 'width' } - def __init__(self, dpi=None, error_details=None, height=None, image_bytes=None, mime_type=None, page_id=None, sequence=None, width=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Page - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._dpi = None self._error_details = None @@ -65,22 +70,14 @@ def __init__(self, dpi=None, error_details=None, height=None, image_bytes=None, self._width = None self.discriminator = None - if dpi is not None: - self.dpi = dpi - if error_details is not None: - self.error_details = error_details - if height is not None: - self.height = height - if image_bytes is not None: - self.image_bytes = image_bytes - if mime_type is not None: - self.mime_type = mime_type - if page_id is not None: - self.page_id = page_id - if sequence is not None: - self.sequence = sequence - if width is not None: - self.width = width + setattr(self, "_{}".format('dpi'), kwargs.get('dpi', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('image_bytes'), kwargs.get('image_bytes', None)) + setattr(self, "_{}".format('mime_type'), kwargs.get('mime_type', None)) + setattr(self, "_{}".format('page_id'), kwargs.get('page_id', None)) + setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) @property def dpi(self): @@ -304,8 +301,11 @@ def __eq__(self, other): if not isinstance(other, Page): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Page): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/page_images.py b/docusign_esign/models/page_images.py index bae5a778..98ef8236 100644 --- a/docusign_esign/models/page_images.py +++ b/docusign_esign/models/page_images.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PageImages(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class PageImages(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, next_uri=None, pages=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PageImages - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._next_uri = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, next_uri=None, pages=None, previous_uri=No self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if pages is not None: - self.pages = pages - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('pages'), kwargs.get('pages', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, PageImages): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PageImages): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/page_request.py b/docusign_esign/models/page_request.py index 99f1335f..1822a1d4 100644 --- a/docusign_esign/models/page_request.py +++ b/docusign_esign/models/page_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PageRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class PageRequest(object): 'rotate': 'rotate' } - def __init__(self, password=None, rotate=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PageRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._password = None self._rotate = None self.discriminator = None - if password is not None: - self.password = password - if rotate is not None: - self.rotate = rotate + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('rotate'), kwargs.get('rotate', None)) @property def password(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, PageRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PageRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/payment_details.py b/docusign_esign/models/payment_details.py index b3102dc0..945cc067 100644 --- a/docusign_esign/models/payment_details.py +++ b/docusign_esign/models/payment_details.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PaymentDetails(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -66,8 +68,11 @@ class PaymentDetails(object): 'total': 'total' } - def __init__(self, allowed_payment_methods=None, charge_id=None, currency_code=None, customer_id=None, custom_metadata=None, custom_metadata_required=None, gateway_account_id=None, gateway_display_name=None, gateway_name=None, line_items=None, payment_option=None, payment_source_id=None, signer_values=None, status=None, total=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PaymentDetails - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allowed_payment_methods = None self._charge_id = None @@ -86,36 +91,21 @@ def __init__(self, allowed_payment_methods=None, charge_id=None, currency_code=N self._total = None self.discriminator = None - if allowed_payment_methods is not None: - self.allowed_payment_methods = allowed_payment_methods - if charge_id is not None: - self.charge_id = charge_id - if currency_code is not None: - self.currency_code = currency_code - if customer_id is not None: - self.customer_id = customer_id - if custom_metadata is not None: - self.custom_metadata = custom_metadata - if custom_metadata_required is not None: - self.custom_metadata_required = custom_metadata_required - if gateway_account_id is not None: - self.gateway_account_id = gateway_account_id - if gateway_display_name is not None: - self.gateway_display_name = gateway_display_name - if gateway_name is not None: - self.gateway_name = gateway_name - if line_items is not None: - self.line_items = line_items - if payment_option is not None: - self.payment_option = payment_option - if payment_source_id is not None: - self.payment_source_id = payment_source_id - if signer_values is not None: - self.signer_values = signer_values - if status is not None: - self.status = status - if total is not None: - self.total = total + setattr(self, "_{}".format('allowed_payment_methods'), kwargs.get('allowed_payment_methods', None)) + setattr(self, "_{}".format('charge_id'), kwargs.get('charge_id', None)) + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('customer_id'), kwargs.get('customer_id', None)) + setattr(self, "_{}".format('custom_metadata'), kwargs.get('custom_metadata', None)) + setattr(self, "_{}".format('custom_metadata_required'), kwargs.get('custom_metadata_required', None)) + setattr(self, "_{}".format('gateway_account_id'), kwargs.get('gateway_account_id', None)) + setattr(self, "_{}".format('gateway_display_name'), kwargs.get('gateway_display_name', None)) + setattr(self, "_{}".format('gateway_name'), kwargs.get('gateway_name', None)) + setattr(self, "_{}".format('line_items'), kwargs.get('line_items', None)) + setattr(self, "_{}".format('payment_option'), kwargs.get('payment_option', None)) + setattr(self, "_{}".format('payment_source_id'), kwargs.get('payment_source_id', None)) + setattr(self, "_{}".format('signer_values'), kwargs.get('signer_values', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('total'), kwargs.get('total', None)) @property def allowed_payment_methods(self): @@ -498,8 +488,11 @@ def __eq__(self, other): if not isinstance(other, PaymentDetails): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaymentDetails): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/payment_gateway_account.py b/docusign_esign/models/payment_gateway_account.py index dc321241..9c6b4231 100644 --- a/docusign_esign/models/payment_gateway_account.py +++ b/docusign_esign/models/payment_gateway_account.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PaymentGatewayAccount(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class PaymentGatewayAccount(object): 'payment_gateway_display_name': 'paymentGatewayDisplayName' } - def __init__(self, display_name=None, payment_gateway=None, payment_gateway_account_id=None, payment_gateway_display_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PaymentGatewayAccount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._display_name = None self._payment_gateway = None @@ -53,14 +58,10 @@ def __init__(self, display_name=None, payment_gateway=None, payment_gateway_acco self._payment_gateway_display_name = None self.discriminator = None - if display_name is not None: - self.display_name = display_name - if payment_gateway is not None: - self.payment_gateway = payment_gateway - if payment_gateway_account_id is not None: - self.payment_gateway_account_id = payment_gateway_account_id - if payment_gateway_display_name is not None: - self.payment_gateway_display_name = payment_gateway_display_name + setattr(self, "_{}".format('display_name'), kwargs.get('display_name', None)) + setattr(self, "_{}".format('payment_gateway'), kwargs.get('payment_gateway', None)) + setattr(self, "_{}".format('payment_gateway_account_id'), kwargs.get('payment_gateway_account_id', None)) + setattr(self, "_{}".format('payment_gateway_display_name'), kwargs.get('payment_gateway_display_name', None)) @property def display_name(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, PaymentGatewayAccount): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaymentGatewayAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/payment_gateway_accounts_info.py b/docusign_esign/models/payment_gateway_accounts_info.py index e70c6af0..4bd9fe8f 100644 --- a/docusign_esign/models/payment_gateway_accounts_info.py +++ b/docusign_esign/models/payment_gateway_accounts_info.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PaymentGatewayAccountsInfo(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class PaymentGatewayAccountsInfo(object): 'payment_gateway_accounts': 'paymentGatewayAccounts' } - def __init__(self, payment_gateway_accounts=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PaymentGatewayAccountsInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._payment_gateway_accounts = None self.discriminator = None - if payment_gateway_accounts is not None: - self.payment_gateway_accounts = payment_gateway_accounts + setattr(self, "_{}".format('payment_gateway_accounts'), kwargs.get('payment_gateway_accounts', None)) @property def payment_gateway_accounts(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, PaymentGatewayAccountsInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaymentGatewayAccountsInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/payment_line_item.py b/docusign_esign/models/payment_line_item.py index 27b8b3dd..44a219aa 100644 --- a/docusign_esign/models/payment_line_item.py +++ b/docusign_esign/models/payment_line_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PaymentLineItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class PaymentLineItem(object): 'name': 'name' } - def __init__(self, amount_reference=None, description=None, item_code=None, name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PaymentLineItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._amount_reference = None self._description = None @@ -53,14 +58,10 @@ def __init__(self, amount_reference=None, description=None, item_code=None, name self._name = None self.discriminator = None - if amount_reference is not None: - self.amount_reference = amount_reference - if description is not None: - self.description = description - if item_code is not None: - self.item_code = item_code - if name is not None: - self.name = name + setattr(self, "_{}".format('amount_reference'), kwargs.get('amount_reference', None)) + setattr(self, "_{}".format('description'), kwargs.get('description', None)) + setattr(self, "_{}".format('item_code'), kwargs.get('item_code', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) @property def amount_reference(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, PaymentLineItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaymentLineItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/payment_processor_information.py b/docusign_esign/models/payment_processor_information.py index 62e7af54..63e93b24 100644 --- a/docusign_esign/models/payment_processor_information.py +++ b/docusign_esign/models/payment_processor_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PaymentProcessorInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class PaymentProcessorInformation(object): 'email': 'email' } - def __init__(self, address=None, billing_agreement_id=None, email=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PaymentProcessorInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address = None self._billing_agreement_id = None self._email = None self.discriminator = None - if address is not None: - self.address = address - if billing_agreement_id is not None: - self.billing_agreement_id = billing_agreement_id - if email is not None: - self.email = email + setattr(self, "_{}".format('address'), kwargs.get('address', None)) + setattr(self, "_{}".format('billing_agreement_id'), kwargs.get('billing_agreement_id', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) @property def address(self): @@ -164,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, PaymentProcessorInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaymentProcessorInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/payment_signer_values.py b/docusign_esign/models/payment_signer_values.py index afcc4718..81a77cc6 100644 --- a/docusign_esign/models/payment_signer_values.py +++ b/docusign_esign/models/payment_signer_values.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PaymentSignerValues(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class PaymentSignerValues(object): 'payment_option': 'paymentOption' } - def __init__(self, payment_option=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PaymentSignerValues - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._payment_option = None self.discriminator = None - if payment_option is not None: - self.payment_option = payment_option + setattr(self, "_{}".format('payment_option'), kwargs.get('payment_option', None)) @property def payment_option(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, PaymentSignerValues): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaymentSignerValues): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/permission_profile.py b/docusign_esign/models/permission_profile.py index 624d46f9..e8fb8067 100644 --- a/docusign_esign/models/permission_profile.py +++ b/docusign_esign/models/permission_profile.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PermissionProfile(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class PermissionProfile(object): 'users': 'users' } - def __init__(self, modified_by_username=None, modified_date_time=None, permission_profile_id=None, permission_profile_name=None, settings=None, user_count=None, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PermissionProfile - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._modified_by_username = None self._modified_date_time = None @@ -62,20 +67,13 @@ def __init__(self, modified_by_username=None, modified_date_time=None, permissio self._users = None self.discriminator = None - if modified_by_username is not None: - self.modified_by_username = modified_by_username - if modified_date_time is not None: - self.modified_date_time = modified_date_time - if permission_profile_id is not None: - self.permission_profile_id = permission_profile_id - if permission_profile_name is not None: - self.permission_profile_name = permission_profile_name - if settings is not None: - self.settings = settings - if user_count is not None: - self.user_count = user_count - if users is not None: - self.users = users + setattr(self, "_{}".format('modified_by_username'), kwargs.get('modified_by_username', None)) + setattr(self, "_{}".format('modified_date_time'), kwargs.get('modified_date_time', None)) + setattr(self, "_{}".format('permission_profile_id'), kwargs.get('permission_profile_id', None)) + setattr(self, "_{}".format('permission_profile_name'), kwargs.get('permission_profile_name', None)) + setattr(self, "_{}".format('settings'), kwargs.get('settings', None)) + setattr(self, "_{}".format('user_count'), kwargs.get('user_count', None)) + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def modified_by_username(self): @@ -276,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, PermissionProfile): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionProfile): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/permission_profile_information.py b/docusign_esign/models/permission_profile_information.py index e2db4aca..045cb9a2 100644 --- a/docusign_esign/models/permission_profile_information.py +++ b/docusign_esign/models/permission_profile_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PermissionProfileInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class PermissionProfileInformation(object): 'permission_profiles': 'permissionProfiles' } - def __init__(self, permission_profiles=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PermissionProfileInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._permission_profiles = None self.discriminator = None - if permission_profiles is not None: - self.permission_profiles = permission_profiles + setattr(self, "_{}".format('permission_profiles'), kwargs.get('permission_profiles', None)) @property def permission_profiles(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, PermissionProfileInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionProfileInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/plan_information.py b/docusign_esign/models/plan_information.py index 60a9c70e..1e47a3c3 100644 --- a/docusign_esign/models/plan_information.py +++ b/docusign_esign/models/plan_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PlanInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class PlanInformation(object): 'recipient_domains': 'recipientDomains' } - def __init__(self, add_ons=None, currency_code=None, free_trial_days_override=None, plan_feature_sets=None, plan_id=None, recipient_domains=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PlanInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._add_ons = None self._currency_code = None @@ -59,18 +64,12 @@ def __init__(self, add_ons=None, currency_code=None, free_trial_days_override=No self._recipient_domains = None self.discriminator = None - if add_ons is not None: - self.add_ons = add_ons - if currency_code is not None: - self.currency_code = currency_code - if free_trial_days_override is not None: - self.free_trial_days_override = free_trial_days_override - if plan_feature_sets is not None: - self.plan_feature_sets = plan_feature_sets - if plan_id is not None: - self.plan_id = plan_id - if recipient_domains is not None: - self.recipient_domains = recipient_domains + setattr(self, "_{}".format('add_ons'), kwargs.get('add_ons', None)) + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('free_trial_days_override'), kwargs.get('free_trial_days_override', None)) + setattr(self, "_{}".format('plan_feature_sets'), kwargs.get('plan_feature_sets', None)) + setattr(self, "_{}".format('plan_id'), kwargs.get('plan_id', None)) + setattr(self, "_{}".format('recipient_domains'), kwargs.get('recipient_domains', None)) @property def add_ons(self): @@ -250,8 +249,11 @@ def __eq__(self, other): if not isinstance(other, PlanInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PlanInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_form.py b/docusign_esign/models/power_form.py index 2b87037a..8fcb7a58 100644 --- a/docusign_esign/models/power_form.py +++ b/docusign_esign/models/power_form.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerForm(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -86,8 +88,11 @@ class PowerForm(object): 'uses_remaining': 'usesRemaining' } - def __init__(self, created_by=None, created_date_time=None, email_body=None, email_subject=None, envelopes=None, error_details=None, instructions=None, is_active=None, last_used=None, limit_use_interval=None, limit_use_interval_enabled=None, limit_use_interval_units=None, max_use_enabled=None, name=None, power_form_id=None, power_form_url=None, recipients=None, sender_name=None, sender_user_id=None, signing_mode=None, template_id=None, template_name=None, times_used=None, uri=None, uses_remaining=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerForm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_by = None self._created_date_time = None @@ -116,56 +121,31 @@ def __init__(self, created_by=None, created_date_time=None, email_body=None, ema self._uses_remaining = None self.discriminator = None - if created_by is not None: - self.created_by = created_by - if created_date_time is not None: - self.created_date_time = created_date_time - if email_body is not None: - self.email_body = email_body - if email_subject is not None: - self.email_subject = email_subject - if envelopes is not None: - self.envelopes = envelopes - if error_details is not None: - self.error_details = error_details - if instructions is not None: - self.instructions = instructions - if is_active is not None: - self.is_active = is_active - if last_used is not None: - self.last_used = last_used - if limit_use_interval is not None: - self.limit_use_interval = limit_use_interval - if limit_use_interval_enabled is not None: - self.limit_use_interval_enabled = limit_use_interval_enabled - if limit_use_interval_units is not None: - self.limit_use_interval_units = limit_use_interval_units - if max_use_enabled is not None: - self.max_use_enabled = max_use_enabled - if name is not None: - self.name = name - if power_form_id is not None: - self.power_form_id = power_form_id - if power_form_url is not None: - self.power_form_url = power_form_url - if recipients is not None: - self.recipients = recipients - if sender_name is not None: - self.sender_name = sender_name - if sender_user_id is not None: - self.sender_user_id = sender_user_id - if signing_mode is not None: - self.signing_mode = signing_mode - if template_id is not None: - self.template_id = template_id - if template_name is not None: - self.template_name = template_name - if times_used is not None: - self.times_used = times_used - if uri is not None: - self.uri = uri - if uses_remaining is not None: - self.uses_remaining = uses_remaining + setattr(self, "_{}".format('created_by'), kwargs.get('created_by', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('email_body'), kwargs.get('email_body', None)) + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('envelopes'), kwargs.get('envelopes', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('instructions'), kwargs.get('instructions', None)) + setattr(self, "_{}".format('is_active'), kwargs.get('is_active', None)) + setattr(self, "_{}".format('last_used'), kwargs.get('last_used', None)) + setattr(self, "_{}".format('limit_use_interval'), kwargs.get('limit_use_interval', None)) + setattr(self, "_{}".format('limit_use_interval_enabled'), kwargs.get('limit_use_interval_enabled', None)) + setattr(self, "_{}".format('limit_use_interval_units'), kwargs.get('limit_use_interval_units', None)) + setattr(self, "_{}".format('max_use_enabled'), kwargs.get('max_use_enabled', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('power_form_id'), kwargs.get('power_form_id', None)) + setattr(self, "_{}".format('power_form_url'), kwargs.get('power_form_url', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) + setattr(self, "_{}".format('sender_name'), kwargs.get('sender_name', None)) + setattr(self, "_{}".format('sender_user_id'), kwargs.get('sender_user_id', None)) + setattr(self, "_{}".format('signing_mode'), kwargs.get('signing_mode', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('template_name'), kwargs.get('template_name', None)) + setattr(self, "_{}".format('times_used'), kwargs.get('times_used', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) + setattr(self, "_{}".format('uses_remaining'), kwargs.get('uses_remaining', None)) @property def created_by(self): @@ -780,8 +760,11 @@ def __eq__(self, other): if not isinstance(other, PowerForm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerForm): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_form_form_data_envelope.py b/docusign_esign/models/power_form_form_data_envelope.py index 40ecfe82..e4b67283 100644 --- a/docusign_esign/models/power_form_form_data_envelope.py +++ b/docusign_esign/models/power_form_form_data_envelope.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormFormDataEnvelope(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class PowerFormFormDataEnvelope(object): 'recipients': 'recipients' } - def __init__(self, envelope_id=None, recipients=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormFormDataEnvelope - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelope_id = None self._recipients = None self.discriminator = None - if envelope_id is not None: - self.envelope_id = envelope_id - if recipients is not None: - self.recipients = recipients + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('recipients'), kwargs.get('recipients', None)) @property def envelope_id(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormFormDataEnvelope): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormFormDataEnvelope): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_form_form_data_recipient.py b/docusign_esign/models/power_form_form_data_recipient.py index 3da91e99..f12e8203 100644 --- a/docusign_esign/models/power_form_form_data_recipient.py +++ b/docusign_esign/models/power_form_form_data_recipient.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormFormDataRecipient(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class PowerFormFormDataRecipient(object): 'recipient_id': 'recipientId' } - def __init__(self, email=None, form_data=None, name=None, recipient_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormFormDataRecipient - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._form_data = None @@ -53,14 +58,10 @@ def __init__(self, email=None, form_data=None, name=None, recipient_id=None): # self._recipient_id = None self.discriminator = None - if email is not None: - self.email = email - if form_data is not None: - self.form_data = form_data - if name is not None: - self.name = name - if recipient_id is not None: - self.recipient_id = recipient_id + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) @property def email(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormFormDataRecipient): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormFormDataRecipient): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_form_recipient.py b/docusign_esign/models/power_form_recipient.py index dafe9be7..c70aa9d1 100644 --- a/docusign_esign/models/power_form_recipient.py +++ b/docusign_esign/models/power_form_recipient.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormRecipient(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -62,8 +64,11 @@ class PowerFormRecipient(object): 'user_name_locked': 'userNameLocked' } - def __init__(self, access_code=None, access_code_locked=None, access_code_required=None, email=None, email_locked=None, id_check_configuration_name=None, id_check_required=None, name=None, recipient_type=None, role_name=None, routing_order=None, template_requires_id_lookup=None, user_name_locked=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormRecipient - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._access_code_locked = None @@ -80,32 +85,19 @@ def __init__(self, access_code=None, access_code_locked=None, access_code_requir self._user_name_locked = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if access_code_locked is not None: - self.access_code_locked = access_code_locked - if access_code_required is not None: - self.access_code_required = access_code_required - if email is not None: - self.email = email - if email_locked is not None: - self.email_locked = email_locked - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_required is not None: - self.id_check_required = id_check_required - if name is not None: - self.name = name - if recipient_type is not None: - self.recipient_type = recipient_type - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if template_requires_id_lookup is not None: - self.template_requires_id_lookup = template_requires_id_lookup - if user_name_locked is not None: - self.user_name_locked = user_name_locked + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('access_code_locked'), kwargs.get('access_code_locked', None)) + setattr(self, "_{}".format('access_code_required'), kwargs.get('access_code_required', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_locked'), kwargs.get('email_locked', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_required'), kwargs.get('id_check_required', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('recipient_type'), kwargs.get('recipient_type', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('template_requires_id_lookup'), kwargs.get('template_requires_id_lookup', None)) + setattr(self, "_{}".format('user_name_locked'), kwargs.get('user_name_locked', None)) @property def access_code(self): @@ -446,8 +438,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormRecipient): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormRecipient): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_form_senders_response.py b/docusign_esign/models/power_form_senders_response.py index f276786e..2d374644 100644 --- a/docusign_esign/models/power_form_senders_response.py +++ b/docusign_esign/models/power_form_senders_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormSendersResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class PowerFormSendersResponse(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, next_uri=None, power_form_senders=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormSendersResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._next_uri = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, next_uri=None, power_form_senders=None, pr self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if power_form_senders is not None: - self.power_form_senders = power_form_senders - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('power_form_senders'), kwargs.get('power_form_senders', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormSendersResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormSendersResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_forms_form_data_response.py b/docusign_esign/models/power_forms_form_data_response.py index 6f98045f..39e531c3 100644 --- a/docusign_esign/models/power_forms_form_data_response.py +++ b/docusign_esign/models/power_forms_form_data_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormsFormDataResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class PowerFormsFormDataResponse(object): 'envelopes': 'envelopes' } - def __init__(self, envelopes=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormsFormDataResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._envelopes = None self.discriminator = None - if envelopes is not None: - self.envelopes = envelopes + setattr(self, "_{}".format('envelopes'), kwargs.get('envelopes', None)) @property def envelopes(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormsFormDataResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormsFormDataResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_forms_request.py b/docusign_esign/models/power_forms_request.py index cf050cbd..d1035c87 100644 --- a/docusign_esign/models/power_forms_request.py +++ b/docusign_esign/models/power_forms_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormsRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class PowerFormsRequest(object): 'power_forms': 'powerForms' } - def __init__(self, power_forms=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormsRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._power_forms = None self.discriminator = None - if power_forms is not None: - self.power_forms = power_forms + setattr(self, "_{}".format('power_forms'), kwargs.get('power_forms', None)) @property def power_forms(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormsRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/power_forms_response.py b/docusign_esign/models/power_forms_response.py index 8779f9b5..86ce9cc4 100644 --- a/docusign_esign/models/power_forms_response.py +++ b/docusign_esign/models/power_forms_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PowerFormsResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class PowerFormsResponse(object): 'total_set_size': 'totalSetSize' } - def __init__(self, end_position=None, next_uri=None, power_forms=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PowerFormsResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._next_uri = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, next_uri=None, power_forms=None, previous_ self._total_set_size = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if power_forms is not None: - self.power_forms = power_forms - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('power_forms'), kwargs.get('power_forms', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, PowerFormsResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PowerFormsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/prefill_form_data.py b/docusign_esign/models/prefill_form_data.py index b6ac885f..e4ce47b8 100644 --- a/docusign_esign/models/prefill_form_data.py +++ b/docusign_esign/models/prefill_form_data.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PrefillFormData(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class PrefillFormData(object): 'sender_user_id': 'senderUserId' } - def __init__(self, form_data=None, sender_email=None, sender_name=None, sender_user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PrefillFormData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._form_data = None self._sender_email = None @@ -53,14 +58,10 @@ def __init__(self, form_data=None, sender_email=None, sender_name=None, sender_u self._sender_user_id = None self.discriminator = None - if form_data is not None: - self.form_data = form_data - if sender_email is not None: - self.sender_email = sender_email - if sender_name is not None: - self.sender_name = sender_name - if sender_user_id is not None: - self.sender_user_id = sender_user_id + setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None)) + setattr(self, "_{}".format('sender_email'), kwargs.get('sender_email', None)) + setattr(self, "_{}".format('sender_name'), kwargs.get('sender_name', None)) + setattr(self, "_{}".format('sender_user_id'), kwargs.get('sender_user_id', None)) @property def form_data(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, PrefillFormData): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PrefillFormData): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/property_metadata.py b/docusign_esign/models/property_metadata.py index c1439005..0cf49a83 100644 --- a/docusign_esign/models/property_metadata.py +++ b/docusign_esign/models/property_metadata.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PropertyMetadata(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class PropertyMetadata(object): 'rights': 'rights' } - def __init__(self, options=None, rights=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PropertyMetadata - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._options = None self._rights = None self.discriminator = None - if options is not None: - self.options = options - if rights is not None: - self.rights = rights + setattr(self, "_{}".format('options'), kwargs.get('options', None)) + setattr(self, "_{}".format('rights'), kwargs.get('rights', None)) @property def options(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, PropertyMetadata): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PropertyMetadata): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/province.py b/docusign_esign/models/province.py index 5abdb99b..230ffddf 100644 --- a/docusign_esign/models/province.py +++ b/docusign_esign/models/province.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Province(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class Province(object): 'name': 'name' } - def __init__(self, iso_code=None, name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Province - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._iso_code = None self._name = None self.discriminator = None - if iso_code is not None: - self.iso_code = iso_code - if name is not None: - self.name = name + setattr(self, "_{}".format('iso_code'), kwargs.get('iso_code', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) @property def iso_code(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, Province): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Province): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/provisioning_information.py b/docusign_esign/models/provisioning_information.py index eca8ed07..8819044e 100644 --- a/docusign_esign/models/provisioning_information.py +++ b/docusign_esign/models/provisioning_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ProvisioningInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class ProvisioningInformation(object): 'purchase_order_or_prom_allowed': 'purchaseOrderOrPromAllowed' } - def __init__(self, default_connection_id=None, default_plan_id=None, distributor_code=None, distributor_password=None, password_rule_text=None, plan_promotion_text=None, purchase_order_or_prom_allowed=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ProvisioningInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._default_connection_id = None self._default_plan_id = None @@ -62,20 +67,13 @@ def __init__(self, default_connection_id=None, default_plan_id=None, distributor self._purchase_order_or_prom_allowed = None self.discriminator = None - if default_connection_id is not None: - self.default_connection_id = default_connection_id - if default_plan_id is not None: - self.default_plan_id = default_plan_id - if distributor_code is not None: - self.distributor_code = distributor_code - if distributor_password is not None: - self.distributor_password = distributor_password - if password_rule_text is not None: - self.password_rule_text = password_rule_text - if plan_promotion_text is not None: - self.plan_promotion_text = plan_promotion_text - if purchase_order_or_prom_allowed is not None: - self.purchase_order_or_prom_allowed = purchase_order_or_prom_allowed + setattr(self, "_{}".format('default_connection_id'), kwargs.get('default_connection_id', None)) + setattr(self, "_{}".format('default_plan_id'), kwargs.get('default_plan_id', None)) + setattr(self, "_{}".format('distributor_code'), kwargs.get('distributor_code', None)) + setattr(self, "_{}".format('distributor_password'), kwargs.get('distributor_password', None)) + setattr(self, "_{}".format('password_rule_text'), kwargs.get('password_rule_text', None)) + setattr(self, "_{}".format('plan_promotion_text'), kwargs.get('plan_promotion_text', None)) + setattr(self, "_{}".format('purchase_order_or_prom_allowed'), kwargs.get('purchase_order_or_prom_allowed', None)) @property def default_connection_id(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, ProvisioningInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ProvisioningInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/purchased_envelopes_information.py b/docusign_esign/models/purchased_envelopes_information.py index 71356f66..c77c61eb 100644 --- a/docusign_esign/models/purchased_envelopes_information.py +++ b/docusign_esign/models/purchased_envelopes_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class PurchasedEnvelopesInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class PurchasedEnvelopesInformation(object): 'transaction_id': 'transactionId' } - def __init__(self, amount=None, app_name=None, currency_code=None, platform=None, product_id=None, quantity=None, receipt_data=None, store_name=None, transaction_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """PurchasedEnvelopesInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._amount = None self._app_name = None @@ -68,24 +73,15 @@ def __init__(self, amount=None, app_name=None, currency_code=None, platform=None self._transaction_id = None self.discriminator = None - if amount is not None: - self.amount = amount - if app_name is not None: - self.app_name = app_name - if currency_code is not None: - self.currency_code = currency_code - if platform is not None: - self.platform = platform - if product_id is not None: - self.product_id = product_id - if quantity is not None: - self.quantity = quantity - if receipt_data is not None: - self.receipt_data = receipt_data - if store_name is not None: - self.store_name = store_name - if transaction_id is not None: - self.transaction_id = transaction_id + setattr(self, "_{}".format('amount'), kwargs.get('amount', None)) + setattr(self, "_{}".format('app_name'), kwargs.get('app_name', None)) + setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) + setattr(self, "_{}".format('platform'), kwargs.get('platform', None)) + setattr(self, "_{}".format('product_id'), kwargs.get('product_id', None)) + setattr(self, "_{}".format('quantity'), kwargs.get('quantity', None)) + setattr(self, "_{}".format('receipt_data'), kwargs.get('receipt_data', None)) + setattr(self, "_{}".format('store_name'), kwargs.get('store_name', None)) + setattr(self, "_{}".format('transaction_id'), kwargs.get('transaction_id', None)) @property def amount(self): @@ -334,8 +330,11 @@ def __eq__(self, other): if not isinstance(other, PurchasedEnvelopesInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PurchasedEnvelopesInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/radio.py b/docusign_esign/models/radio.py index d24b4c6a..d33a8cb1 100644 --- a/docusign_esign/models/radio.py +++ b/docusign_esign/models/radio.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Radio(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -72,8 +74,11 @@ class Radio(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, error_details=None, locked=None, page_number=None, required=None, selected=None, tab_id=None, tab_order=None, value=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Radio - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -95,42 +100,24 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if error_details is not None: - self.error_details = error_details - if locked is not None: - self.locked = locked - if page_number is not None: - self.page_number = page_number - if required is not None: - self.required = required - if selected is not None: - self.selected = selected - if tab_id is not None: - self.tab_id = tab_id - if tab_order is not None: - self.tab_order = tab_order - if value is not None: - self.value = value - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('selected'), kwargs.get('selected', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -584,8 +571,11 @@ def __eq__(self, other): if not isinstance(other, Radio): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Radio): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/radio_group.py b/docusign_esign/models/radio_group.py index 2d56fed5..8217d607 100644 --- a/docusign_esign/models/radio_group.py +++ b/docusign_esign/models/radio_group.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RadioGroup(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class RadioGroup(object): 'tooltip': 'tooltip' } - def __init__(self, conditional_parent_label=None, conditional_parent_value=None, document_id=None, group_name=None, radios=None, recipient_id=None, require_all=None, require_initial_on_shared_change=None, shared=None, template_locked=None, template_required=None, tooltip=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RadioGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._conditional_parent_label = None self._conditional_parent_value = None @@ -77,30 +82,18 @@ def __init__(self, conditional_parent_label=None, conditional_parent_value=None, self._tooltip = None self.discriminator = None - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if document_id is not None: - self.document_id = document_id - if group_name is not None: - self.group_name = group_name - if radios is not None: - self.radios = radios - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if shared is not None: - self.shared = shared - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('group_name'), kwargs.get('group_name', None)) + setattr(self, "_{}".format('radios'), kwargs.get('radios', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) @property def conditional_parent_label(self): @@ -418,8 +411,11 @@ def __eq__(self, other): if not isinstance(other, RadioGroup): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RadioGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_attachment.py b/docusign_esign/models/recipient_attachment.py index f1eba27b..de77f180 100644 --- a/docusign_esign/models/recipient_attachment.py +++ b/docusign_esign/models/recipient_attachment.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientAttachment(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class RecipientAttachment(object): 'remote_url': 'remoteUrl' } - def __init__(self, attachment_id=None, attachment_type=None, data=None, label=None, name=None, remote_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientAttachment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._attachment_id = None self._attachment_type = None @@ -59,18 +64,12 @@ def __init__(self, attachment_id=None, attachment_type=None, data=None, label=No self._remote_url = None self.discriminator = None - if attachment_id is not None: - self.attachment_id = attachment_id - if attachment_type is not None: - self.attachment_type = attachment_type - if data is not None: - self.data = data - if label is not None: - self.label = label - if name is not None: - self.name = name - if remote_url is not None: - self.remote_url = remote_url + setattr(self, "_{}".format('attachment_id'), kwargs.get('attachment_id', None)) + setattr(self, "_{}".format('attachment_type'), kwargs.get('attachment_type', None)) + setattr(self, "_{}".format('data'), kwargs.get('data', None)) + setattr(self, "_{}".format('label'), kwargs.get('label', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('remote_url'), kwargs.get('remote_url', None)) @property def attachment_id(self): @@ -250,8 +249,11 @@ def __eq__(self, other): if not isinstance(other, RecipientAttachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientAttachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_domain.py b/docusign_esign/models/recipient_domain.py index 95d5e848..b7a0fa3a 100644 --- a/docusign_esign/models/recipient_domain.py +++ b/docusign_esign/models/recipient_domain.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientDomain(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class RecipientDomain(object): 'recipient_domain_id': 'recipientDomainId' } - def __init__(self, active=None, domain_code=None, domain_name=None, recipient_domain_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientDomain - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._active = None self._domain_code = None @@ -53,14 +58,10 @@ def __init__(self, active=None, domain_code=None, domain_name=None, recipient_do self._recipient_domain_id = None self.discriminator = None - if active is not None: - self.active = active - if domain_code is not None: - self.domain_code = domain_code - if domain_name is not None: - self.domain_name = domain_name - if recipient_domain_id is not None: - self.recipient_domain_id = recipient_domain_id + setattr(self, "_{}".format('active'), kwargs.get('active', None)) + setattr(self, "_{}".format('domain_code'), kwargs.get('domain_code', None)) + setattr(self, "_{}".format('domain_name'), kwargs.get('domain_name', None)) + setattr(self, "_{}".format('recipient_domain_id'), kwargs.get('recipient_domain_id', None)) @property def active(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, RecipientDomain): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientDomain): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_email_notification.py b/docusign_esign/models/recipient_email_notification.py index 96cad509..8a1e6a2a 100644 --- a/docusign_esign/models/recipient_email_notification.py +++ b/docusign_esign/models/recipient_email_notification.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientEmailNotification(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class RecipientEmailNotification(object): 'supported_language': 'supportedLanguage' } - def __init__(self, email_body=None, email_subject=None, supported_language=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientEmailNotification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email_body = None self._email_subject = None self._supported_language = None self.discriminator = None - if email_body is not None: - self.email_body = email_body - if email_subject is not None: - self.email_subject = email_subject - if supported_language is not None: - self.supported_language = supported_language + setattr(self, "_{}".format('email_body'), kwargs.get('email_body', None)) + setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None)) + setattr(self, "_{}".format('supported_language'), kwargs.get('supported_language', None)) @property def email_body(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, RecipientEmailNotification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientEmailNotification): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_event.py b/docusign_esign/models/recipient_event.py index 014ca209..53ae023f 100644 --- a/docusign_esign/models/recipient_event.py +++ b/docusign_esign/models/recipient_event.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientEvent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class RecipientEvent(object): 'recipient_event_status_code': 'recipientEventStatusCode' } - def __init__(self, include_documents=None, recipient_event_status_code=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientEvent - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._include_documents = None self._recipient_event_status_code = None self.discriminator = None - if include_documents is not None: - self.include_documents = include_documents - if recipient_event_status_code is not None: - self.recipient_event_status_code = recipient_event_status_code + setattr(self, "_{}".format('include_documents'), kwargs.get('include_documents', None)) + setattr(self, "_{}".format('recipient_event_status_code'), kwargs.get('recipient_event_status_code', None)) @property def include_documents(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, RecipientEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_form_data.py b/docusign_esign/models/recipient_form_data.py index eeb146da..e51c0209 100644 --- a/docusign_esign/models/recipient_form_data.py +++ b/docusign_esign/models/recipient_form_data.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientFormData(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class RecipientFormData(object): 'signed_time': 'signedTime' } - def __init__(self, declined_time=None, delivered_time=None, email=None, form_data=None, name=None, recipient_id=None, sent_time=None, signed_time=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientFormData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._declined_time = None self._delivered_time = None @@ -65,22 +70,14 @@ def __init__(self, declined_time=None, delivered_time=None, email=None, form_dat self._signed_time = None self.discriminator = None - if declined_time is not None: - self.declined_time = declined_time - if delivered_time is not None: - self.delivered_time = delivered_time - if email is not None: - self.email = email - if form_data is not None: - self.form_data = form_data - if name is not None: - self.name = name - if recipient_id is not None: - self.recipient_id = recipient_id - if sent_time is not None: - self.sent_time = sent_time - if signed_time is not None: - self.signed_time = signed_time + setattr(self, "_{}".format('declined_time'), kwargs.get('declined_time', None)) + setattr(self, "_{}".format('delivered_time'), kwargs.get('delivered_time', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('sent_time'), kwargs.get('sent_time', None)) + setattr(self, "_{}".format('signed_time'), kwargs.get('signed_time', None)) @property def declined_time(self): @@ -306,8 +303,11 @@ def __eq__(self, other): if not isinstance(other, RecipientFormData): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientFormData): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_identity_input_option.py b/docusign_esign/models/recipient_identity_input_option.py index aa0ffd77..bec2ef14 100644 --- a/docusign_esign/models/recipient_identity_input_option.py +++ b/docusign_esign/models/recipient_identity_input_option.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientIdentityInputOption(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class RecipientIdentityInputOption(object): 'value_type': 'valueType' } - def __init__(self, name=None, phone_number_list=None, value_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientIdentityInputOption - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._phone_number_list = None self._value_type = None self.discriminator = None - if name is not None: - self.name = name - if phone_number_list is not None: - self.phone_number_list = phone_number_list - if value_type is not None: - self.value_type = value_type + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('phone_number_list'), kwargs.get('phone_number_list', None)) + setattr(self, "_{}".format('value_type'), kwargs.get('value_type', None)) @property def name(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, RecipientIdentityInputOption): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientIdentityInputOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_identity_phone_number.py b/docusign_esign/models/recipient_identity_phone_number.py index 3b6bc8a4..967e810f 100644 --- a/docusign_esign/models/recipient_identity_phone_number.py +++ b/docusign_esign/models/recipient_identity_phone_number.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientIdentityPhoneNumber(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class RecipientIdentityPhoneNumber(object): 'number': 'number' } - def __init__(self, country_code=None, extension=None, number=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientIdentityPhoneNumber - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._country_code = None self._extension = None self._number = None self.discriminator = None - if country_code is not None: - self.country_code = country_code - if extension is not None: - self.extension = extension - if number is not None: - self.number = number + setattr(self, "_{}".format('country_code'), kwargs.get('country_code', None)) + setattr(self, "_{}".format('extension'), kwargs.get('extension', None)) + setattr(self, "_{}".format('number'), kwargs.get('number', None)) @property def country_code(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, RecipientIdentityPhoneNumber): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientIdentityPhoneNumber): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_identity_verification.py b/docusign_esign/models/recipient_identity_verification.py index 550b8026..efb8baf7 100644 --- a/docusign_esign/models/recipient_identity_verification.py +++ b/docusign_esign/models/recipient_identity_verification.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientIdentityVerification(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class RecipientIdentityVerification(object): 'workflow_id': 'workflowId' } - def __init__(self, input_options=None, workflow_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientIdentityVerification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._input_options = None self._workflow_id = None self.discriminator = None - if input_options is not None: - self.input_options = input_options - if workflow_id is not None: - self.workflow_id = workflow_id + setattr(self, "_{}".format('input_options'), kwargs.get('input_options', None)) + setattr(self, "_{}".format('workflow_id'), kwargs.get('workflow_id', None)) @property def input_options(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, RecipientIdentityVerification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientIdentityVerification): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_names_response.py b/docusign_esign/models/recipient_names_response.py index 921f89bd..934350fe 100644 --- a/docusign_esign/models/recipient_names_response.py +++ b/docusign_esign/models/recipient_names_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientNamesResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class RecipientNamesResponse(object): 'reserved_recipient_email': 'reservedRecipientEmail' } - def __init__(self, multiple_users=None, recipient_names=None, reserved_recipient_email=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientNamesResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._multiple_users = None self._recipient_names = None self._reserved_recipient_email = None self.discriminator = None - if multiple_users is not None: - self.multiple_users = multiple_users - if recipient_names is not None: - self.recipient_names = recipient_names - if reserved_recipient_email is not None: - self.reserved_recipient_email = reserved_recipient_email + setattr(self, "_{}".format('multiple_users'), kwargs.get('multiple_users', None)) + setattr(self, "_{}".format('recipient_names'), kwargs.get('recipient_names', None)) + setattr(self, "_{}".format('reserved_recipient_email'), kwargs.get('reserved_recipient_email', None)) @property def multiple_users(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, RecipientNamesResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientNamesResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_phone_authentication.py b/docusign_esign/models/recipient_phone_authentication.py index a0e58ac7..194a513a 100644 --- a/docusign_esign/models/recipient_phone_authentication.py +++ b/docusign_esign/models/recipient_phone_authentication.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientPhoneAuthentication(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class RecipientPhoneAuthentication(object): 'validate_recip_provided_number': 'validateRecipProvidedNumber' } - def __init__(self, recip_may_provide_number=None, record_voice_print=None, sender_provided_numbers=None, validate_recip_provided_number=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientPhoneAuthentication - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._recip_may_provide_number = None self._record_voice_print = None @@ -53,14 +58,10 @@ def __init__(self, recip_may_provide_number=None, record_voice_print=None, sende self._validate_recip_provided_number = None self.discriminator = None - if recip_may_provide_number is not None: - self.recip_may_provide_number = recip_may_provide_number - if record_voice_print is not None: - self.record_voice_print = record_voice_print - if sender_provided_numbers is not None: - self.sender_provided_numbers = sender_provided_numbers - if validate_recip_provided_number is not None: - self.validate_recip_provided_number = validate_recip_provided_number + setattr(self, "_{}".format('recip_may_provide_number'), kwargs.get('recip_may_provide_number', None)) + setattr(self, "_{}".format('record_voice_print'), kwargs.get('record_voice_print', None)) + setattr(self, "_{}".format('sender_provided_numbers'), kwargs.get('sender_provided_numbers', None)) + setattr(self, "_{}".format('validate_recip_provided_number'), kwargs.get('validate_recip_provided_number', None)) @property def recip_may_provide_number(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, RecipientPhoneAuthentication): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientPhoneAuthentication): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_proof_file.py b/docusign_esign/models/recipient_proof_file.py index f25428f0..70cbcc54 100644 --- a/docusign_esign/models/recipient_proof_file.py +++ b/docusign_esign/models/recipient_proof_file.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientProofFile(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,21 +33,50 @@ class RecipientProofFile(object): and the value is json key in definition. """ swagger_types = { + 'has_identity_attempts': 'str', 'is_in_proof_file': 'str' } attribute_map = { + 'has_identity_attempts': 'hasIdentityAttempts', 'is_in_proof_file': 'isInProofFile' } - def __init__(self, is_in_proof_file=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientProofFile - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._has_identity_attempts = None self._is_in_proof_file = None self.discriminator = None - if is_in_proof_file is not None: - self.is_in_proof_file = is_in_proof_file + setattr(self, "_{}".format('has_identity_attempts'), kwargs.get('has_identity_attempts', None)) + setattr(self, "_{}".format('is_in_proof_file'), kwargs.get('is_in_proof_file', None)) + + @property + def has_identity_attempts(self): + """Gets the has_identity_attempts of this RecipientProofFile. # noqa: E501 + + # noqa: E501 + + :return: The has_identity_attempts of this RecipientProofFile. # noqa: E501 + :rtype: str + """ + return self._has_identity_attempts + + @has_identity_attempts.setter + def has_identity_attempts(self, has_identity_attempts): + """Sets the has_identity_attempts of this RecipientProofFile. + + # noqa: E501 + + :param has_identity_attempts: The has_identity_attempts of this RecipientProofFile. # noqa: E501 + :type: str + """ + + self._has_identity_attempts = has_identity_attempts @property def is_in_proof_file(self): @@ -110,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, RecipientProofFile): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientProofFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_saml_authentication.py b/docusign_esign/models/recipient_saml_authentication.py index e8c52e5d..4175770e 100644 --- a/docusign_esign/models/recipient_saml_authentication.py +++ b/docusign_esign/models/recipient_saml_authentication.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientSAMLAuthentication(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class RecipientSAMLAuthentication(object): 'saml_assertion_attributes': 'samlAssertionAttributes' } - def __init__(self, saml_assertion_attributes=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientSAMLAuthentication - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._saml_assertion_attributes = None self.discriminator = None - if saml_assertion_attributes is not None: - self.saml_assertion_attributes = saml_assertion_attributes + setattr(self, "_{}".format('saml_assertion_attributes'), kwargs.get('saml_assertion_attributes', None)) @property def saml_assertion_attributes(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, RecipientSAMLAuthentication): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientSAMLAuthentication): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_signature_information.py b/docusign_esign/models/recipient_signature_information.py index a6c71ed2..dcdff193 100644 --- a/docusign_esign/models/recipient_signature_information.py +++ b/docusign_esign/models/recipient_signature_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientSignatureInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class RecipientSignatureInformation(object): 'signature_name': 'signatureName' } - def __init__(self, font_style=None, signature_initials=None, signature_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientSignatureInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._font_style = None self._signature_initials = None self._signature_name = None self.discriminator = None - if font_style is not None: - self.font_style = font_style - if signature_initials is not None: - self.signature_initials = signature_initials - if signature_name is not None: - self.signature_name = signature_name + setattr(self, "_{}".format('font_style'), kwargs.get('font_style', None)) + setattr(self, "_{}".format('signature_initials'), kwargs.get('signature_initials', None)) + setattr(self, "_{}".format('signature_name'), kwargs.get('signature_name', None)) @property def font_style(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, RecipientSignatureInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientSignatureInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_signature_provider.py b/docusign_esign/models/recipient_signature_provider.py index 58272d85..61bada22 100644 --- a/docusign_esign/models/recipient_signature_provider.py +++ b/docusign_esign/models/recipient_signature_provider.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientSignatureProvider(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class RecipientSignatureProvider(object): 'signature_provider_options': 'signatureProviderOptions' } - def __init__(self, seal_documents_with_tabs_only=None, seal_name=None, signature_provider_name=None, signature_provider_options=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientSignatureProvider - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._seal_documents_with_tabs_only = None self._seal_name = None @@ -53,14 +58,10 @@ def __init__(self, seal_documents_with_tabs_only=None, seal_name=None, signature self._signature_provider_options = None self.discriminator = None - if seal_documents_with_tabs_only is not None: - self.seal_documents_with_tabs_only = seal_documents_with_tabs_only - if seal_name is not None: - self.seal_name = seal_name - if signature_provider_name is not None: - self.signature_provider_name = signature_provider_name - if signature_provider_options is not None: - self.signature_provider_options = signature_provider_options + setattr(self, "_{}".format('seal_documents_with_tabs_only'), kwargs.get('seal_documents_with_tabs_only', None)) + setattr(self, "_{}".format('seal_name'), kwargs.get('seal_name', None)) + setattr(self, "_{}".format('signature_provider_name'), kwargs.get('signature_provider_name', None)) + setattr(self, "_{}".format('signature_provider_options'), kwargs.get('signature_provider_options', None)) @property def seal_documents_with_tabs_only(self): @@ -192,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, RecipientSignatureProvider): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientSignatureProvider): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_signature_provider_options.py b/docusign_esign/models/recipient_signature_provider_options.py index 17e8c6bb..cd11eb2c 100644 --- a/docusign_esign/models/recipient_signature_provider_options.py +++ b/docusign_esign/models/recipient_signature_provider_options.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientSignatureProviderOptions(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class RecipientSignatureProviderOptions(object): 'sms': 'sms' } - def __init__(self, cpf_number=None, one_time_password=None, signer_role=None, sms=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientSignatureProviderOptions - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cpf_number = None self._one_time_password = None @@ -53,14 +58,10 @@ def __init__(self, cpf_number=None, one_time_password=None, signer_role=None, sm self._sms = None self.discriminator = None - if cpf_number is not None: - self.cpf_number = cpf_number - if one_time_password is not None: - self.one_time_password = one_time_password - if signer_role is not None: - self.signer_role = signer_role - if sms is not None: - self.sms = sms + setattr(self, "_{}".format('cpf_number'), kwargs.get('cpf_number', None)) + setattr(self, "_{}".format('one_time_password'), kwargs.get('one_time_password', None)) + setattr(self, "_{}".format('signer_role'), kwargs.get('signer_role', None)) + setattr(self, "_{}".format('sms'), kwargs.get('sms', None)) @property def cpf_number(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, RecipientSignatureProviderOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientSignatureProviderOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_sms_authentication.py b/docusign_esign/models/recipient_sms_authentication.py index a3eca748..da3a5b44 100644 --- a/docusign_esign/models/recipient_sms_authentication.py +++ b/docusign_esign/models/recipient_sms_authentication.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientSMSAuthentication(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class RecipientSMSAuthentication(object): 'sender_provided_numbers': 'senderProvidedNumbers' } - def __init__(self, sender_provided_numbers=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientSMSAuthentication - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._sender_provided_numbers = None self.discriminator = None - if sender_provided_numbers is not None: - self.sender_provided_numbers = sender_provided_numbers + setattr(self, "_{}".format('sender_provided_numbers'), kwargs.get('sender_provided_numbers', None)) @property def sender_provided_numbers(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, RecipientSMSAuthentication): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientSMSAuthentication): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_update_response.py b/docusign_esign/models/recipient_update_response.py index 28dd3161..d3547312 100644 --- a/docusign_esign/models/recipient_update_response.py +++ b/docusign_esign/models/recipient_update_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientUpdateResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class RecipientUpdateResponse(object): 'tabs': 'tabs' } - def __init__(self, error_details=None, recipient_id=None, tabs=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientUpdateResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._recipient_id = None self._tabs = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if recipient_id is not None: - self.recipient_id = recipient_id - if tabs is not None: - self.tabs = tabs + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) @property def error_details(self): @@ -162,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, RecipientUpdateResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientUpdateResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipient_view_request.py b/docusign_esign/models/recipient_view_request.py index 46ee05a4..d3e4fa0d 100644 --- a/docusign_esign/models/recipient_view_request.py +++ b/docusign_esign/models/recipient_view_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientViewRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class RecipientViewRequest(object): 'x_frame_options_allow_from_url': 'xFrameOptionsAllowFromUrl' } - def __init__(self, assertion_id=None, authentication_instant=None, authentication_method=None, client_user_id=None, email=None, frame_ancestors=None, message_origins=None, ping_frequency=None, ping_url=None, recipient_id=None, return_url=None, security_domain=None, user_id=None, user_name=None, x_frame_options=None, x_frame_options_allow_from_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientViewRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._assertion_id = None self._authentication_instant = None @@ -89,38 +94,22 @@ def __init__(self, assertion_id=None, authentication_instant=None, authenticatio self._x_frame_options_allow_from_url = None self.discriminator = None - if assertion_id is not None: - self.assertion_id = assertion_id - if authentication_instant is not None: - self.authentication_instant = authentication_instant - if authentication_method is not None: - self.authentication_method = authentication_method - if client_user_id is not None: - self.client_user_id = client_user_id - if email is not None: - self.email = email - if frame_ancestors is not None: - self.frame_ancestors = frame_ancestors - if message_origins is not None: - self.message_origins = message_origins - if ping_frequency is not None: - self.ping_frequency = ping_frequency - if ping_url is not None: - self.ping_url = ping_url - if recipient_id is not None: - self.recipient_id = recipient_id - if return_url is not None: - self.return_url = return_url - if security_domain is not None: - self.security_domain = security_domain - if user_id is not None: - self.user_id = user_id - if user_name is not None: - self.user_name = user_name - if x_frame_options is not None: - self.x_frame_options = x_frame_options - if x_frame_options_allow_from_url is not None: - self.x_frame_options_allow_from_url = x_frame_options_allow_from_url + setattr(self, "_{}".format('assertion_id'), kwargs.get('assertion_id', None)) + setattr(self, "_{}".format('authentication_instant'), kwargs.get('authentication_instant', None)) + setattr(self, "_{}".format('authentication_method'), kwargs.get('authentication_method', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('frame_ancestors'), kwargs.get('frame_ancestors', None)) + setattr(self, "_{}".format('message_origins'), kwargs.get('message_origins', None)) + setattr(self, "_{}".format('ping_frequency'), kwargs.get('ping_frequency', None)) + setattr(self, "_{}".format('ping_url'), kwargs.get('ping_url', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('return_url'), kwargs.get('return_url', None)) + setattr(self, "_{}".format('security_domain'), kwargs.get('security_domain', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) + setattr(self, "_{}".format('x_frame_options'), kwargs.get('x_frame_options', None)) + setattr(self, "_{}".format('x_frame_options_allow_from_url'), kwargs.get('x_frame_options_allow_from_url', None)) @property def assertion_id(self): @@ -530,8 +519,11 @@ def __eq__(self, other): if not isinstance(other, RecipientViewRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientViewRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipients.py b/docusign_esign/models/recipients.py index dd890bd4..77479656 100644 --- a/docusign_esign/models/recipients.py +++ b/docusign_esign/models/recipients.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Recipients(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class Recipients(object): 'witnesses': 'witnesses' } - def __init__(self, agents=None, carbon_copies=None, certified_deliveries=None, current_routing_order=None, editors=None, error_details=None, in_person_signers=None, intermediaries=None, recipient_count=None, seals=None, signers=None, witnesses=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Recipients - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._agents = None self._carbon_copies = None @@ -77,30 +82,18 @@ def __init__(self, agents=None, carbon_copies=None, certified_deliveries=None, c self._witnesses = None self.discriminator = None - if agents is not None: - self.agents = agents - if carbon_copies is not None: - self.carbon_copies = carbon_copies - if certified_deliveries is not None: - self.certified_deliveries = certified_deliveries - if current_routing_order is not None: - self.current_routing_order = current_routing_order - if editors is not None: - self.editors = editors - if error_details is not None: - self.error_details = error_details - if in_person_signers is not None: - self.in_person_signers = in_person_signers - if intermediaries is not None: - self.intermediaries = intermediaries - if recipient_count is not None: - self.recipient_count = recipient_count - if seals is not None: - self.seals = seals - if signers is not None: - self.signers = signers - if witnesses is not None: - self.witnesses = witnesses + setattr(self, "_{}".format('agents'), kwargs.get('agents', None)) + setattr(self, "_{}".format('carbon_copies'), kwargs.get('carbon_copies', None)) + setattr(self, "_{}".format('certified_deliveries'), kwargs.get('certified_deliveries', None)) + setattr(self, "_{}".format('current_routing_order'), kwargs.get('current_routing_order', None)) + setattr(self, "_{}".format('editors'), kwargs.get('editors', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('in_person_signers'), kwargs.get('in_person_signers', None)) + setattr(self, "_{}".format('intermediaries'), kwargs.get('intermediaries', None)) + setattr(self, "_{}".format('recipient_count'), kwargs.get('recipient_count', None)) + setattr(self, "_{}".format('seals'), kwargs.get('seals', None)) + setattr(self, "_{}".format('signers'), kwargs.get('signers', None)) + setattr(self, "_{}".format('witnesses'), kwargs.get('witnesses', None)) @property def agents(self): @@ -416,8 +409,11 @@ def __eq__(self, other): if not isinstance(other, Recipients): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Recipients): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/recipients_update_summary.py b/docusign_esign/models/recipients_update_summary.py index 51e1ad29..ac2bf4d4 100644 --- a/docusign_esign/models/recipients_update_summary.py +++ b/docusign_esign/models/recipients_update_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class RecipientsUpdateSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class RecipientsUpdateSummary(object): 'recipient_update_results': 'recipientUpdateResults' } - def __init__(self, recipient_update_results=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """RecipientsUpdateSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._recipient_update_results = None self.discriminator = None - if recipient_update_results is not None: - self.recipient_update_results = recipient_update_results + setattr(self, "_{}".format('recipient_update_results'), kwargs.get('recipient_update_results', None)) @property def recipient_update_results(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, RecipientsUpdateSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RecipientsUpdateSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/referral_information.py b/docusign_esign/models/referral_information.py index 62af7a06..ec122de3 100644 --- a/docusign_esign/models/referral_information.py +++ b/docusign_esign/models/referral_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ReferralInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -72,8 +74,11 @@ class ReferralInformation(object): 'shopper_id': 'shopperId' } - def __init__(self, advertisement_id=None, enable_support=None, external_org_id=None, group_member_id=None, id_type=None, included_seats=None, industry=None, plan_start_month=None, promo_code=None, publisher_id=None, referral_code=None, referrer_name=None, sale_discount_amount=None, sale_discount_fixed_amount=None, sale_discount_percent=None, sale_discount_periods=None, sale_discount_seat_price_override=None, shopper_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ReferralInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._advertisement_id = None self._enable_support = None @@ -95,42 +100,24 @@ def __init__(self, advertisement_id=None, enable_support=None, external_org_id=N self._shopper_id = None self.discriminator = None - if advertisement_id is not None: - self.advertisement_id = advertisement_id - if enable_support is not None: - self.enable_support = enable_support - if external_org_id is not None: - self.external_org_id = external_org_id - if group_member_id is not None: - self.group_member_id = group_member_id - if id_type is not None: - self.id_type = id_type - if included_seats is not None: - self.included_seats = included_seats - if industry is not None: - self.industry = industry - if plan_start_month is not None: - self.plan_start_month = plan_start_month - if promo_code is not None: - self.promo_code = promo_code - if publisher_id is not None: - self.publisher_id = publisher_id - if referral_code is not None: - self.referral_code = referral_code - if referrer_name is not None: - self.referrer_name = referrer_name - if sale_discount_amount is not None: - self.sale_discount_amount = sale_discount_amount - if sale_discount_fixed_amount is not None: - self.sale_discount_fixed_amount = sale_discount_fixed_amount - if sale_discount_percent is not None: - self.sale_discount_percent = sale_discount_percent - if sale_discount_periods is not None: - self.sale_discount_periods = sale_discount_periods - if sale_discount_seat_price_override is not None: - self.sale_discount_seat_price_override = sale_discount_seat_price_override - if shopper_id is not None: - self.shopper_id = shopper_id + setattr(self, "_{}".format('advertisement_id'), kwargs.get('advertisement_id', None)) + setattr(self, "_{}".format('enable_support'), kwargs.get('enable_support', None)) + setattr(self, "_{}".format('external_org_id'), kwargs.get('external_org_id', None)) + setattr(self, "_{}".format('group_member_id'), kwargs.get('group_member_id', None)) + setattr(self, "_{}".format('id_type'), kwargs.get('id_type', None)) + setattr(self, "_{}".format('included_seats'), kwargs.get('included_seats', None)) + setattr(self, "_{}".format('industry'), kwargs.get('industry', None)) + setattr(self, "_{}".format('plan_start_month'), kwargs.get('plan_start_month', None)) + setattr(self, "_{}".format('promo_code'), kwargs.get('promo_code', None)) + setattr(self, "_{}".format('publisher_id'), kwargs.get('publisher_id', None)) + setattr(self, "_{}".format('referral_code'), kwargs.get('referral_code', None)) + setattr(self, "_{}".format('referrer_name'), kwargs.get('referrer_name', None)) + setattr(self, "_{}".format('sale_discount_amount'), kwargs.get('sale_discount_amount', None)) + setattr(self, "_{}".format('sale_discount_fixed_amount'), kwargs.get('sale_discount_fixed_amount', None)) + setattr(self, "_{}".format('sale_discount_percent'), kwargs.get('sale_discount_percent', None)) + setattr(self, "_{}".format('sale_discount_periods'), kwargs.get('sale_discount_periods', None)) + setattr(self, "_{}".format('sale_discount_seat_price_override'), kwargs.get('sale_discount_seat_price_override', None)) + setattr(self, "_{}".format('shopper_id'), kwargs.get('shopper_id', None)) @property def advertisement_id(self): @@ -586,8 +573,11 @@ def __eq__(self, other): if not isinstance(other, ReferralInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ReferralInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/reminders.py b/docusign_esign/models/reminders.py index f5ad303a..786d5388 100644 --- a/docusign_esign/models/reminders.py +++ b/docusign_esign/models/reminders.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Reminders(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class Reminders(object): 'reminder_frequency': 'reminderFrequency' } - def __init__(self, reminder_delay=None, reminder_enabled=None, reminder_frequency=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Reminders - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._reminder_delay = None self._reminder_enabled = None self._reminder_frequency = None self.discriminator = None - if reminder_delay is not None: - self.reminder_delay = reminder_delay - if reminder_enabled is not None: - self.reminder_enabled = reminder_enabled - if reminder_frequency is not None: - self.reminder_frequency = reminder_frequency + setattr(self, "_{}".format('reminder_delay'), kwargs.get('reminder_delay', None)) + setattr(self, "_{}".format('reminder_enabled'), kwargs.get('reminder_enabled', None)) + setattr(self, "_{}".format('reminder_frequency'), kwargs.get('reminder_frequency', None)) @property def reminder_delay(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, Reminders): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Reminders): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/resource_information.py b/docusign_esign/models/resource_information.py index 934d5294..53806f0a 100644 --- a/docusign_esign/models/resource_information.py +++ b/docusign_esign/models/resource_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ResourceInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ResourceInformation(object): 'resources': 'resources' } - def __init__(self, resources=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ResourceInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._resources = None self.discriminator = None - if resources is not None: - self.resources = resources + setattr(self, "_{}".format('resources'), kwargs.get('resources', None)) @property def resources(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ResourceInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ResourceInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/return_url_request.py b/docusign_esign/models/return_url_request.py index fccf8e21..ea14b3e3 100644 --- a/docusign_esign/models/return_url_request.py +++ b/docusign_esign/models/return_url_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ReturnUrlRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ReturnUrlRequest(object): 'return_url': 'returnUrl' } - def __init__(self, return_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ReturnUrlRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._return_url = None self.discriminator = None - if return_url is not None: - self.return_url = return_url + setattr(self, "_{}".format('return_url'), kwargs.get('return_url', None)) @property def return_url(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ReturnUrlRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ReturnUrlRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/saml_assertion_attribute.py b/docusign_esign/models/saml_assertion_attribute.py index 4570ffcf..0c7ec78c 100644 --- a/docusign_esign/models/saml_assertion_attribute.py +++ b/docusign_esign/models/saml_assertion_attribute.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SamlAssertionAttribute(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class SamlAssertionAttribute(object): 'value': 'value' } - def __init__(self, error_details=None, name=None, original_value=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SamlAssertionAttribute - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._name = None @@ -53,14 +58,10 @@ def __init__(self, error_details=None, name=None, original_value=None, value=Non self._value = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if value is not None: - self.value = value + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def error_details(self): @@ -192,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, SamlAssertionAttribute): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlAssertionAttribute): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/seal_identifier.py b/docusign_esign/models/seal_identifier.py index b9a47d44..2171cdbe 100644 --- a/docusign_esign/models/seal_identifier.py +++ b/docusign_esign/models/seal_identifier.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SealIdentifier(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class SealIdentifier(object): 'seal_name': 'sealName' } - def __init__(self, seal_display_name=None, seal_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SealIdentifier - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._seal_display_name = None self._seal_name = None self.discriminator = None - if seal_display_name is not None: - self.seal_display_name = seal_display_name - if seal_name is not None: - self.seal_name = seal_name + setattr(self, "_{}".format('seal_display_name'), kwargs.get('seal_display_name', None)) + setattr(self, "_{}".format('seal_name'), kwargs.get('seal_name', None)) @property def seal_display_name(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, SealIdentifier): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SealIdentifier): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/seal_sign.py b/docusign_esign/models/seal_sign.py index fa03ad4a..dadfbdf4 100644 --- a/docusign_esign/models/seal_sign.py +++ b/docusign_esign/models/seal_sign.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SealSign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -114,8 +116,11 @@ class SealSign(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, client_user_id=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email_notification=None, embedded_recipient_start_url=None, error_details=None, fax_number=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, name=None, note=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, recipient_signature_providers=None, require_id_lookup=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signed_date_time=None, sms_authentication=None, social_authentications=None, status=None, tabs=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SealSign - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -158,84 +163,45 @@ def __init__(self, access_code=None, add_access_code_to_email=None, client_user_ self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if client_user_id is not None: - self.client_user_id = client_user_id - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email_notification is not None: - self.email_notification = email_notification - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if fax_number is not None: - self.fax_number = fax_number - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if name is not None: - self.name = name - if note is not None: - self.note = note - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if recipient_signature_providers is not None: - self.recipient_signature_providers = recipient_signature_providers - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if tabs is not None: - self.tabs = tabs - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('recipient_signature_providers'), kwargs.get('recipient_signature_providers', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1156,8 +1122,11 @@ def __eq__(self, other): if not isinstance(other, SealSign): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SealSign): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/seat_discount.py b/docusign_esign/models/seat_discount.py index 5babc227..fa4997c0 100644 --- a/docusign_esign/models/seat_discount.py +++ b/docusign_esign/models/seat_discount.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SeatDiscount(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class SeatDiscount(object): 'end_seat_count': 'endSeatCount' } - def __init__(self, begin_seat_count=None, discount_percent=None, end_seat_count=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SeatDiscount - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._begin_seat_count = None self._discount_percent = None self._end_seat_count = None self.discriminator = None - if begin_seat_count is not None: - self.begin_seat_count = begin_seat_count - if discount_percent is not None: - self.discount_percent = discount_percent - if end_seat_count is not None: - self.end_seat_count = end_seat_count + setattr(self, "_{}".format('begin_seat_count'), kwargs.get('begin_seat_count', None)) + setattr(self, "_{}".format('discount_percent'), kwargs.get('discount_percent', None)) + setattr(self, "_{}".format('end_seat_count'), kwargs.get('end_seat_count', None)) @property def begin_seat_count(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, SeatDiscount): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SeatDiscount): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/sender_email_notifications.py b/docusign_esign/models/sender_email_notifications.py index 6a16e4e9..a1285f1b 100644 --- a/docusign_esign/models/sender_email_notifications.py +++ b/docusign_esign/models/sender_email_notifications.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SenderEmailNotifications(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class SenderEmailNotifications(object): 'withdrawn_consent': 'withdrawnConsent' } - def __init__(self, changed_signer=None, comments_only_private_and_mention=None, comments_receive_all=None, delivery_failed=None, envelope_complete=None, offline_signing_failed=None, powerform_responses_limit_notification_email=None, recipient_viewed=None, sender_envelope_declined=None, withdrawn_consent=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SenderEmailNotifications - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._changed_signer = None self._comments_only_private_and_mention = None @@ -71,26 +76,16 @@ def __init__(self, changed_signer=None, comments_only_private_and_mention=None, self._withdrawn_consent = None self.discriminator = None - if changed_signer is not None: - self.changed_signer = changed_signer - if comments_only_private_and_mention is not None: - self.comments_only_private_and_mention = comments_only_private_and_mention - if comments_receive_all is not None: - self.comments_receive_all = comments_receive_all - if delivery_failed is not None: - self.delivery_failed = delivery_failed - if envelope_complete is not None: - self.envelope_complete = envelope_complete - if offline_signing_failed is not None: - self.offline_signing_failed = offline_signing_failed - if powerform_responses_limit_notification_email is not None: - self.powerform_responses_limit_notification_email = powerform_responses_limit_notification_email - if recipient_viewed is not None: - self.recipient_viewed = recipient_viewed - if sender_envelope_declined is not None: - self.sender_envelope_declined = sender_envelope_declined - if withdrawn_consent is not None: - self.withdrawn_consent = withdrawn_consent + setattr(self, "_{}".format('changed_signer'), kwargs.get('changed_signer', None)) + setattr(self, "_{}".format('comments_only_private_and_mention'), kwargs.get('comments_only_private_and_mention', None)) + setattr(self, "_{}".format('comments_receive_all'), kwargs.get('comments_receive_all', None)) + setattr(self, "_{}".format('delivery_failed'), kwargs.get('delivery_failed', None)) + setattr(self, "_{}".format('envelope_complete'), kwargs.get('envelope_complete', None)) + setattr(self, "_{}".format('offline_signing_failed'), kwargs.get('offline_signing_failed', None)) + setattr(self, "_{}".format('powerform_responses_limit_notification_email'), kwargs.get('powerform_responses_limit_notification_email', None)) + setattr(self, "_{}".format('recipient_viewed'), kwargs.get('recipient_viewed', None)) + setattr(self, "_{}".format('sender_envelope_declined'), kwargs.get('sender_envelope_declined', None)) + setattr(self, "_{}".format('withdrawn_consent'), kwargs.get('withdrawn_consent', None)) @property def changed_signer(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, SenderEmailNotifications): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SenderEmailNotifications): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/server_template.py b/docusign_esign/models/server_template.py index d4a80d46..5d070650 100644 --- a/docusign_esign/models/server_template.py +++ b/docusign_esign/models/server_template.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ServerTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ServerTemplate(object): 'template_id': 'templateId' } - def __init__(self, sequence=None, template_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ServerTemplate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._sequence = None self._template_id = None self.discriminator = None - if sequence is not None: - self.sequence = sequence - if template_id is not None: - self.template_id = template_id + setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) @property def sequence(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ServerTemplate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ServerTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/service_information.py b/docusign_esign/models/service_information.py index cf981a9f..3e11f92e 100644 --- a/docusign_esign/models/service_information.py +++ b/docusign_esign/models/service_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ServiceInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class ServiceInformation(object): 'service_versions': 'serviceVersions' } - def __init__(self, build_branch=None, build_branch_deployed_date_time=None, build_sha=None, build_version=None, linked_sites=None, service_versions=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ServiceInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._build_branch = None self._build_branch_deployed_date_time = None @@ -59,18 +64,12 @@ def __init__(self, build_branch=None, build_branch_deployed_date_time=None, buil self._service_versions = None self.discriminator = None - if build_branch is not None: - self.build_branch = build_branch - if build_branch_deployed_date_time is not None: - self.build_branch_deployed_date_time = build_branch_deployed_date_time - if build_sha is not None: - self.build_sha = build_sha - if build_version is not None: - self.build_version = build_version - if linked_sites is not None: - self.linked_sites = linked_sites - if service_versions is not None: - self.service_versions = service_versions + setattr(self, "_{}".format('build_branch'), kwargs.get('build_branch', None)) + setattr(self, "_{}".format('build_branch_deployed_date_time'), kwargs.get('build_branch_deployed_date_time', None)) + setattr(self, "_{}".format('build_sha'), kwargs.get('build_sha', None)) + setattr(self, "_{}".format('build_version'), kwargs.get('build_version', None)) + setattr(self, "_{}".format('linked_sites'), kwargs.get('linked_sites', None)) + setattr(self, "_{}".format('service_versions'), kwargs.get('service_versions', None)) @property def build_branch(self): @@ -250,8 +249,11 @@ def __eq__(self, other): if not isinstance(other, ServiceInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ServiceInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/service_version.py b/docusign_esign/models/service_version.py index 0649b622..6dd75b46 100644 --- a/docusign_esign/models/service_version.py +++ b/docusign_esign/models/service_version.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ServiceVersion(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class ServiceVersion(object): 'version_url': 'versionUrl' } - def __init__(self, version=None, version_url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ServiceVersion - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._version = None self._version_url = None self.discriminator = None - if version is not None: - self.version = version - if version_url is not None: - self.version_url = version_url + setattr(self, "_{}".format('version'), kwargs.get('version', None)) + setattr(self, "_{}".format('version_url'), kwargs.get('version_url', None)) @property def version(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ServiceVersion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ServiceVersion): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/settings_metadata.py b/docusign_esign/models/settings_metadata.py index 29023ec7..538d7b0a 100644 --- a/docusign_esign/models/settings_metadata.py +++ b/docusign_esign/models/settings_metadata.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SettingsMetadata(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -48,8 +50,11 @@ class SettingsMetadata(object): 'ui_type': 'uiType' } - def __init__(self, is21_cfr_part11=None, options=None, rights=None, ui_hint=None, ui_order=None, ui_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SettingsMetadata - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._is21_cfr_part11 = None self._options = None @@ -59,18 +64,12 @@ def __init__(self, is21_cfr_part11=None, options=None, rights=None, ui_hint=None self._ui_type = None self.discriminator = None - if is21_cfr_part11 is not None: - self.is21_cfr_part11 = is21_cfr_part11 - if options is not None: - self.options = options - if rights is not None: - self.rights = rights - if ui_hint is not None: - self.ui_hint = ui_hint - if ui_order is not None: - self.ui_order = ui_order - if ui_type is not None: - self.ui_type = ui_type + setattr(self, "_{}".format('is21_cfr_part11'), kwargs.get('is21_cfr_part11', None)) + setattr(self, "_{}".format('options'), kwargs.get('options', None)) + setattr(self, "_{}".format('rights'), kwargs.get('rights', None)) + setattr(self, "_{}".format('ui_hint'), kwargs.get('ui_hint', None)) + setattr(self, "_{}".format('ui_order'), kwargs.get('ui_order', None)) + setattr(self, "_{}".format('ui_type'), kwargs.get('ui_type', None)) @property def is21_cfr_part11(self): @@ -250,8 +249,11 @@ def __eq__(self, other): if not isinstance(other, SettingsMetadata): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SettingsMetadata): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/shared_item.py b/docusign_esign/models/shared_item.py index 5dde8424..61f40693 100644 --- a/docusign_esign/models/shared_item.py +++ b/docusign_esign/models/shared_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SharedItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class SharedItem(object): 'user': 'user' } - def __init__(self, error_details=None, shared=None, user=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SharedItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._shared = None self._user = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if shared is not None: - self.shared = shared - if user is not None: - self.user = user + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('user'), kwargs.get('user', None)) @property def error_details(self): @@ -162,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, SharedItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SharedItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/sign_here.py b/docusign_esign/models/sign_here.py index ad872a19..e98e915b 100644 --- a/docusign_esign/models/sign_here.py +++ b/docusign_esign/models/sign_here.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SignHere(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -98,8 +100,11 @@ class SignHere(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, merge_field=None, name=None, optional=None, page_number=None, recipient_id=None, scale_value=None, stamp_type=None, stamp_type_metadata=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SignHere - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -134,68 +139,37 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if optional is not None: - self.optional = optional - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if scale_value is not None: - self.scale_value = scale_value - if stamp_type is not None: - self.stamp_type = stamp_type - if stamp_type_metadata is not None: - self.stamp_type_metadata = stamp_type_metadata - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('optional'), kwargs.get('optional', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('scale_value'), kwargs.get('scale_value', None)) + setattr(self, "_{}".format('stamp_type'), kwargs.get('stamp_type', None)) + setattr(self, "_{}".format('stamp_type_metadata'), kwargs.get('stamp_type_metadata', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -944,8 +918,11 @@ def __eq__(self, other): if not isinstance(other, SignHere): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SignHere): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signature_provider_required_option.py b/docusign_esign/models/signature_provider_required_option.py index 7cdb9ddc..b3d1de5f 100644 --- a/docusign_esign/models/signature_provider_required_option.py +++ b/docusign_esign/models/signature_provider_required_option.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SignatureProviderRequiredOption(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class SignatureProviderRequiredOption(object): 'signer_type': 'signerType' } - def __init__(self, required_signature_provider_option_ids=None, signer_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SignatureProviderRequiredOption - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._required_signature_provider_option_ids = None self._signer_type = None self.discriminator = None - if required_signature_provider_option_ids is not None: - self.required_signature_provider_option_ids = required_signature_provider_option_ids - if signer_type is not None: - self.signer_type = signer_type + setattr(self, "_{}".format('required_signature_provider_option_ids'), kwargs.get('required_signature_provider_option_ids', None)) + setattr(self, "_{}".format('signer_type'), kwargs.get('signer_type', None)) @property def required_signature_provider_option_ids(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, SignatureProviderRequiredOption): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SignatureProviderRequiredOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signature_type.py b/docusign_esign/models/signature_type.py index 829d3c7f..17418dc7 100644 --- a/docusign_esign/models/signature_type.py +++ b/docusign_esign/models/signature_type.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SignatureType(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class SignatureType(object): 'type': 'type' } - def __init__(self, is_default=None, type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SignatureType - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._is_default = None self._type = None self.discriminator = None - if is_default is not None: - self.is_default = is_default - if type is not None: - self.type = type + setattr(self, "_{}".format('is_default'), kwargs.get('is_default', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) @property def is_default(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, SignatureType): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SignatureType): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signer.py b/docusign_esign/models/signer.py index 1efc9fba..d48412aa 100644 --- a/docusign_esign/models/signer.py +++ b/docusign_esign/models/signer.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Signer(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -162,8 +164,11 @@ class Signer(object): 'user_id': 'userId' } - def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_edit_email=None, agent_can_edit_name=None, auto_navigation=None, bulk_recipients_uri=None, can_sign_offline=None, client_user_id=None, creation_reason=None, custom_fields=None, declined_date_time=None, declined_reason=None, default_recipient=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, is_bulk_recipient=None, last_name=None, name=None, note=None, offline_attributes=None, phone_authentication=None, proof_file=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, recipient_signature_providers=None, recipient_supplies_tabs=None, require_id_lookup=None, require_signer_certificate=None, require_sign_on_paper=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signature_info=None, signed_date_time=None, sign_in_each_location=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, tabs=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Signer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -230,132 +235,69 @@ def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_ed self._user_id = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if agent_can_edit_email is not None: - self.agent_can_edit_email = agent_can_edit_email - if agent_can_edit_name is not None: - self.agent_can_edit_name = agent_can_edit_name - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if bulk_recipients_uri is not None: - self.bulk_recipients_uri = bulk_recipients_uri - if can_sign_offline is not None: - self.can_sign_offline = can_sign_offline - if client_user_id is not None: - self.client_user_id = client_user_id - if creation_reason is not None: - self.creation_reason = creation_reason - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if default_recipient is not None: - self.default_recipient = default_recipient - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if is_bulk_recipient is not None: - self.is_bulk_recipient = is_bulk_recipient - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if offline_attributes is not None: - self.offline_attributes = offline_attributes - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if proof_file is not None: - self.proof_file = proof_file - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if recipient_signature_providers is not None: - self.recipient_signature_providers = recipient_signature_providers - if recipient_supplies_tabs is not None: - self.recipient_supplies_tabs = recipient_supplies_tabs - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if require_signer_certificate is not None: - self.require_signer_certificate = require_signer_certificate - if require_sign_on_paper is not None: - self.require_sign_on_paper = require_sign_on_paper - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signature_info is not None: - self.signature_info = signature_info - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if sign_in_each_location is not None: - self.sign_in_each_location = sign_in_each_location - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if tabs is not None: - self.tabs = tabs - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('agent_can_edit_email'), kwargs.get('agent_can_edit_email', None)) + setattr(self, "_{}".format('agent_can_edit_name'), kwargs.get('agent_can_edit_name', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('bulk_recipients_uri'), kwargs.get('bulk_recipients_uri', None)) + setattr(self, "_{}".format('can_sign_offline'), kwargs.get('can_sign_offline', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('creation_reason'), kwargs.get('creation_reason', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('default_recipient'), kwargs.get('default_recipient', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('is_bulk_recipient'), kwargs.get('is_bulk_recipient', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('offline_attributes'), kwargs.get('offline_attributes', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('proof_file'), kwargs.get('proof_file', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('recipient_signature_providers'), kwargs.get('recipient_signature_providers', None)) + setattr(self, "_{}".format('recipient_supplies_tabs'), kwargs.get('recipient_supplies_tabs', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('require_signer_certificate'), kwargs.get('require_signer_certificate', None)) + setattr(self, "_{}".format('require_sign_on_paper'), kwargs.get('require_sign_on_paper', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signature_info'), kwargs.get('signature_info', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('sign_in_each_location'), kwargs.get('sign_in_each_location', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def access_code(self): @@ -1822,8 +1764,11 @@ def __eq__(self, other): if not isinstance(other, Signer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Signer): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signer_attachment.py b/docusign_esign/models/signer_attachment.py index 4931e7f9..10782366 100644 --- a/docusign_esign/models/signer_attachment.py +++ b/docusign_esign/models/signer_attachment.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SignerAttachment(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -94,8 +96,11 @@ class SignerAttachment(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, merge_field=None, name=None, optional=None, page_number=None, recipient_id=None, scale_value=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SignerAttachment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -128,64 +133,35 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if optional is not None: - self.optional = optional - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if scale_value is not None: - self.scale_value = scale_value - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('optional'), kwargs.get('optional', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('scale_value'), kwargs.get('scale_value', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -890,8 +866,11 @@ def __eq__(self, other): if not isinstance(other, SignerAttachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SignerAttachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signer_email_notifications.py b/docusign_esign/models/signer_email_notifications.py index 99eae8be..4dfe4c9a 100644 --- a/docusign_esign/models/signer_email_notifications.py +++ b/docusign_esign/models/signer_email_notifications.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SignerEmailNotifications(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class SignerEmailNotifications(object): 'when_signing_group_member': 'whenSigningGroupMember' } - def __init__(self, agent_notification=None, carbon_copy_notification=None, certified_delivery_notification=None, comments_only_private_and_mention=None, comments_receive_all=None, document_markup_activation=None, envelope_activation=None, envelope_complete=None, envelope_corrected=None, envelope_declined=None, envelope_voided=None, fax_received=None, offline_signing_failed=None, purge_documents=None, reassigned_signer=None, when_signing_group_member=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SignerEmailNotifications - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._agent_notification = None self._carbon_copy_notification = None @@ -89,38 +94,22 @@ def __init__(self, agent_notification=None, carbon_copy_notification=None, certi self._when_signing_group_member = None self.discriminator = None - if agent_notification is not None: - self.agent_notification = agent_notification - if carbon_copy_notification is not None: - self.carbon_copy_notification = carbon_copy_notification - if certified_delivery_notification is not None: - self.certified_delivery_notification = certified_delivery_notification - if comments_only_private_and_mention is not None: - self.comments_only_private_and_mention = comments_only_private_and_mention - if comments_receive_all is not None: - self.comments_receive_all = comments_receive_all - if document_markup_activation is not None: - self.document_markup_activation = document_markup_activation - if envelope_activation is not None: - self.envelope_activation = envelope_activation - if envelope_complete is not None: - self.envelope_complete = envelope_complete - if envelope_corrected is not None: - self.envelope_corrected = envelope_corrected - if envelope_declined is not None: - self.envelope_declined = envelope_declined - if envelope_voided is not None: - self.envelope_voided = envelope_voided - if fax_received is not None: - self.fax_received = fax_received - if offline_signing_failed is not None: - self.offline_signing_failed = offline_signing_failed - if purge_documents is not None: - self.purge_documents = purge_documents - if reassigned_signer is not None: - self.reassigned_signer = reassigned_signer - if when_signing_group_member is not None: - self.when_signing_group_member = when_signing_group_member + setattr(self, "_{}".format('agent_notification'), kwargs.get('agent_notification', None)) + setattr(self, "_{}".format('carbon_copy_notification'), kwargs.get('carbon_copy_notification', None)) + setattr(self, "_{}".format('certified_delivery_notification'), kwargs.get('certified_delivery_notification', None)) + setattr(self, "_{}".format('comments_only_private_and_mention'), kwargs.get('comments_only_private_and_mention', None)) + setattr(self, "_{}".format('comments_receive_all'), kwargs.get('comments_receive_all', None)) + setattr(self, "_{}".format('document_markup_activation'), kwargs.get('document_markup_activation', None)) + setattr(self, "_{}".format('envelope_activation'), kwargs.get('envelope_activation', None)) + setattr(self, "_{}".format('envelope_complete'), kwargs.get('envelope_complete', None)) + setattr(self, "_{}".format('envelope_corrected'), kwargs.get('envelope_corrected', None)) + setattr(self, "_{}".format('envelope_declined'), kwargs.get('envelope_declined', None)) + setattr(self, "_{}".format('envelope_voided'), kwargs.get('envelope_voided', None)) + setattr(self, "_{}".format('fax_received'), kwargs.get('fax_received', None)) + setattr(self, "_{}".format('offline_signing_failed'), kwargs.get('offline_signing_failed', None)) + setattr(self, "_{}".format('purge_documents'), kwargs.get('purge_documents', None)) + setattr(self, "_{}".format('reassigned_signer'), kwargs.get('reassigned_signer', None)) + setattr(self, "_{}".format('when_signing_group_member'), kwargs.get('when_signing_group_member', None)) @property def agent_notification(self): @@ -530,8 +519,11 @@ def __eq__(self, other): if not isinstance(other, SignerEmailNotifications): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SignerEmailNotifications): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signing_group.py b/docusign_esign/models/signing_group.py index 0c44f461..3b9859a2 100644 --- a/docusign_esign/models/signing_group.py +++ b/docusign_esign/models/signing_group.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SigningGroup(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class SigningGroup(object): 'users': 'users' } - def __init__(self, created=None, created_by=None, error_details=None, group_email=None, group_name=None, group_type=None, modified=None, modified_by=None, signing_group_id=None, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SigningGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created = None self._created_by = None @@ -71,26 +76,16 @@ def __init__(self, created=None, created_by=None, error_details=None, group_emai self._users = None self.discriminator = None - if created is not None: - self.created = created - if created_by is not None: - self.created_by = created_by - if error_details is not None: - self.error_details = error_details - if group_email is not None: - self.group_email = group_email - if group_name is not None: - self.group_name = group_name - if group_type is not None: - self.group_type = group_type - if modified is not None: - self.modified = modified - if modified_by is not None: - self.modified_by = modified_by - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if users is not None: - self.users = users + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('created_by'), kwargs.get('created_by', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('group_email'), kwargs.get('group_email', None)) + setattr(self, "_{}".format('group_name'), kwargs.get('group_name', None)) + setattr(self, "_{}".format('group_type'), kwargs.get('group_type', None)) + setattr(self, "_{}".format('modified'), kwargs.get('modified', None)) + setattr(self, "_{}".format('modified_by'), kwargs.get('modified_by', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def created(self): @@ -360,8 +355,11 @@ def __eq__(self, other): if not isinstance(other, SigningGroup): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SigningGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signing_group_information.py b/docusign_esign/models/signing_group_information.py index 9ec0b125..dc9aa8f4 100644 --- a/docusign_esign/models/signing_group_information.py +++ b/docusign_esign/models/signing_group_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SigningGroupInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class SigningGroupInformation(object): 'groups': 'groups' } - def __init__(self, groups=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SigningGroupInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._groups = None self.discriminator = None - if groups is not None: - self.groups = groups + setattr(self, "_{}".format('groups'), kwargs.get('groups', None)) @property def groups(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, SigningGroupInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SigningGroupInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signing_group_user.py b/docusign_esign/models/signing_group_user.py index d67b2d70..d3fe984f 100644 --- a/docusign_esign/models/signing_group_user.py +++ b/docusign_esign/models/signing_group_user.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SigningGroupUser(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class SigningGroupUser(object): 'user_name': 'userName' } - def __init__(self, email=None, error_details=None, user_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SigningGroupUser - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._error_details = None self._user_name = None self.discriminator = None - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if user_name is not None: - self.user_name = user_name + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) @property def email(self): @@ -164,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, SigningGroupUser): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SigningGroupUser): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/signing_group_users.py b/docusign_esign/models/signing_group_users.py index 4a0dea8f..12e5942d 100644 --- a/docusign_esign/models/signing_group_users.py +++ b/docusign_esign/models/signing_group_users.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SigningGroupUsers(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class SigningGroupUsers(object): 'users': 'users' } - def __init__(self, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SigningGroupUsers - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._users = None self.discriminator = None - if users is not None: - self.users = users + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def users(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, SigningGroupUsers): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SigningGroupUsers): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/smart_section.py b/docusign_esign/models/smart_section.py index 579cd05e..864e0377 100644 --- a/docusign_esign/models/smart_section.py +++ b/docusign_esign/models/smart_section.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SmartSection(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -102,8 +104,11 @@ class SmartSection(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, case_sensitive=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, display_settings=None, document_id=None, end_anchor=None, end_position=None, error_details=None, merge_field=None, page_number=None, recipient_id=None, remove_end_anchor=None, remove_start_anchor=None, start_anchor=None, start_position=None, status=None, tab_group_labels=None, tab_id=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SmartSection - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -140,72 +145,39 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if case_sensitive is not None: - self.case_sensitive = case_sensitive - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if display_settings is not None: - self.display_settings = display_settings - if document_id is not None: - self.document_id = document_id - if end_anchor is not None: - self.end_anchor = end_anchor - if end_position is not None: - self.end_position = end_position - if error_details is not None: - self.error_details = error_details - if merge_field is not None: - self.merge_field = merge_field - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if remove_end_anchor is not None: - self.remove_end_anchor = remove_end_anchor - if remove_start_anchor is not None: - self.remove_start_anchor = remove_start_anchor - if start_anchor is not None: - self.start_anchor = start_anchor - if start_position is not None: - self.start_position = start_position - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('case_sensitive'), kwargs.get('case_sensitive', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('display_settings'), kwargs.get('display_settings', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('end_anchor'), kwargs.get('end_anchor', None)) + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('remove_end_anchor'), kwargs.get('remove_end_anchor', None)) + setattr(self, "_{}".format('remove_start_anchor'), kwargs.get('remove_start_anchor', None)) + setattr(self, "_{}".format('start_anchor'), kwargs.get('start_anchor', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -996,8 +968,11 @@ def __eq__(self, other): if not isinstance(other, SmartSection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SmartSection): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/smart_section_anchor_position.py b/docusign_esign/models/smart_section_anchor_position.py index 4bff3ed2..18a65ef0 100644 --- a/docusign_esign/models/smart_section_anchor_position.py +++ b/docusign_esign/models/smart_section_anchor_position.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SmartSectionAnchorPosition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class SmartSectionAnchorPosition(object): 'y_position': 'yPosition' } - def __init__(self, page_number=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SmartSectionAnchorPosition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._page_number = None self._x_position = None self._y_position = None self.discriminator = None - if page_number is not None: - self.page_number = page_number - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def page_number(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, SmartSectionAnchorPosition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SmartSectionAnchorPosition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/smart_section_collapsible_display_settings.py b/docusign_esign/models/smart_section_collapsible_display_settings.py index 2ffd2eec..776b685e 100644 --- a/docusign_esign/models/smart_section_collapsible_display_settings.py +++ b/docusign_esign/models/smart_section_collapsible_display_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SmartSectionCollapsibleDisplaySettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class SmartSectionCollapsibleDisplaySettings(object): 'outer_label_and_arrow_style': 'outerLabelAndArrowStyle' } - def __init__(self, arrow_closed=None, arrow_color=None, arrow_location=None, arrow_open=None, arrow_size=None, arrow_style=None, container_style=None, label_style=None, only_arrow_is_clickable=None, outer_label_and_arrow_style=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SmartSectionCollapsibleDisplaySettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._arrow_closed = None self._arrow_color = None @@ -71,26 +76,16 @@ def __init__(self, arrow_closed=None, arrow_color=None, arrow_location=None, arr self._outer_label_and_arrow_style = None self.discriminator = None - if arrow_closed is not None: - self.arrow_closed = arrow_closed - if arrow_color is not None: - self.arrow_color = arrow_color - if arrow_location is not None: - self.arrow_location = arrow_location - if arrow_open is not None: - self.arrow_open = arrow_open - if arrow_size is not None: - self.arrow_size = arrow_size - if arrow_style is not None: - self.arrow_style = arrow_style - if container_style is not None: - self.container_style = container_style - if label_style is not None: - self.label_style = label_style - if only_arrow_is_clickable is not None: - self.only_arrow_is_clickable = only_arrow_is_clickable - if outer_label_and_arrow_style is not None: - self.outer_label_and_arrow_style = outer_label_and_arrow_style + setattr(self, "_{}".format('arrow_closed'), kwargs.get('arrow_closed', None)) + setattr(self, "_{}".format('arrow_color'), kwargs.get('arrow_color', None)) + setattr(self, "_{}".format('arrow_location'), kwargs.get('arrow_location', None)) + setattr(self, "_{}".format('arrow_open'), kwargs.get('arrow_open', None)) + setattr(self, "_{}".format('arrow_size'), kwargs.get('arrow_size', None)) + setattr(self, "_{}".format('arrow_style'), kwargs.get('arrow_style', None)) + setattr(self, "_{}".format('container_style'), kwargs.get('container_style', None)) + setattr(self, "_{}".format('label_style'), kwargs.get('label_style', None)) + setattr(self, "_{}".format('only_arrow_is_clickable'), kwargs.get('only_arrow_is_clickable', None)) + setattr(self, "_{}".format('outer_label_and_arrow_style'), kwargs.get('outer_label_and_arrow_style', None)) @property def arrow_closed(self): @@ -362,8 +357,11 @@ def __eq__(self, other): if not isinstance(other, SmartSectionCollapsibleDisplaySettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SmartSectionCollapsibleDisplaySettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/smart_section_display_settings.py b/docusign_esign/models/smart_section_display_settings.py index f0284aa2..8906deb7 100644 --- a/docusign_esign/models/smart_section_display_settings.py +++ b/docusign_esign/models/smart_section_display_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SmartSectionDisplaySettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class SmartSectionDisplaySettings(object): 'table_style': 'tableStyle' } - def __init__(self, cell_style=None, collapsible_settings=None, display=None, display_label=None, display_order=None, display_page_number=None, hide_label_when_opened=None, inline_outer_style=None, label_when_opened=None, pre_label=None, scroll_to_top_when_opened=None, table_style=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SmartSectionDisplaySettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cell_style = None self._collapsible_settings = None @@ -77,30 +82,18 @@ def __init__(self, cell_style=None, collapsible_settings=None, display=None, dis self._table_style = None self.discriminator = None - if cell_style is not None: - self.cell_style = cell_style - if collapsible_settings is not None: - self.collapsible_settings = collapsible_settings - if display is not None: - self.display = display - if display_label is not None: - self.display_label = display_label - if display_order is not None: - self.display_order = display_order - if display_page_number is not None: - self.display_page_number = display_page_number - if hide_label_when_opened is not None: - self.hide_label_when_opened = hide_label_when_opened - if inline_outer_style is not None: - self.inline_outer_style = inline_outer_style - if label_when_opened is not None: - self.label_when_opened = label_when_opened - if pre_label is not None: - self.pre_label = pre_label - if scroll_to_top_when_opened is not None: - self.scroll_to_top_when_opened = scroll_to_top_when_opened - if table_style is not None: - self.table_style = table_style + setattr(self, "_{}".format('cell_style'), kwargs.get('cell_style', None)) + setattr(self, "_{}".format('collapsible_settings'), kwargs.get('collapsible_settings', None)) + setattr(self, "_{}".format('display'), kwargs.get('display', None)) + setattr(self, "_{}".format('display_label'), kwargs.get('display_label', None)) + setattr(self, "_{}".format('display_order'), kwargs.get('display_order', None)) + setattr(self, "_{}".format('display_page_number'), kwargs.get('display_page_number', None)) + setattr(self, "_{}".format('hide_label_when_opened'), kwargs.get('hide_label_when_opened', None)) + setattr(self, "_{}".format('inline_outer_style'), kwargs.get('inline_outer_style', None)) + setattr(self, "_{}".format('label_when_opened'), kwargs.get('label_when_opened', None)) + setattr(self, "_{}".format('pre_label'), kwargs.get('pre_label', None)) + setattr(self, "_{}".format('scroll_to_top_when_opened'), kwargs.get('scroll_to_top_when_opened', None)) + setattr(self, "_{}".format('table_style'), kwargs.get('table_style', None)) @property def cell_style(self): @@ -416,8 +409,11 @@ def __eq__(self, other): if not isinstance(other, SmartSectionDisplaySettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SmartSectionDisplaySettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/social_account_information.py b/docusign_esign/models/social_account_information.py index 7d1c62b2..3e8aef7f 100644 --- a/docusign_esign/models/social_account_information.py +++ b/docusign_esign/models/social_account_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SocialAccountInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class SocialAccountInformation(object): 'user_name': 'userName' } - def __init__(self, email=None, error_details=None, provider=None, social_id=None, user_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SocialAccountInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._error_details = None @@ -56,16 +61,11 @@ def __init__(self, email=None, error_details=None, provider=None, social_id=None self._user_name = None self.discriminator = None - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if provider is not None: - self.provider = provider - if social_id is not None: - self.social_id = social_id - if user_name is not None: - self.user_name = user_name + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('provider'), kwargs.get('provider', None)) + setattr(self, "_{}".format('social_id'), kwargs.get('social_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) @property def email(self): @@ -220,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, SocialAccountInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SocialAccountInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/social_authentication.py b/docusign_esign/models/social_authentication.py index 5bceac23..7a2bb31b 100644 --- a/docusign_esign/models/social_authentication.py +++ b/docusign_esign/models/social_authentication.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SocialAuthentication(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class SocialAuthentication(object): 'authentication': 'authentication' } - def __init__(self, authentication=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SocialAuthentication - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._authentication = None self.discriminator = None - if authentication is not None: - self.authentication = authentication + setattr(self, "_{}".format('authentication'), kwargs.get('authentication', None)) @property def authentication(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, SocialAuthentication): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SocialAuthentication): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/ssn.py b/docusign_esign/models/ssn.py index 4b32e1f0..15606013 100644 --- a/docusign_esign/models/ssn.py +++ b/docusign_esign/models/ssn.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Ssn(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -130,8 +132,11 @@ class Ssn(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Ssn - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -182,100 +187,53 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1394,8 +1352,11 @@ def __eq__(self, other): if not isinstance(other, Ssn): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Ssn): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/ssn4_information_input.py b/docusign_esign/models/ssn4_information_input.py index 4db1565d..11892377 100644 --- a/docusign_esign/models/ssn4_information_input.py +++ b/docusign_esign/models/ssn4_information_input.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Ssn4InformationInput(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class Ssn4InformationInput(object): 'ssn4': 'ssn4' } - def __init__(self, display_level_code=None, receive_in_response=None, ssn4=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Ssn4InformationInput - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._display_level_code = None self._receive_in_response = None self._ssn4 = None self.discriminator = None - if display_level_code is not None: - self.display_level_code = display_level_code - if receive_in_response is not None: - self.receive_in_response = receive_in_response - if ssn4 is not None: - self.ssn4 = ssn4 + setattr(self, "_{}".format('display_level_code'), kwargs.get('display_level_code', None)) + setattr(self, "_{}".format('receive_in_response'), kwargs.get('receive_in_response', None)) + setattr(self, "_{}".format('ssn4'), kwargs.get('ssn4', None)) @property def display_level_code(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, Ssn4InformationInput): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Ssn4InformationInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/ssn9_information_input.py b/docusign_esign/models/ssn9_information_input.py index 46cd7aad..573660ee 100644 --- a/docusign_esign/models/ssn9_information_input.py +++ b/docusign_esign/models/ssn9_information_input.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Ssn9InformationInput(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class Ssn9InformationInput(object): 'ssn9': 'ssn9' } - def __init__(self, display_level_code=None, ssn9=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Ssn9InformationInput - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._display_level_code = None self._ssn9 = None self.discriminator = None - if display_level_code is not None: - self.display_level_code = display_level_code - if ssn9 is not None: - self.ssn9 = ssn9 + setattr(self, "_{}".format('display_level_code'), kwargs.get('display_level_code', None)) + setattr(self, "_{}".format('ssn9'), kwargs.get('ssn9', None)) @property def display_level_code(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, Ssn9InformationInput): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Ssn9InformationInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/supported_languages.py b/docusign_esign/models/supported_languages.py index 4ec7b22c..61c10a69 100644 --- a/docusign_esign/models/supported_languages.py +++ b/docusign_esign/models/supported_languages.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class SupportedLanguages(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class SupportedLanguages(object): 'languages': 'languages' } - def __init__(self, languages=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """SupportedLanguages - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._languages = None self.discriminator = None - if languages is not None: - self.languages = languages + setattr(self, "_{}".format('languages'), kwargs.get('languages', None)) @property def languages(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, SupportedLanguages): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SupportedLanguages): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/tab_account_settings.py b/docusign_esign/models/tab_account_settings.py index fa7f3f85..d52f1ea1 100644 --- a/docusign_esign/models/tab_account_settings.py +++ b/docusign_esign/models/tab_account_settings.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TabAccountSettings(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -112,8 +114,11 @@ class TabAccountSettings(object): 'text_tabs_metadata': 'textTabsMetadata' } - def __init__(self, allow_tab_order=None, allow_tab_order_metadata=None, approve_decline_tabs_enabled=None, approve_decline_tabs_metadata=None, calculated_fields_enabled=None, calculated_fields_metadata=None, checkbox_tabs_enabled=None, checkbox_tabs_metadata=None, data_field_regex_enabled=None, data_field_regex_metadata=None, data_field_size_enabled=None, data_field_size_metadata=None, first_last_email_tabs_enabled=None, first_last_email_tabs_metadata=None, list_tabs_enabled=None, list_tabs_metadata=None, note_tabs_enabled=None, note_tabs_metadata=None, radio_tabs_enabled=None, radio_tabs_metadata=None, saving_custom_tabs_enabled=None, saving_custom_tabs_metadata=None, sender_to_change_tab_assignments_enabled=None, sender_to_change_tab_assignments_metadata=None, shared_custom_tabs_enabled=None, shared_custom_tabs_metadata=None, tab_data_label_enabled=None, tab_data_label_metadata=None, tab_location_enabled=None, tab_location_metadata=None, tab_locking_enabled=None, tab_locking_metadata=None, tab_scale_enabled=None, tab_scale_metadata=None, tab_text_formatting_enabled=None, tab_text_formatting_metadata=None, text_tabs_enabled=None, text_tabs_metadata=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TabAccountSettings - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._allow_tab_order = None self._allow_tab_order_metadata = None @@ -155,82 +160,44 @@ def __init__(self, allow_tab_order=None, allow_tab_order_metadata=None, approve_ self._text_tabs_metadata = None self.discriminator = None - if allow_tab_order is not None: - self.allow_tab_order = allow_tab_order - if allow_tab_order_metadata is not None: - self.allow_tab_order_metadata = allow_tab_order_metadata - if approve_decline_tabs_enabled is not None: - self.approve_decline_tabs_enabled = approve_decline_tabs_enabled - if approve_decline_tabs_metadata is not None: - self.approve_decline_tabs_metadata = approve_decline_tabs_metadata - if calculated_fields_enabled is not None: - self.calculated_fields_enabled = calculated_fields_enabled - if calculated_fields_metadata is not None: - self.calculated_fields_metadata = calculated_fields_metadata - if checkbox_tabs_enabled is not None: - self.checkbox_tabs_enabled = checkbox_tabs_enabled - if checkbox_tabs_metadata is not None: - self.checkbox_tabs_metadata = checkbox_tabs_metadata - if data_field_regex_enabled is not None: - self.data_field_regex_enabled = data_field_regex_enabled - if data_field_regex_metadata is not None: - self.data_field_regex_metadata = data_field_regex_metadata - if data_field_size_enabled is not None: - self.data_field_size_enabled = data_field_size_enabled - if data_field_size_metadata is not None: - self.data_field_size_metadata = data_field_size_metadata - if first_last_email_tabs_enabled is not None: - self.first_last_email_tabs_enabled = first_last_email_tabs_enabled - if first_last_email_tabs_metadata is not None: - self.first_last_email_tabs_metadata = first_last_email_tabs_metadata - if list_tabs_enabled is not None: - self.list_tabs_enabled = list_tabs_enabled - if list_tabs_metadata is not None: - self.list_tabs_metadata = list_tabs_metadata - if note_tabs_enabled is not None: - self.note_tabs_enabled = note_tabs_enabled - if note_tabs_metadata is not None: - self.note_tabs_metadata = note_tabs_metadata - if radio_tabs_enabled is not None: - self.radio_tabs_enabled = radio_tabs_enabled - if radio_tabs_metadata is not None: - self.radio_tabs_metadata = radio_tabs_metadata - if saving_custom_tabs_enabled is not None: - self.saving_custom_tabs_enabled = saving_custom_tabs_enabled - if saving_custom_tabs_metadata is not None: - self.saving_custom_tabs_metadata = saving_custom_tabs_metadata - if sender_to_change_tab_assignments_enabled is not None: - self.sender_to_change_tab_assignments_enabled = sender_to_change_tab_assignments_enabled - if sender_to_change_tab_assignments_metadata is not None: - self.sender_to_change_tab_assignments_metadata = sender_to_change_tab_assignments_metadata - if shared_custom_tabs_enabled is not None: - self.shared_custom_tabs_enabled = shared_custom_tabs_enabled - if shared_custom_tabs_metadata is not None: - self.shared_custom_tabs_metadata = shared_custom_tabs_metadata - if tab_data_label_enabled is not None: - self.tab_data_label_enabled = tab_data_label_enabled - if tab_data_label_metadata is not None: - self.tab_data_label_metadata = tab_data_label_metadata - if tab_location_enabled is not None: - self.tab_location_enabled = tab_location_enabled - if tab_location_metadata is not None: - self.tab_location_metadata = tab_location_metadata - if tab_locking_enabled is not None: - self.tab_locking_enabled = tab_locking_enabled - if tab_locking_metadata is not None: - self.tab_locking_metadata = tab_locking_metadata - if tab_scale_enabled is not None: - self.tab_scale_enabled = tab_scale_enabled - if tab_scale_metadata is not None: - self.tab_scale_metadata = tab_scale_metadata - if tab_text_formatting_enabled is not None: - self.tab_text_formatting_enabled = tab_text_formatting_enabled - if tab_text_formatting_metadata is not None: - self.tab_text_formatting_metadata = tab_text_formatting_metadata - if text_tabs_enabled is not None: - self.text_tabs_enabled = text_tabs_enabled - if text_tabs_metadata is not None: - self.text_tabs_metadata = text_tabs_metadata + setattr(self, "_{}".format('allow_tab_order'), kwargs.get('allow_tab_order', None)) + setattr(self, "_{}".format('allow_tab_order_metadata'), kwargs.get('allow_tab_order_metadata', None)) + setattr(self, "_{}".format('approve_decline_tabs_enabled'), kwargs.get('approve_decline_tabs_enabled', None)) + setattr(self, "_{}".format('approve_decline_tabs_metadata'), kwargs.get('approve_decline_tabs_metadata', None)) + setattr(self, "_{}".format('calculated_fields_enabled'), kwargs.get('calculated_fields_enabled', None)) + setattr(self, "_{}".format('calculated_fields_metadata'), kwargs.get('calculated_fields_metadata', None)) + setattr(self, "_{}".format('checkbox_tabs_enabled'), kwargs.get('checkbox_tabs_enabled', None)) + setattr(self, "_{}".format('checkbox_tabs_metadata'), kwargs.get('checkbox_tabs_metadata', None)) + setattr(self, "_{}".format('data_field_regex_enabled'), kwargs.get('data_field_regex_enabled', None)) + setattr(self, "_{}".format('data_field_regex_metadata'), kwargs.get('data_field_regex_metadata', None)) + setattr(self, "_{}".format('data_field_size_enabled'), kwargs.get('data_field_size_enabled', None)) + setattr(self, "_{}".format('data_field_size_metadata'), kwargs.get('data_field_size_metadata', None)) + setattr(self, "_{}".format('first_last_email_tabs_enabled'), kwargs.get('first_last_email_tabs_enabled', None)) + setattr(self, "_{}".format('first_last_email_tabs_metadata'), kwargs.get('first_last_email_tabs_metadata', None)) + setattr(self, "_{}".format('list_tabs_enabled'), kwargs.get('list_tabs_enabled', None)) + setattr(self, "_{}".format('list_tabs_metadata'), kwargs.get('list_tabs_metadata', None)) + setattr(self, "_{}".format('note_tabs_enabled'), kwargs.get('note_tabs_enabled', None)) + setattr(self, "_{}".format('note_tabs_metadata'), kwargs.get('note_tabs_metadata', None)) + setattr(self, "_{}".format('radio_tabs_enabled'), kwargs.get('radio_tabs_enabled', None)) + setattr(self, "_{}".format('radio_tabs_metadata'), kwargs.get('radio_tabs_metadata', None)) + setattr(self, "_{}".format('saving_custom_tabs_enabled'), kwargs.get('saving_custom_tabs_enabled', None)) + setattr(self, "_{}".format('saving_custom_tabs_metadata'), kwargs.get('saving_custom_tabs_metadata', None)) + setattr(self, "_{}".format('sender_to_change_tab_assignments_enabled'), kwargs.get('sender_to_change_tab_assignments_enabled', None)) + setattr(self, "_{}".format('sender_to_change_tab_assignments_metadata'), kwargs.get('sender_to_change_tab_assignments_metadata', None)) + setattr(self, "_{}".format('shared_custom_tabs_enabled'), kwargs.get('shared_custom_tabs_enabled', None)) + setattr(self, "_{}".format('shared_custom_tabs_metadata'), kwargs.get('shared_custom_tabs_metadata', None)) + setattr(self, "_{}".format('tab_data_label_enabled'), kwargs.get('tab_data_label_enabled', None)) + setattr(self, "_{}".format('tab_data_label_metadata'), kwargs.get('tab_data_label_metadata', None)) + setattr(self, "_{}".format('tab_location_enabled'), kwargs.get('tab_location_enabled', None)) + setattr(self, "_{}".format('tab_location_metadata'), kwargs.get('tab_location_metadata', None)) + setattr(self, "_{}".format('tab_locking_enabled'), kwargs.get('tab_locking_enabled', None)) + setattr(self, "_{}".format('tab_locking_metadata'), kwargs.get('tab_locking_metadata', None)) + setattr(self, "_{}".format('tab_scale_enabled'), kwargs.get('tab_scale_enabled', None)) + setattr(self, "_{}".format('tab_scale_metadata'), kwargs.get('tab_scale_metadata', None)) + setattr(self, "_{}".format('tab_text_formatting_enabled'), kwargs.get('tab_text_formatting_enabled', None)) + setattr(self, "_{}".format('tab_text_formatting_metadata'), kwargs.get('tab_text_formatting_metadata', None)) + setattr(self, "_{}".format('text_tabs_enabled'), kwargs.get('text_tabs_enabled', None)) + setattr(self, "_{}".format('text_tabs_metadata'), kwargs.get('text_tabs_metadata', None)) @property def allow_tab_order(self): @@ -1108,8 +1075,11 @@ def __eq__(self, other): if not isinstance(other, TabAccountSettings): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TabAccountSettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/tab_metadata.py b/docusign_esign/models/tab_metadata.py index 3b3b4d2c..cae71113 100644 --- a/docusign_esign/models/tab_metadata.py +++ b/docusign_esign/models/tab_metadata.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TabMetadata(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -132,8 +134,11 @@ class TabMetadata(object): 'width': 'width' } - def __init__(self, anchor=None, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, collaborative=None, conceal_value_on_document=None, created_by_display_name=None, created_by_user_id=None, custom_tab_id=None, disable_auto_size=None, editable=None, font=None, font_color=None, font_size=None, height=None, included_in_email=None, initial_value=None, italic=None, items=None, last_modified=None, last_modified_by_display_name=None, last_modified_by_user_id=None, locked=None, maximum_length=None, merge_field=None, name=None, payment_item_code=None, payment_item_description=None, payment_item_name=None, require_all=None, required=None, require_initial_on_shared_change=None, scale_value=None, selected=None, shared=None, stamp_type=None, stamp_type_metadata=None, tab_label=None, type=None, underline=None, validation_message=None, validation_pattern=None, width=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TabMetadata - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor = None self._anchor_case_sensitive = None @@ -185,102 +190,54 @@ def __init__(self, anchor=None, anchor_case_sensitive=None, anchor_horizontal_al self._width = None self.discriminator = None - if anchor is not None: - self.anchor = anchor - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if collaborative is not None: - self.collaborative = collaborative - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if created_by_display_name is not None: - self.created_by_display_name = created_by_display_name - if created_by_user_id is not None: - self.created_by_user_id = created_by_user_id - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if editable is not None: - self.editable = editable - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if height is not None: - self.height = height - if included_in_email is not None: - self.included_in_email = included_in_email - if initial_value is not None: - self.initial_value = initial_value - if italic is not None: - self.italic = italic - if items is not None: - self.items = items - if last_modified is not None: - self.last_modified = last_modified - if last_modified_by_display_name is not None: - self.last_modified_by_display_name = last_modified_by_display_name - if last_modified_by_user_id is not None: - self.last_modified_by_user_id = last_modified_by_user_id - if locked is not None: - self.locked = locked - if maximum_length is not None: - self.maximum_length = maximum_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if payment_item_code is not None: - self.payment_item_code = payment_item_code - if payment_item_description is not None: - self.payment_item_description = payment_item_description - if payment_item_name is not None: - self.payment_item_name = payment_item_name - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if scale_value is not None: - self.scale_value = scale_value - if selected is not None: - self.selected = selected - if shared is not None: - self.shared = shared - if stamp_type is not None: - self.stamp_type = stamp_type - if stamp_type_metadata is not None: - self.stamp_type_metadata = stamp_type_metadata - if tab_label is not None: - self.tab_label = tab_label - if type is not None: - self.type = type - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if width is not None: - self.width = width + setattr(self, "_{}".format('anchor'), kwargs.get('anchor', None)) + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('collaborative'), kwargs.get('collaborative', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('created_by_display_name'), kwargs.get('created_by_display_name', None)) + setattr(self, "_{}".format('created_by_user_id'), kwargs.get('created_by_user_id', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('editable'), kwargs.get('editable', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('included_in_email'), kwargs.get('included_in_email', None)) + setattr(self, "_{}".format('initial_value'), kwargs.get('initial_value', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('items'), kwargs.get('items', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('last_modified_by_display_name'), kwargs.get('last_modified_by_display_name', None)) + setattr(self, "_{}".format('last_modified_by_user_id'), kwargs.get('last_modified_by_user_id', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('maximum_length'), kwargs.get('maximum_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('payment_item_code'), kwargs.get('payment_item_code', None)) + setattr(self, "_{}".format('payment_item_description'), kwargs.get('payment_item_description', None)) + setattr(self, "_{}".format('payment_item_name'), kwargs.get('payment_item_name', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('scale_value'), kwargs.get('scale_value', None)) + setattr(self, "_{}".format('selected'), kwargs.get('selected', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('stamp_type'), kwargs.get('stamp_type', None)) + setattr(self, "_{}".format('stamp_type_metadata'), kwargs.get('stamp_type_metadata', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) @property def anchor(self): @@ -1422,8 +1379,11 @@ def __eq__(self, other): if not isinstance(other, TabMetadata): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TabMetadata): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/tab_metadata_list.py b/docusign_esign/models/tab_metadata_list.py index 11211531..26d7b39c 100644 --- a/docusign_esign/models/tab_metadata_list.py +++ b/docusign_esign/models/tab_metadata_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TabMetadataList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class TabMetadataList(object): 'tabs': 'tabs' } - def __init__(self, tabs=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TabMetadataList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._tabs = None self.discriminator = None - if tabs is not None: - self.tabs = tabs + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) @property def tabs(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, TabMetadataList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TabMetadataList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/tabs.py b/docusign_esign/models/tabs.py index efa28e5b..a98adf33 100644 --- a/docusign_esign/models/tabs.py +++ b/docusign_esign/models/tabs.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Tabs(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -90,8 +92,11 @@ class Tabs(object): 'zip_tabs': 'zipTabs' } - def __init__(self, approve_tabs=None, checkbox_tabs=None, company_tabs=None, date_signed_tabs=None, date_tabs=None, decline_tabs=None, email_address_tabs=None, email_tabs=None, envelope_id_tabs=None, first_name_tabs=None, formula_tabs=None, full_name_tabs=None, initial_here_tabs=None, last_name_tabs=None, list_tabs=None, notarize_tabs=None, note_tabs=None, number_tabs=None, radio_group_tabs=None, signer_attachment_tabs=None, sign_here_tabs=None, smart_section_tabs=None, ssn_tabs=None, text_tabs=None, title_tabs=None, view_tabs=None, zip_tabs=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Tabs - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._approve_tabs = None self._checkbox_tabs = None @@ -122,60 +127,33 @@ def __init__(self, approve_tabs=None, checkbox_tabs=None, company_tabs=None, dat self._zip_tabs = None self.discriminator = None - if approve_tabs is not None: - self.approve_tabs = approve_tabs - if checkbox_tabs is not None: - self.checkbox_tabs = checkbox_tabs - if company_tabs is not None: - self.company_tabs = company_tabs - if date_signed_tabs is not None: - self.date_signed_tabs = date_signed_tabs - if date_tabs is not None: - self.date_tabs = date_tabs - if decline_tabs is not None: - self.decline_tabs = decline_tabs - if email_address_tabs is not None: - self.email_address_tabs = email_address_tabs - if email_tabs is not None: - self.email_tabs = email_tabs - if envelope_id_tabs is not None: - self.envelope_id_tabs = envelope_id_tabs - if first_name_tabs is not None: - self.first_name_tabs = first_name_tabs - if formula_tabs is not None: - self.formula_tabs = formula_tabs - if full_name_tabs is not None: - self.full_name_tabs = full_name_tabs - if initial_here_tabs is not None: - self.initial_here_tabs = initial_here_tabs - if last_name_tabs is not None: - self.last_name_tabs = last_name_tabs - if list_tabs is not None: - self.list_tabs = list_tabs - if notarize_tabs is not None: - self.notarize_tabs = notarize_tabs - if note_tabs is not None: - self.note_tabs = note_tabs - if number_tabs is not None: - self.number_tabs = number_tabs - if radio_group_tabs is not None: - self.radio_group_tabs = radio_group_tabs - if signer_attachment_tabs is not None: - self.signer_attachment_tabs = signer_attachment_tabs - if sign_here_tabs is not None: - self.sign_here_tabs = sign_here_tabs - if smart_section_tabs is not None: - self.smart_section_tabs = smart_section_tabs - if ssn_tabs is not None: - self.ssn_tabs = ssn_tabs - if text_tabs is not None: - self.text_tabs = text_tabs - if title_tabs is not None: - self.title_tabs = title_tabs - if view_tabs is not None: - self.view_tabs = view_tabs - if zip_tabs is not None: - self.zip_tabs = zip_tabs + setattr(self, "_{}".format('approve_tabs'), kwargs.get('approve_tabs', None)) + setattr(self, "_{}".format('checkbox_tabs'), kwargs.get('checkbox_tabs', None)) + setattr(self, "_{}".format('company_tabs'), kwargs.get('company_tabs', None)) + setattr(self, "_{}".format('date_signed_tabs'), kwargs.get('date_signed_tabs', None)) + setattr(self, "_{}".format('date_tabs'), kwargs.get('date_tabs', None)) + setattr(self, "_{}".format('decline_tabs'), kwargs.get('decline_tabs', None)) + setattr(self, "_{}".format('email_address_tabs'), kwargs.get('email_address_tabs', None)) + setattr(self, "_{}".format('email_tabs'), kwargs.get('email_tabs', None)) + setattr(self, "_{}".format('envelope_id_tabs'), kwargs.get('envelope_id_tabs', None)) + setattr(self, "_{}".format('first_name_tabs'), kwargs.get('first_name_tabs', None)) + setattr(self, "_{}".format('formula_tabs'), kwargs.get('formula_tabs', None)) + setattr(self, "_{}".format('full_name_tabs'), kwargs.get('full_name_tabs', None)) + setattr(self, "_{}".format('initial_here_tabs'), kwargs.get('initial_here_tabs', None)) + setattr(self, "_{}".format('last_name_tabs'), kwargs.get('last_name_tabs', None)) + setattr(self, "_{}".format('list_tabs'), kwargs.get('list_tabs', None)) + setattr(self, "_{}".format('notarize_tabs'), kwargs.get('notarize_tabs', None)) + setattr(self, "_{}".format('note_tabs'), kwargs.get('note_tabs', None)) + setattr(self, "_{}".format('number_tabs'), kwargs.get('number_tabs', None)) + setattr(self, "_{}".format('radio_group_tabs'), kwargs.get('radio_group_tabs', None)) + setattr(self, "_{}".format('signer_attachment_tabs'), kwargs.get('signer_attachment_tabs', None)) + setattr(self, "_{}".format('sign_here_tabs'), kwargs.get('sign_here_tabs', None)) + setattr(self, "_{}".format('smart_section_tabs'), kwargs.get('smart_section_tabs', None)) + setattr(self, "_{}".format('ssn_tabs'), kwargs.get('ssn_tabs', None)) + setattr(self, "_{}".format('text_tabs'), kwargs.get('text_tabs', None)) + setattr(self, "_{}".format('title_tabs'), kwargs.get('title_tabs', None)) + setattr(self, "_{}".format('view_tabs'), kwargs.get('view_tabs', None)) + setattr(self, "_{}".format('zip_tabs'), kwargs.get('zip_tabs', None)) @property def approve_tabs(self): @@ -838,8 +816,11 @@ def __eq__(self, other): if not isinstance(other, Tabs): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Tabs): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_custom_fields.py b/docusign_esign/models/template_custom_fields.py index e512c18d..44c680b2 100644 --- a/docusign_esign/models/template_custom_fields.py +++ b/docusign_esign/models/template_custom_fields.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateCustomFields(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class TemplateCustomFields(object): 'text_custom_fields': 'textCustomFields' } - def __init__(self, list_custom_fields=None, text_custom_fields=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateCustomFields - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._list_custom_fields = None self._text_custom_fields = None self.discriminator = None - if list_custom_fields is not None: - self.list_custom_fields = list_custom_fields - if text_custom_fields is not None: - self.text_custom_fields = text_custom_fields + setattr(self, "_{}".format('list_custom_fields'), kwargs.get('list_custom_fields', None)) + setattr(self, "_{}".format('text_custom_fields'), kwargs.get('text_custom_fields', None)) @property def list_custom_fields(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, TemplateCustomFields): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateCustomFields): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_document_visibility_list.py b/docusign_esign/models/template_document_visibility_list.py index 7ae08aff..70772084 100644 --- a/docusign_esign/models/template_document_visibility_list.py +++ b/docusign_esign/models/template_document_visibility_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateDocumentVisibilityList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class TemplateDocumentVisibilityList(object): 'document_visibility': 'documentVisibility' } - def __init__(self, document_visibility=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateDocumentVisibilityList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_visibility = None self.discriminator = None - if document_visibility is not None: - self.document_visibility = document_visibility + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) @property def document_visibility(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, TemplateDocumentVisibilityList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateDocumentVisibilityList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_documents_result.py b/docusign_esign/models/template_documents_result.py index 1de865bb..70da0090 100644 --- a/docusign_esign/models/template_documents_result.py +++ b/docusign_esign/models/template_documents_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateDocumentsResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class TemplateDocumentsResult(object): 'template_id': 'templateId' } - def __init__(self, template_documents=None, template_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateDocumentsResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._template_documents = None self._template_id = None self.discriminator = None - if template_documents is not None: - self.template_documents = template_documents - if template_id is not None: - self.template_id = template_id + setattr(self, "_{}".format('template_documents'), kwargs.get('template_documents', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) @property def template_documents(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, TemplateDocumentsResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateDocumentsResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_information.py b/docusign_esign/models/template_information.py index 9f8f1ac8..353da8e3 100644 --- a/docusign_esign/models/template_information.py +++ b/docusign_esign/models/template_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class TemplateInformation(object): 'templates': 'templates' } - def __init__(self, templates=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._templates = None self.discriminator = None - if templates is not None: - self.templates = templates + setattr(self, "_{}".format('templates'), kwargs.get('templates', None)) @property def templates(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, TemplateInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_match.py b/docusign_esign/models/template_match.py index 463a31be..0c0c4cd8 100644 --- a/docusign_esign/models/template_match.py +++ b/docusign_esign/models/template_match.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateMatch(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class TemplateMatch(object): 'match_percentage': 'matchPercentage' } - def __init__(self, document_end_page=None, document_start_page=None, match_percentage=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateMatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._document_end_page = None self._document_start_page = None self._match_percentage = None self.discriminator = None - if document_end_page is not None: - self.document_end_page = document_end_page - if document_start_page is not None: - self.document_start_page = document_start_page - if match_percentage is not None: - self.match_percentage = match_percentage + setattr(self, "_{}".format('document_end_page'), kwargs.get('document_end_page', None)) + setattr(self, "_{}".format('document_start_page'), kwargs.get('document_start_page', None)) + setattr(self, "_{}".format('match_percentage'), kwargs.get('match_percentage', None)) @property def document_end_page(self): @@ -166,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, TemplateMatch): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateMatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_notification_request.py b/docusign_esign/models/template_notification_request.py index ab10e384..d16a1747 100644 --- a/docusign_esign/models/template_notification_request.py +++ b/docusign_esign/models/template_notification_request.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateNotificationRequest(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class TemplateNotificationRequest(object): 'use_account_defaults': 'useAccountDefaults' } - def __init__(self, expirations=None, password=None, reminders=None, use_account_defaults=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateNotificationRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._expirations = None self._password = None @@ -53,14 +58,10 @@ def __init__(self, expirations=None, password=None, reminders=None, use_account_ self._use_account_defaults = None self.discriminator = None - if expirations is not None: - self.expirations = expirations - if password is not None: - self.password = password - if reminders is not None: - self.reminders = reminders - if use_account_defaults is not None: - self.use_account_defaults = use_account_defaults + setattr(self, "_{}".format('expirations'), kwargs.get('expirations', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('reminders'), kwargs.get('reminders', None)) + setattr(self, "_{}".format('use_account_defaults'), kwargs.get('use_account_defaults', None)) @property def expirations(self): @@ -190,8 +191,11 @@ def __eq__(self, other): if not isinstance(other, TemplateNotificationRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateNotificationRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_recipients.py b/docusign_esign/models/template_recipients.py index 93d72bd6..4a12e37e 100644 --- a/docusign_esign/models/template_recipients.py +++ b/docusign_esign/models/template_recipients.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateRecipients(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class TemplateRecipients(object): 'witnesses': 'witnesses' } - def __init__(self, agents=None, carbon_copies=None, certified_deliveries=None, current_routing_order=None, editors=None, error_details=None, in_person_signers=None, intermediaries=None, recipient_count=None, seals=None, signers=None, witnesses=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateRecipients - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._agents = None self._carbon_copies = None @@ -77,30 +82,18 @@ def __init__(self, agents=None, carbon_copies=None, certified_deliveries=None, c self._witnesses = None self.discriminator = None - if agents is not None: - self.agents = agents - if carbon_copies is not None: - self.carbon_copies = carbon_copies - if certified_deliveries is not None: - self.certified_deliveries = certified_deliveries - if current_routing_order is not None: - self.current_routing_order = current_routing_order - if editors is not None: - self.editors = editors - if error_details is not None: - self.error_details = error_details - if in_person_signers is not None: - self.in_person_signers = in_person_signers - if intermediaries is not None: - self.intermediaries = intermediaries - if recipient_count is not None: - self.recipient_count = recipient_count - if seals is not None: - self.seals = seals - if signers is not None: - self.signers = signers - if witnesses is not None: - self.witnesses = witnesses + setattr(self, "_{}".format('agents'), kwargs.get('agents', None)) + setattr(self, "_{}".format('carbon_copies'), kwargs.get('carbon_copies', None)) + setattr(self, "_{}".format('certified_deliveries'), kwargs.get('certified_deliveries', None)) + setattr(self, "_{}".format('current_routing_order'), kwargs.get('current_routing_order', None)) + setattr(self, "_{}".format('editors'), kwargs.get('editors', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('in_person_signers'), kwargs.get('in_person_signers', None)) + setattr(self, "_{}".format('intermediaries'), kwargs.get('intermediaries', None)) + setattr(self, "_{}".format('recipient_count'), kwargs.get('recipient_count', None)) + setattr(self, "_{}".format('seals'), kwargs.get('seals', None)) + setattr(self, "_{}".format('signers'), kwargs.get('signers', None)) + setattr(self, "_{}".format('witnesses'), kwargs.get('witnesses', None)) @property def agents(self): @@ -416,8 +409,11 @@ def __eq__(self, other): if not isinstance(other, TemplateRecipients): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateRecipients): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_role.py b/docusign_esign/models/template_role.py index b1417513..29b9a8c5 100644 --- a/docusign_esign/models/template_role.py +++ b/docusign_esign/models/template_role.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateRole(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -62,8 +64,11 @@ class TemplateRole(object): 'tabs': 'tabs' } - def __init__(self, access_code=None, client_user_id=None, default_recipient=None, email=None, email_notification=None, embedded_recipient_start_url=None, in_person_signer_name=None, name=None, recipient_signature_providers=None, role_name=None, routing_order=None, signing_group_id=None, tabs=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateRole - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._client_user_id = None @@ -80,32 +85,19 @@ def __init__(self, access_code=None, client_user_id=None, default_recipient=None self._tabs = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if client_user_id is not None: - self.client_user_id = client_user_id - if default_recipient is not None: - self.default_recipient = default_recipient - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if in_person_signer_name is not None: - self.in_person_signer_name = in_person_signer_name - if name is not None: - self.name = name - if recipient_signature_providers is not None: - self.recipient_signature_providers = recipient_signature_providers - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if tabs is not None: - self.tabs = tabs + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('default_recipient'), kwargs.get('default_recipient', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('in_person_signer_name'), kwargs.get('in_person_signer_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('recipient_signature_providers'), kwargs.get('recipient_signature_providers', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) @property def access_code(self): @@ -442,8 +434,11 @@ def __eq__(self, other): if not isinstance(other, TemplateRole): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_shared_item.py b/docusign_esign/models/template_shared_item.py index 65356ac8..cec7289e 100644 --- a/docusign_esign/models/template_shared_item.py +++ b/docusign_esign/models/template_shared_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateSharedItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class TemplateSharedItem(object): 'template_name': 'templateName' } - def __init__(self, error_details=None, owner=None, shared=None, shared_groups=None, shared_users=None, template_id=None, template_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateSharedItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._owner = None @@ -62,20 +67,13 @@ def __init__(self, error_details=None, owner=None, shared=None, shared_groups=No self._template_name = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if owner is not None: - self.owner = owner - if shared is not None: - self.shared = shared - if shared_groups is not None: - self.shared_groups = shared_groups - if shared_users is not None: - self.shared_users = shared_users - if template_id is not None: - self.template_id = template_id - if template_name is not None: - self.template_name = template_name + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('shared_groups'), kwargs.get('shared_groups', None)) + setattr(self, "_{}".format('shared_users'), kwargs.get('shared_users', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('template_name'), kwargs.get('template_name', None)) @property def error_details(self): @@ -274,8 +272,11 @@ def __eq__(self, other): if not isinstance(other, TemplateSharedItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateSharedItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_summary.py b/docusign_esign/models/template_summary.py index 00c9563d..047bc699 100644 --- a/docusign_esign/models/template_summary.py +++ b/docusign_esign/models/template_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class TemplateSummary(object): 'uri': 'uri' } - def __init__(self, applied=None, document_id=None, document_name=None, name=None, template_id=None, template_match=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._applied = None self._document_id = None @@ -62,20 +67,13 @@ def __init__(self, applied=None, document_id=None, document_name=None, name=None self._uri = None self.discriminator = None - if applied is not None: - self.applied = applied - if document_id is not None: - self.document_id = document_id - if document_name is not None: - self.document_name = document_name - if name is not None: - self.name = name - if template_id is not None: - self.template_id = template_id - if template_match is not None: - self.template_match = template_match - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('applied'), kwargs.get('applied', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('document_name'), kwargs.get('document_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) + setattr(self, "_{}".format('template_match'), kwargs.get('template_match', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def applied(self): @@ -276,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, TemplateSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_tabs.py b/docusign_esign/models/template_tabs.py index 63de6d73..4a169265 100644 --- a/docusign_esign/models/template_tabs.py +++ b/docusign_esign/models/template_tabs.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateTabs(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -90,8 +92,11 @@ class TemplateTabs(object): 'zip_tabs': 'zipTabs' } - def __init__(self, approve_tabs=None, checkbox_tabs=None, company_tabs=None, date_signed_tabs=None, date_tabs=None, decline_tabs=None, email_address_tabs=None, email_tabs=None, envelope_id_tabs=None, first_name_tabs=None, formula_tabs=None, full_name_tabs=None, initial_here_tabs=None, last_name_tabs=None, list_tabs=None, notarize_tabs=None, note_tabs=None, number_tabs=None, radio_group_tabs=None, signer_attachment_tabs=None, sign_here_tabs=None, smart_section_tabs=None, ssn_tabs=None, text_tabs=None, title_tabs=None, view_tabs=None, zip_tabs=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateTabs - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._approve_tabs = None self._checkbox_tabs = None @@ -122,60 +127,33 @@ def __init__(self, approve_tabs=None, checkbox_tabs=None, company_tabs=None, dat self._zip_tabs = None self.discriminator = None - if approve_tabs is not None: - self.approve_tabs = approve_tabs - if checkbox_tabs is not None: - self.checkbox_tabs = checkbox_tabs - if company_tabs is not None: - self.company_tabs = company_tabs - if date_signed_tabs is not None: - self.date_signed_tabs = date_signed_tabs - if date_tabs is not None: - self.date_tabs = date_tabs - if decline_tabs is not None: - self.decline_tabs = decline_tabs - if email_address_tabs is not None: - self.email_address_tabs = email_address_tabs - if email_tabs is not None: - self.email_tabs = email_tabs - if envelope_id_tabs is not None: - self.envelope_id_tabs = envelope_id_tabs - if first_name_tabs is not None: - self.first_name_tabs = first_name_tabs - if formula_tabs is not None: - self.formula_tabs = formula_tabs - if full_name_tabs is not None: - self.full_name_tabs = full_name_tabs - if initial_here_tabs is not None: - self.initial_here_tabs = initial_here_tabs - if last_name_tabs is not None: - self.last_name_tabs = last_name_tabs - if list_tabs is not None: - self.list_tabs = list_tabs - if notarize_tabs is not None: - self.notarize_tabs = notarize_tabs - if note_tabs is not None: - self.note_tabs = note_tabs - if number_tabs is not None: - self.number_tabs = number_tabs - if radio_group_tabs is not None: - self.radio_group_tabs = radio_group_tabs - if signer_attachment_tabs is not None: - self.signer_attachment_tabs = signer_attachment_tabs - if sign_here_tabs is not None: - self.sign_here_tabs = sign_here_tabs - if smart_section_tabs is not None: - self.smart_section_tabs = smart_section_tabs - if ssn_tabs is not None: - self.ssn_tabs = ssn_tabs - if text_tabs is not None: - self.text_tabs = text_tabs - if title_tabs is not None: - self.title_tabs = title_tabs - if view_tabs is not None: - self.view_tabs = view_tabs - if zip_tabs is not None: - self.zip_tabs = zip_tabs + setattr(self, "_{}".format('approve_tabs'), kwargs.get('approve_tabs', None)) + setattr(self, "_{}".format('checkbox_tabs'), kwargs.get('checkbox_tabs', None)) + setattr(self, "_{}".format('company_tabs'), kwargs.get('company_tabs', None)) + setattr(self, "_{}".format('date_signed_tabs'), kwargs.get('date_signed_tabs', None)) + setattr(self, "_{}".format('date_tabs'), kwargs.get('date_tabs', None)) + setattr(self, "_{}".format('decline_tabs'), kwargs.get('decline_tabs', None)) + setattr(self, "_{}".format('email_address_tabs'), kwargs.get('email_address_tabs', None)) + setattr(self, "_{}".format('email_tabs'), kwargs.get('email_tabs', None)) + setattr(self, "_{}".format('envelope_id_tabs'), kwargs.get('envelope_id_tabs', None)) + setattr(self, "_{}".format('first_name_tabs'), kwargs.get('first_name_tabs', None)) + setattr(self, "_{}".format('formula_tabs'), kwargs.get('formula_tabs', None)) + setattr(self, "_{}".format('full_name_tabs'), kwargs.get('full_name_tabs', None)) + setattr(self, "_{}".format('initial_here_tabs'), kwargs.get('initial_here_tabs', None)) + setattr(self, "_{}".format('last_name_tabs'), kwargs.get('last_name_tabs', None)) + setattr(self, "_{}".format('list_tabs'), kwargs.get('list_tabs', None)) + setattr(self, "_{}".format('notarize_tabs'), kwargs.get('notarize_tabs', None)) + setattr(self, "_{}".format('note_tabs'), kwargs.get('note_tabs', None)) + setattr(self, "_{}".format('number_tabs'), kwargs.get('number_tabs', None)) + setattr(self, "_{}".format('radio_group_tabs'), kwargs.get('radio_group_tabs', None)) + setattr(self, "_{}".format('signer_attachment_tabs'), kwargs.get('signer_attachment_tabs', None)) + setattr(self, "_{}".format('sign_here_tabs'), kwargs.get('sign_here_tabs', None)) + setattr(self, "_{}".format('smart_section_tabs'), kwargs.get('smart_section_tabs', None)) + setattr(self, "_{}".format('ssn_tabs'), kwargs.get('ssn_tabs', None)) + setattr(self, "_{}".format('text_tabs'), kwargs.get('text_tabs', None)) + setattr(self, "_{}".format('title_tabs'), kwargs.get('title_tabs', None)) + setattr(self, "_{}".format('view_tabs'), kwargs.get('view_tabs', None)) + setattr(self, "_{}".format('zip_tabs'), kwargs.get('zip_tabs', None)) @property def approve_tabs(self): @@ -838,8 +816,11 @@ def __eq__(self, other): if not isinstance(other, TemplateTabs): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateTabs): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/template_update_summary.py b/docusign_esign/models/template_update_summary.py index 5895bbf2..1d98c404 100644 --- a/docusign_esign/models/template_update_summary.py +++ b/docusign_esign/models/template_update_summary.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TemplateUpdateSummary(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class TemplateUpdateSummary(object): 'text_custom_field_update_results': 'textCustomFieldUpdateResults' } - def __init__(self, bulk_envelope_status=None, envelope_id=None, error_details=None, list_custom_field_update_results=None, lock_information=None, recipient_update_results=None, tab_update_results=None, text_custom_field_update_results=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TemplateUpdateSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._bulk_envelope_status = None self._envelope_id = None @@ -65,22 +70,14 @@ def __init__(self, bulk_envelope_status=None, envelope_id=None, error_details=No self._text_custom_field_update_results = None self.discriminator = None - if bulk_envelope_status is not None: - self.bulk_envelope_status = bulk_envelope_status - if envelope_id is not None: - self.envelope_id = envelope_id - if error_details is not None: - self.error_details = error_details - if list_custom_field_update_results is not None: - self.list_custom_field_update_results = list_custom_field_update_results - if lock_information is not None: - self.lock_information = lock_information - if recipient_update_results is not None: - self.recipient_update_results = recipient_update_results - if tab_update_results is not None: - self.tab_update_results = tab_update_results - if text_custom_field_update_results is not None: - self.text_custom_field_update_results = text_custom_field_update_results + setattr(self, "_{}".format('bulk_envelope_status'), kwargs.get('bulk_envelope_status', None)) + setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('list_custom_field_update_results'), kwargs.get('list_custom_field_update_results', None)) + setattr(self, "_{}".format('lock_information'), kwargs.get('lock_information', None)) + setattr(self, "_{}".format('recipient_update_results'), kwargs.get('recipient_update_results', None)) + setattr(self, "_{}".format('tab_update_results'), kwargs.get('tab_update_results', None)) + setattr(self, "_{}".format('text_custom_field_update_results'), kwargs.get('text_custom_field_update_results', None)) @property def bulk_envelope_status(self): @@ -298,8 +295,11 @@ def __eq__(self, other): if not isinstance(other, TemplateUpdateSummary): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TemplateUpdateSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/text.py b/docusign_esign/models/text.py index ee24dcdb..4409eaa1 100644 --- a/docusign_esign/models/text.py +++ b/docusign_esign/models/text.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Text(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -136,8 +138,11 @@ class Text(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, formula=None, height=None, is_payment_amount=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Text - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -191,106 +196,56 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if formula is not None: - self.formula = formula - if height is not None: - self.height = height - if is_payment_amount is not None: - self.is_payment_amount = is_payment_amount - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('formula'), kwargs.get('formula', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('is_payment_amount'), kwargs.get('is_payment_amount', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1478,8 +1433,11 @@ def __eq__(self, other): if not isinstance(other, Text): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Text): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/text_custom_field.py b/docusign_esign/models/text_custom_field.py index c43f80a1..c910ddf1 100644 --- a/docusign_esign/models/text_custom_field.py +++ b/docusign_esign/models/text_custom_field.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class TextCustomField(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class TextCustomField(object): 'value': 'value' } - def __init__(self, configuration_type=None, error_details=None, field_id=None, name=None, required=None, show=None, value=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """TextCustomField - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._configuration_type = None self._error_details = None @@ -62,20 +67,13 @@ def __init__(self, configuration_type=None, error_details=None, field_id=None, n self._value = None self.discriminator = None - if configuration_type is not None: - self.configuration_type = configuration_type - if error_details is not None: - self.error_details = error_details - if field_id is not None: - self.field_id = field_id - if name is not None: - self.name = name - if required is not None: - self.required = required - if show is not None: - self.show = show - if value is not None: - self.value = value + setattr(self, "_{}".format('configuration_type'), kwargs.get('configuration_type', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('field_id'), kwargs.get('field_id', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('show'), kwargs.get('show', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) @property def configuration_type(self): @@ -276,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, TextCustomField): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TextCustomField): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/title.py b/docusign_esign/models/title.py index 8f33c491..a7ad0d0a 100644 --- a/docusign_esign/models/title.py +++ b/docusign_esign/models/title.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Title(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -118,8 +120,11 @@ class Title(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, required=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Title - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -164,88 +169,47 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if required is not None: - self.required = required - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1226,8 +1190,11 @@ def __eq__(self, other): if not isinstance(other, Title): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Title): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/usage_history.py b/docusign_esign/models/usage_history.py index 92c4c60a..32df0ccb 100644 --- a/docusign_esign/models/usage_history.py +++ b/docusign_esign/models/usage_history.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UsageHistory(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class UsageHistory(object): 'signed_count': 'signedCount' } - def __init__(self, last_sent_date_time=None, last_signed_date_time=None, sent_count=None, signed_count=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UsageHistory - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._last_sent_date_time = None self._last_signed_date_time = None @@ -53,14 +58,10 @@ def __init__(self, last_sent_date_time=None, last_signed_date_time=None, sent_co self._signed_count = None self.discriminator = None - if last_sent_date_time is not None: - self.last_sent_date_time = last_sent_date_time - if last_signed_date_time is not None: - self.last_signed_date_time = last_signed_date_time - if sent_count is not None: - self.sent_count = sent_count - if signed_count is not None: - self.signed_count = signed_count + setattr(self, "_{}".format('last_sent_date_time'), kwargs.get('last_sent_date_time', None)) + setattr(self, "_{}".format('last_signed_date_time'), kwargs.get('last_signed_date_time', None)) + setattr(self, "_{}".format('sent_count'), kwargs.get('sent_count', None)) + setattr(self, "_{}".format('signed_count'), kwargs.get('signed_count', None)) @property def last_sent_date_time(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, UsageHistory): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UsageHistory): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_account_management_granular_information.py b/docusign_esign/models/user_account_management_granular_information.py index 7d7e41c4..364ee3f9 100644 --- a/docusign_esign/models/user_account_management_granular_information.py +++ b/docusign_esign/models/user_account_management_granular_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserAccountManagementGranularInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -37,6 +39,8 @@ class UserAccountManagementGranularInformation(object): 'can_manage_account_settings_metadata': 'SettingsMetadata', 'can_manage_admins': 'str', 'can_manage_admins_metadata': 'SettingsMetadata', + 'can_manage_document_retention': 'str', + 'can_manage_document_retention_metadata': 'SettingsMetadata', 'can_manage_envelope_transfer': 'str', 'can_manage_envelope_transfer_metadata': 'SettingsMetadata', 'can_manage_groups': 'str', @@ -60,6 +64,8 @@ class UserAccountManagementGranularInformation(object): 'can_manage_account_settings_metadata': 'canManageAccountSettingsMetadata', 'can_manage_admins': 'canManageAdmins', 'can_manage_admins_metadata': 'canManageAdminsMetadata', + 'can_manage_document_retention': 'canManageDocumentRetention', + 'can_manage_document_retention_metadata': 'canManageDocumentRetentionMetadata', 'can_manage_envelope_transfer': 'canManageEnvelopeTransfer', 'can_manage_envelope_transfer_metadata': 'canManageEnvelopeTransferMetadata', 'can_manage_groups': 'canManageGroups', @@ -76,8 +82,11 @@ class UserAccountManagementGranularInformation(object): 'can_view_users_metadata': 'canViewUsersMetadata' } - def __init__(self, can_manage_account_security_settings=None, can_manage_account_security_settings_metadata=None, can_manage_account_settings=None, can_manage_account_settings_metadata=None, can_manage_admins=None, can_manage_admins_metadata=None, can_manage_envelope_transfer=None, can_manage_envelope_transfer_metadata=None, can_manage_groups=None, can_manage_groups_metadata=None, can_manage_reporting=None, can_manage_reporting_metadata=None, can_manage_sharing=None, can_manage_sharing_metadata=None, can_manage_signing_groups=None, can_manage_signing_groups_metadata=None, can_manage_users=None, can_manage_users_metadata=None, can_view_users=None, can_view_users_metadata=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserAccountManagementGranularInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._can_manage_account_security_settings = None self._can_manage_account_security_settings_metadata = None @@ -85,6 +94,8 @@ def __init__(self, can_manage_account_security_settings=None, can_manage_account self._can_manage_account_settings_metadata = None self._can_manage_admins = None self._can_manage_admins_metadata = None + self._can_manage_document_retention = None + self._can_manage_document_retention_metadata = None self._can_manage_envelope_transfer = None self._can_manage_envelope_transfer_metadata = None self._can_manage_groups = None @@ -101,46 +112,28 @@ def __init__(self, can_manage_account_security_settings=None, can_manage_account self._can_view_users_metadata = None self.discriminator = None - if can_manage_account_security_settings is not None: - self.can_manage_account_security_settings = can_manage_account_security_settings - if can_manage_account_security_settings_metadata is not None: - self.can_manage_account_security_settings_metadata = can_manage_account_security_settings_metadata - if can_manage_account_settings is not None: - self.can_manage_account_settings = can_manage_account_settings - if can_manage_account_settings_metadata is not None: - self.can_manage_account_settings_metadata = can_manage_account_settings_metadata - if can_manage_admins is not None: - self.can_manage_admins = can_manage_admins - if can_manage_admins_metadata is not None: - self.can_manage_admins_metadata = can_manage_admins_metadata - if can_manage_envelope_transfer is not None: - self.can_manage_envelope_transfer = can_manage_envelope_transfer - if can_manage_envelope_transfer_metadata is not None: - self.can_manage_envelope_transfer_metadata = can_manage_envelope_transfer_metadata - if can_manage_groups is not None: - self.can_manage_groups = can_manage_groups - if can_manage_groups_metadata is not None: - self.can_manage_groups_metadata = can_manage_groups_metadata - if can_manage_reporting is not None: - self.can_manage_reporting = can_manage_reporting - if can_manage_reporting_metadata is not None: - self.can_manage_reporting_metadata = can_manage_reporting_metadata - if can_manage_sharing is not None: - self.can_manage_sharing = can_manage_sharing - if can_manage_sharing_metadata is not None: - self.can_manage_sharing_metadata = can_manage_sharing_metadata - if can_manage_signing_groups is not None: - self.can_manage_signing_groups = can_manage_signing_groups - if can_manage_signing_groups_metadata is not None: - self.can_manage_signing_groups_metadata = can_manage_signing_groups_metadata - if can_manage_users is not None: - self.can_manage_users = can_manage_users - if can_manage_users_metadata is not None: - self.can_manage_users_metadata = can_manage_users_metadata - if can_view_users is not None: - self.can_view_users = can_view_users - if can_view_users_metadata is not None: - self.can_view_users_metadata = can_view_users_metadata + setattr(self, "_{}".format('can_manage_account_security_settings'), kwargs.get('can_manage_account_security_settings', None)) + setattr(self, "_{}".format('can_manage_account_security_settings_metadata'), kwargs.get('can_manage_account_security_settings_metadata', None)) + setattr(self, "_{}".format('can_manage_account_settings'), kwargs.get('can_manage_account_settings', None)) + setattr(self, "_{}".format('can_manage_account_settings_metadata'), kwargs.get('can_manage_account_settings_metadata', None)) + setattr(self, "_{}".format('can_manage_admins'), kwargs.get('can_manage_admins', None)) + setattr(self, "_{}".format('can_manage_admins_metadata'), kwargs.get('can_manage_admins_metadata', None)) + setattr(self, "_{}".format('can_manage_document_retention'), kwargs.get('can_manage_document_retention', None)) + setattr(self, "_{}".format('can_manage_document_retention_metadata'), kwargs.get('can_manage_document_retention_metadata', None)) + setattr(self, "_{}".format('can_manage_envelope_transfer'), kwargs.get('can_manage_envelope_transfer', None)) + setattr(self, "_{}".format('can_manage_envelope_transfer_metadata'), kwargs.get('can_manage_envelope_transfer_metadata', None)) + setattr(self, "_{}".format('can_manage_groups'), kwargs.get('can_manage_groups', None)) + setattr(self, "_{}".format('can_manage_groups_metadata'), kwargs.get('can_manage_groups_metadata', None)) + setattr(self, "_{}".format('can_manage_reporting'), kwargs.get('can_manage_reporting', None)) + setattr(self, "_{}".format('can_manage_reporting_metadata'), kwargs.get('can_manage_reporting_metadata', None)) + setattr(self, "_{}".format('can_manage_sharing'), kwargs.get('can_manage_sharing', None)) + setattr(self, "_{}".format('can_manage_sharing_metadata'), kwargs.get('can_manage_sharing_metadata', None)) + setattr(self, "_{}".format('can_manage_signing_groups'), kwargs.get('can_manage_signing_groups', None)) + setattr(self, "_{}".format('can_manage_signing_groups_metadata'), kwargs.get('can_manage_signing_groups_metadata', None)) + setattr(self, "_{}".format('can_manage_users'), kwargs.get('can_manage_users', None)) + setattr(self, "_{}".format('can_manage_users_metadata'), kwargs.get('can_manage_users_metadata', None)) + setattr(self, "_{}".format('can_view_users'), kwargs.get('can_view_users', None)) + setattr(self, "_{}".format('can_view_users_metadata'), kwargs.get('can_view_users_metadata', None)) @property def can_manage_account_security_settings(self): @@ -274,6 +267,50 @@ def can_manage_admins_metadata(self, can_manage_admins_metadata): self._can_manage_admins_metadata = can_manage_admins_metadata + @property + def can_manage_document_retention(self): + """Gets the can_manage_document_retention of this UserAccountManagementGranularInformation. # noqa: E501 + + # noqa: E501 + + :return: The can_manage_document_retention of this UserAccountManagementGranularInformation. # noqa: E501 + :rtype: str + """ + return self._can_manage_document_retention + + @can_manage_document_retention.setter + def can_manage_document_retention(self, can_manage_document_retention): + """Sets the can_manage_document_retention of this UserAccountManagementGranularInformation. + + # noqa: E501 + + :param can_manage_document_retention: The can_manage_document_retention of this UserAccountManagementGranularInformation. # noqa: E501 + :type: str + """ + + self._can_manage_document_retention = can_manage_document_retention + + @property + def can_manage_document_retention_metadata(self): + """Gets the can_manage_document_retention_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + + + :return: The can_manage_document_retention_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + :rtype: SettingsMetadata + """ + return self._can_manage_document_retention_metadata + + @can_manage_document_retention_metadata.setter + def can_manage_document_retention_metadata(self, can_manage_document_retention_metadata): + """Sets the can_manage_document_retention_metadata of this UserAccountManagementGranularInformation. + + + :param can_manage_document_retention_metadata: The can_manage_document_retention_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + :type: SettingsMetadata + """ + + self._can_manage_document_retention_metadata = can_manage_document_retention_metadata + @property def can_manage_envelope_transfer(self): """Gets the can_manage_envelope_transfer of this UserAccountManagementGranularInformation. # noqa: E501 @@ -622,8 +659,11 @@ def __eq__(self, other): if not isinstance(other, UserAccountManagementGranularInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserAccountManagementGranularInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_info.py b/docusign_esign/models/user_info.py index 6ffe820e..2138d8ff 100644 --- a/docusign_esign/models/user_info.py +++ b/docusign_esign/models/user_info.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserInfo(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -56,8 +58,11 @@ class UserInfo(object): 'user_type': 'userType' } - def __init__(self, activation_access_code=None, email=None, error_details=None, login_status=None, send_activation_email=None, uri=None, user_id=None, user_name=None, user_status=None, user_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._activation_access_code = None self._email = None @@ -71,26 +76,16 @@ def __init__(self, activation_access_code=None, email=None, error_details=None, self._user_type = None self.discriminator = None - if activation_access_code is not None: - self.activation_access_code = activation_access_code - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if login_status is not None: - self.login_status = login_status - if send_activation_email is not None: - self.send_activation_email = send_activation_email - if uri is not None: - self.uri = uri - if user_id is not None: - self.user_id = user_id - if user_name is not None: - self.user_name = user_name - if user_status is not None: - self.user_status = user_status - if user_type is not None: - self.user_type = user_type + setattr(self, "_{}".format('activation_access_code'), kwargs.get('activation_access_code', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('login_status'), kwargs.get('login_status', None)) + setattr(self, "_{}".format('send_activation_email'), kwargs.get('send_activation_email', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) + setattr(self, "_{}".format('user_status'), kwargs.get('user_status', None)) + setattr(self, "_{}".format('user_type'), kwargs.get('user_type', None)) @property def activation_access_code(self): @@ -360,8 +355,11 @@ def __eq__(self, other): if not isinstance(other, UserInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_info_list.py b/docusign_esign/models/user_info_list.py index 60b2b2b8..a3069095 100644 --- a/docusign_esign/models/user_info_list.py +++ b/docusign_esign/models/user_info_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserInfoList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class UserInfoList(object): 'users': 'users' } - def __init__(self, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserInfoList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._users = None self.discriminator = None - if users is not None: - self.users = users + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def users(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, UserInfoList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserInfoList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_information.py b/docusign_esign/models/user_information.py index c15201b9..0889c22a 100644 --- a/docusign_esign/models/user_information.py +++ b/docusign_esign/models/user_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -112,8 +114,11 @@ class UserInformation(object): 'work_address': 'workAddress' } - def __init__(self, account_management_granular=None, activation_access_code=None, country_code=None, created_date_time=None, custom_settings=None, email=None, enable_connect_for_user=None, error_details=None, first_name=None, forgotten_password_info=None, group_list=None, home_address=None, initials_image_uri=None, is_admin=None, job_title=None, last_login=None, last_name=None, login_status=None, middle_name=None, password=None, password_expiration=None, permission_profile_id=None, permission_profile_name=None, profile_image_uri=None, send_activation_email=None, send_activation_on_invalid_login=None, signature_image_uri=None, subscribe=None, suffix_name=None, title=None, uri=None, user_id=None, user_name=None, user_profile_last_modified_date=None, user_settings=None, user_status=None, user_type=None, work_address=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_management_granular = None self._activation_access_code = None @@ -155,82 +160,44 @@ def __init__(self, account_management_granular=None, activation_access_code=None self._work_address = None self.discriminator = None - if account_management_granular is not None: - self.account_management_granular = account_management_granular - if activation_access_code is not None: - self.activation_access_code = activation_access_code - if country_code is not None: - self.country_code = country_code - if created_date_time is not None: - self.created_date_time = created_date_time - if custom_settings is not None: - self.custom_settings = custom_settings - if email is not None: - self.email = email - if enable_connect_for_user is not None: - self.enable_connect_for_user = enable_connect_for_user - if error_details is not None: - self.error_details = error_details - if first_name is not None: - self.first_name = first_name - if forgotten_password_info is not None: - self.forgotten_password_info = forgotten_password_info - if group_list is not None: - self.group_list = group_list - if home_address is not None: - self.home_address = home_address - if initials_image_uri is not None: - self.initials_image_uri = initials_image_uri - if is_admin is not None: - self.is_admin = is_admin - if job_title is not None: - self.job_title = job_title - if last_login is not None: - self.last_login = last_login - if last_name is not None: - self.last_name = last_name - if login_status is not None: - self.login_status = login_status - if middle_name is not None: - self.middle_name = middle_name - if password is not None: - self.password = password - if password_expiration is not None: - self.password_expiration = password_expiration - if permission_profile_id is not None: - self.permission_profile_id = permission_profile_id - if permission_profile_name is not None: - self.permission_profile_name = permission_profile_name - if profile_image_uri is not None: - self.profile_image_uri = profile_image_uri - if send_activation_email is not None: - self.send_activation_email = send_activation_email - if send_activation_on_invalid_login is not None: - self.send_activation_on_invalid_login = send_activation_on_invalid_login - if signature_image_uri is not None: - self.signature_image_uri = signature_image_uri - if subscribe is not None: - self.subscribe = subscribe - if suffix_name is not None: - self.suffix_name = suffix_name - if title is not None: - self.title = title - if uri is not None: - self.uri = uri - if user_id is not None: - self.user_id = user_id - if user_name is not None: - self.user_name = user_name - if user_profile_last_modified_date is not None: - self.user_profile_last_modified_date = user_profile_last_modified_date - if user_settings is not None: - self.user_settings = user_settings - if user_status is not None: - self.user_status = user_status - if user_type is not None: - self.user_type = user_type - if work_address is not None: - self.work_address = work_address + setattr(self, "_{}".format('account_management_granular'), kwargs.get('account_management_granular', None)) + setattr(self, "_{}".format('activation_access_code'), kwargs.get('activation_access_code', None)) + setattr(self, "_{}".format('country_code'), kwargs.get('country_code', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('custom_settings'), kwargs.get('custom_settings', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('enable_connect_for_user'), kwargs.get('enable_connect_for_user', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('forgotten_password_info'), kwargs.get('forgotten_password_info', None)) + setattr(self, "_{}".format('group_list'), kwargs.get('group_list', None)) + setattr(self, "_{}".format('home_address'), kwargs.get('home_address', None)) + setattr(self, "_{}".format('initials_image_uri'), kwargs.get('initials_image_uri', None)) + setattr(self, "_{}".format('is_admin'), kwargs.get('is_admin', None)) + setattr(self, "_{}".format('job_title'), kwargs.get('job_title', None)) + setattr(self, "_{}".format('last_login'), kwargs.get('last_login', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('login_status'), kwargs.get('login_status', None)) + setattr(self, "_{}".format('middle_name'), kwargs.get('middle_name', None)) + setattr(self, "_{}".format('password'), kwargs.get('password', None)) + setattr(self, "_{}".format('password_expiration'), kwargs.get('password_expiration', None)) + setattr(self, "_{}".format('permission_profile_id'), kwargs.get('permission_profile_id', None)) + setattr(self, "_{}".format('permission_profile_name'), kwargs.get('permission_profile_name', None)) + setattr(self, "_{}".format('profile_image_uri'), kwargs.get('profile_image_uri', None)) + setattr(self, "_{}".format('send_activation_email'), kwargs.get('send_activation_email', None)) + setattr(self, "_{}".format('send_activation_on_invalid_login'), kwargs.get('send_activation_on_invalid_login', None)) + setattr(self, "_{}".format('signature_image_uri'), kwargs.get('signature_image_uri', None)) + setattr(self, "_{}".format('subscribe'), kwargs.get('subscribe', None)) + setattr(self, "_{}".format('suffix_name'), kwargs.get('suffix_name', None)) + setattr(self, "_{}".format('title'), kwargs.get('title', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) + setattr(self, "_{}".format('user_profile_last_modified_date'), kwargs.get('user_profile_last_modified_date', None)) + setattr(self, "_{}".format('user_settings'), kwargs.get('user_settings', None)) + setattr(self, "_{}".format('user_status'), kwargs.get('user_status', None)) + setattr(self, "_{}".format('user_type'), kwargs.get('user_type', None)) + setattr(self, "_{}".format('work_address'), kwargs.get('work_address', None)) @property def account_management_granular(self): @@ -1136,8 +1103,11 @@ def __eq__(self, other): if not isinstance(other, UserInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_information_list.py b/docusign_esign/models/user_information_list.py index 52556336..92d2f8da 100644 --- a/docusign_esign/models/user_information_list.py +++ b/docusign_esign/models/user_information_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserInformationList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class UserInformationList(object): 'users': 'users' } - def __init__(self, end_position=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserInformationList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._next_uri = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, next_uri=None, previous_uri=None, result_s self._users = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size - if users is not None: - self.users = users + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, UserInformationList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserInformationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_password_information.py b/docusign_esign/models/user_password_information.py index 62a0e23b..ae43db67 100644 --- a/docusign_esign/models/user_password_information.py +++ b/docusign_esign/models/user_password_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserPasswordInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class UserPasswordInformation(object): 'new_password': 'newPassword' } - def __init__(self, current_password=None, email=None, forgotten_password_info=None, new_password=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserPasswordInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._current_password = None self._email = None @@ -53,14 +58,10 @@ def __init__(self, current_password=None, email=None, forgotten_password_info=No self._new_password = None self.discriminator = None - if current_password is not None: - self.current_password = current_password - if email is not None: - self.email = email - if forgotten_password_info is not None: - self.forgotten_password_info = forgotten_password_info - if new_password is not None: - self.new_password = new_password + setattr(self, "_{}".format('current_password'), kwargs.get('current_password', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('forgotten_password_info'), kwargs.get('forgotten_password_info', None)) + setattr(self, "_{}".format('new_password'), kwargs.get('new_password', None)) @property def current_password(self): @@ -192,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, UserPasswordInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserPasswordInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_password_rules.py b/docusign_esign/models/user_password_rules.py index e282b6b6..cef91972 100644 --- a/docusign_esign/models/user_password_rules.py +++ b/docusign_esign/models/user_password_rules.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserPasswordRules(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class UserPasswordRules(object): 'user_id': 'userId' } - def __init__(self, password_rules=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserPasswordRules - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._password_rules = None self._user_id = None self.discriminator = None - if password_rules is not None: - self.password_rules = password_rules - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('password_rules'), kwargs.get('password_rules', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def password_rules(self): @@ -136,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, UserPasswordRules): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserPasswordRules): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_profile.py b/docusign_esign/models/user_profile.py index d6022433..848b0916 100644 --- a/docusign_esign/models/user_profile.py +++ b/docusign_esign/models/user_profile.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserProfile(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -60,8 +62,11 @@ class UserProfile(object): 'user_profile_last_modified_date': 'userProfileLastModifiedDate' } - def __init__(self, address=None, authentication_methods=None, company_name=None, display_organization_info=None, display_personal_info=None, display_profile=None, display_usage_history=None, profile_image_uri=None, title=None, usage_history=None, user_details=None, user_profile_last_modified_date=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserProfile - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._address = None self._authentication_methods = None @@ -77,30 +82,18 @@ def __init__(self, address=None, authentication_methods=None, company_name=None, self._user_profile_last_modified_date = None self.discriminator = None - if address is not None: - self.address = address - if authentication_methods is not None: - self.authentication_methods = authentication_methods - if company_name is not None: - self.company_name = company_name - if display_organization_info is not None: - self.display_organization_info = display_organization_info - if display_personal_info is not None: - self.display_personal_info = display_personal_info - if display_profile is not None: - self.display_profile = display_profile - if display_usage_history is not None: - self.display_usage_history = display_usage_history - if profile_image_uri is not None: - self.profile_image_uri = profile_image_uri - if title is not None: - self.title = title - if usage_history is not None: - self.usage_history = usage_history - if user_details is not None: - self.user_details = user_details - if user_profile_last_modified_date is not None: - self.user_profile_last_modified_date = user_profile_last_modified_date + setattr(self, "_{}".format('address'), kwargs.get('address', None)) + setattr(self, "_{}".format('authentication_methods'), kwargs.get('authentication_methods', None)) + setattr(self, "_{}".format('company_name'), kwargs.get('company_name', None)) + setattr(self, "_{}".format('display_organization_info'), kwargs.get('display_organization_info', None)) + setattr(self, "_{}".format('display_personal_info'), kwargs.get('display_personal_info', None)) + setattr(self, "_{}".format('display_profile'), kwargs.get('display_profile', None)) + setattr(self, "_{}".format('display_usage_history'), kwargs.get('display_usage_history', None)) + setattr(self, "_{}".format('profile_image_uri'), kwargs.get('profile_image_uri', None)) + setattr(self, "_{}".format('title'), kwargs.get('title', None)) + setattr(self, "_{}".format('usage_history'), kwargs.get('usage_history', None)) + setattr(self, "_{}".format('user_details'), kwargs.get('user_details', None)) + setattr(self, "_{}".format('user_profile_last_modified_date'), kwargs.get('user_profile_last_modified_date', None)) @property def address(self): @@ -412,8 +405,11 @@ def __eq__(self, other): if not isinstance(other, UserProfile): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserProfile): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_settings_information.py b/docusign_esign/models/user_settings_information.py index 59473746..73efae1c 100644 --- a/docusign_esign/models/user_settings_information.py +++ b/docusign_esign/models/user_settings_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserSettingsInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class UserSettingsInformation(object): 'user_settings': 'userSettings' } - def __init__(self, account_management_granular=None, sender_email_notifications=None, signer_email_notifications=None, user_settings=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserSettingsInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_management_granular = None self._sender_email_notifications = None @@ -53,14 +58,10 @@ def __init__(self, account_management_granular=None, sender_email_notifications= self._user_settings = None self.discriminator = None - if account_management_granular is not None: - self.account_management_granular = account_management_granular - if sender_email_notifications is not None: - self.sender_email_notifications = sender_email_notifications - if signer_email_notifications is not None: - self.signer_email_notifications = signer_email_notifications - if user_settings is not None: - self.user_settings = user_settings + setattr(self, "_{}".format('account_management_granular'), kwargs.get('account_management_granular', None)) + setattr(self, "_{}".format('sender_email_notifications'), kwargs.get('sender_email_notifications', None)) + setattr(self, "_{}".format('signer_email_notifications'), kwargs.get('signer_email_notifications', None)) + setattr(self, "_{}".format('user_settings'), kwargs.get('user_settings', None)) @property def account_management_granular(self): @@ -188,8 +189,11 @@ def __eq__(self, other): if not isinstance(other, UserSettingsInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSettingsInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_shared_item.py b/docusign_esign/models/user_shared_item.py index eea2ca7b..137ab06b 100644 --- a/docusign_esign/models/user_shared_item.py +++ b/docusign_esign/models/user_shared_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserSharedItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -42,20 +44,20 @@ class UserSharedItem(object): 'user': 'user' } - def __init__(self, error_details=None, shared=None, user=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserSharedItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._error_details = None self._shared = None self._user = None self.discriminator = None - if error_details is not None: - self.error_details = error_details - if shared is not None: - self.shared = shared - if user is not None: - self.user = user + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('user'), kwargs.get('user', None)) @property def error_details(self): @@ -162,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, UserSharedItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSharedItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_signature.py b/docusign_esign/models/user_signature.py index 30b6ecb8..f431e6f5 100644 --- a/docusign_esign/models/user_signature.py +++ b/docusign_esign/models/user_signature.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserSignature(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -78,8 +80,11 @@ class UserSignature(object): 'stamp_type': 'stampType' } - def __init__(self, adopted_date_time=None, created_date_time=None, date_stamp_properties=None, error_details=None, external_id=None, image_type=None, initials150_image_id=None, initials_image_uri=None, is_default=None, phonetic_name=None, signature150_image_id=None, signature_font=None, signature_id=None, signature_image_uri=None, signature_initials=None, signature_name=None, signature_type=None, stamp_format=None, stamp_image_uri=None, stamp_size_mm=None, stamp_type=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserSignature - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._adopted_date_time = None self._created_date_time = None @@ -104,48 +109,27 @@ def __init__(self, adopted_date_time=None, created_date_time=None, date_stamp_pr self._stamp_type = None self.discriminator = None - if adopted_date_time is not None: - self.adopted_date_time = adopted_date_time - if created_date_time is not None: - self.created_date_time = created_date_time - if date_stamp_properties is not None: - self.date_stamp_properties = date_stamp_properties - if error_details is not None: - self.error_details = error_details - if external_id is not None: - self.external_id = external_id - if image_type is not None: - self.image_type = image_type - if initials150_image_id is not None: - self.initials150_image_id = initials150_image_id - if initials_image_uri is not None: - self.initials_image_uri = initials_image_uri - if is_default is not None: - self.is_default = is_default - if phonetic_name is not None: - self.phonetic_name = phonetic_name - if signature150_image_id is not None: - self.signature150_image_id = signature150_image_id - if signature_font is not None: - self.signature_font = signature_font - if signature_id is not None: - self.signature_id = signature_id - if signature_image_uri is not None: - self.signature_image_uri = signature_image_uri - if signature_initials is not None: - self.signature_initials = signature_initials - if signature_name is not None: - self.signature_name = signature_name - if signature_type is not None: - self.signature_type = signature_type - if stamp_format is not None: - self.stamp_format = stamp_format - if stamp_image_uri is not None: - self.stamp_image_uri = stamp_image_uri - if stamp_size_mm is not None: - self.stamp_size_mm = stamp_size_mm - if stamp_type is not None: - self.stamp_type = stamp_type + setattr(self, "_{}".format('adopted_date_time'), kwargs.get('adopted_date_time', None)) + setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) + setattr(self, "_{}".format('date_stamp_properties'), kwargs.get('date_stamp_properties', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('external_id'), kwargs.get('external_id', None)) + setattr(self, "_{}".format('image_type'), kwargs.get('image_type', None)) + setattr(self, "_{}".format('initials150_image_id'), kwargs.get('initials150_image_id', None)) + setattr(self, "_{}".format('initials_image_uri'), kwargs.get('initials_image_uri', None)) + setattr(self, "_{}".format('is_default'), kwargs.get('is_default', None)) + setattr(self, "_{}".format('phonetic_name'), kwargs.get('phonetic_name', None)) + setattr(self, "_{}".format('signature150_image_id'), kwargs.get('signature150_image_id', None)) + setattr(self, "_{}".format('signature_font'), kwargs.get('signature_font', None)) + setattr(self, "_{}".format('signature_id'), kwargs.get('signature_id', None)) + setattr(self, "_{}".format('signature_image_uri'), kwargs.get('signature_image_uri', None)) + setattr(self, "_{}".format('signature_initials'), kwargs.get('signature_initials', None)) + setattr(self, "_{}".format('signature_name'), kwargs.get('signature_name', None)) + setattr(self, "_{}".format('signature_type'), kwargs.get('signature_type', None)) + setattr(self, "_{}".format('stamp_format'), kwargs.get('stamp_format', None)) + setattr(self, "_{}".format('stamp_image_uri'), kwargs.get('stamp_image_uri', None)) + setattr(self, "_{}".format('stamp_size_mm'), kwargs.get('stamp_size_mm', None)) + setattr(self, "_{}".format('stamp_type'), kwargs.get('stamp_type', None)) @property def adopted_date_time(self): @@ -666,8 +650,11 @@ def __eq__(self, other): if not isinstance(other, UserSignature): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSignature): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_signature_definition.py b/docusign_esign/models/user_signature_definition.py index 27af3d4f..d2c62b3e 100644 --- a/docusign_esign/models/user_signature_definition.py +++ b/docusign_esign/models/user_signature_definition.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserSignatureDefinition(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -44,8 +46,11 @@ class UserSignatureDefinition(object): 'signature_name': 'signatureName' } - def __init__(self, signature_font=None, signature_id=None, signature_initials=None, signature_name=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserSignatureDefinition - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._signature_font = None self._signature_id = None @@ -53,14 +58,10 @@ def __init__(self, signature_font=None, signature_id=None, signature_initials=No self._signature_name = None self.discriminator = None - if signature_font is not None: - self.signature_font = signature_font - if signature_id is not None: - self.signature_id = signature_id - if signature_initials is not None: - self.signature_initials = signature_initials - if signature_name is not None: - self.signature_name = signature_name + setattr(self, "_{}".format('signature_font'), kwargs.get('signature_font', None)) + setattr(self, "_{}".format('signature_id'), kwargs.get('signature_id', None)) + setattr(self, "_{}".format('signature_initials'), kwargs.get('signature_initials', None)) + setattr(self, "_{}".format('signature_name'), kwargs.get('signature_name', None)) @property def signature_font(self): @@ -194,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, UserSignatureDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSignatureDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_signatures_information.py b/docusign_esign/models/user_signatures_information.py index 39175021..592bc83e 100644 --- a/docusign_esign/models/user_signatures_information.py +++ b/docusign_esign/models/user_signatures_information.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserSignaturesInformation(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class UserSignaturesInformation(object): 'user_signatures': 'userSignatures' } - def __init__(self, user_signatures=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserSignaturesInformation - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._user_signatures = None self.discriminator = None - if user_signatures is not None: - self.user_signatures = user_signatures + setattr(self, "_{}".format('user_signatures'), kwargs.get('user_signatures', None)) @property def user_signatures(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, UserSignaturesInformation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSignaturesInformation): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/user_social_id_result.py b/docusign_esign/models/user_social_id_result.py index 04f47bb6..6b8f794e 100644 --- a/docusign_esign/models/user_social_id_result.py +++ b/docusign_esign/models/user_social_id_result.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UserSocialIdResult(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -40,17 +42,18 @@ class UserSocialIdResult(object): 'user_id': 'userId' } - def __init__(self, social_account_information=None, user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UserSocialIdResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._social_account_information = None self._user_id = None self.discriminator = None - if social_account_information is not None: - self.social_account_information = social_account_information - if user_id is not None: - self.user_id = user_id + setattr(self, "_{}".format('social_account_information'), kwargs.get('social_account_information', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) @property def social_account_information(self): @@ -138,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, UserSocialIdResult): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSocialIdResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/users_response.py b/docusign_esign/models/users_response.py index 004d52e0..6d3194be 100644 --- a/docusign_esign/models/users_response.py +++ b/docusign_esign/models/users_response.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class UsersResponse(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -50,8 +52,11 @@ class UsersResponse(object): 'users': 'users' } - def __init__(self, end_position=None, next_uri=None, previous_uri=None, result_set_size=None, start_position=None, total_set_size=None, users=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """UsersResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._next_uri = None @@ -62,20 +67,13 @@ def __init__(self, end_position=None, next_uri=None, previous_uri=None, result_s self._users = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if next_uri is not None: - self.next_uri = next_uri - if previous_uri is not None: - self.previous_uri = previous_uri - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size - if users is not None: - self.users = users + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) + setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) + setattr(self, "_{}".format('users'), kwargs.get('users', None)) @property def end_position(self): @@ -278,8 +276,11 @@ def __eq__(self, other): if not isinstance(other, UsersResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UsersResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/view.py b/docusign_esign/models/view.py index 93216982..3f8ae0e9 100644 --- a/docusign_esign/models/view.py +++ b/docusign_esign/models/view.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class View(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -110,8 +112,11 @@ class View(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, button_text=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, height=None, italic=None, merge_field=None, page_number=None, recipient_id=None, required=None, required_read=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """View - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -152,80 +157,43 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if button_text is not None: - self.button_text = button_text - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if height is not None: - self.height = height - if italic is not None: - self.italic = italic - if merge_field is not None: - self.merge_field = merge_field - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if required is not None: - self.required = required - if required_read is not None: - self.required_read = required_read - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('button_text'), kwargs.get('button_text', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('height'), kwargs.get('height', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('required_read'), kwargs.get('required_read', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1114,8 +1082,11 @@ def __eq__(self, other): if not isinstance(other, View): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, View): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/view_url.py b/docusign_esign/models/view_url.py index aebc316a..89567480 100644 --- a/docusign_esign/models/view_url.py +++ b/docusign_esign/models/view_url.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class ViewUrl(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class ViewUrl(object): 'url': 'url' } - def __init__(self, url=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """ViewUrl - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._url = None self.discriminator = None - if url is not None: - self.url = url + setattr(self, "_{}".format('url'), kwargs.get('url', None)) @property def url(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, ViewUrl): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ViewUrl): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/watermark.py b/docusign_esign/models/watermark.py index 4c2d5076..b69a983a 100644 --- a/docusign_esign/models/watermark.py +++ b/docusign_esign/models/watermark.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Watermark(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -54,8 +56,11 @@ class Watermark(object): 'watermark_text': 'watermarkText' } - def __init__(self, display_angle=None, enabled=None, font=None, font_color=None, font_size=None, id=None, image_base64=None, transparency=None, watermark_text=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Watermark - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._display_angle = None self._enabled = None @@ -68,24 +73,15 @@ def __init__(self, display_angle=None, enabled=None, font=None, font_color=None, self._watermark_text = None self.discriminator = None - if display_angle is not None: - self.display_angle = display_angle - if enabled is not None: - self.enabled = enabled - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if id is not None: - self.id = id - if image_base64 is not None: - self.image_base64 = image_base64 - if transparency is not None: - self.transparency = transparency - if watermark_text is not None: - self.watermark_text = watermark_text + setattr(self, "_{}".format('display_angle'), kwargs.get('display_angle', None)) + setattr(self, "_{}".format('enabled'), kwargs.get('enabled', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('id'), kwargs.get('id', None)) + setattr(self, "_{}".format('image_base64'), kwargs.get('image_base64', None)) + setattr(self, "_{}".format('transparency'), kwargs.get('transparency', None)) + setattr(self, "_{}".format('watermark_text'), kwargs.get('watermark_text', None)) @property def display_angle(self): @@ -334,8 +330,11 @@ def __eq__(self, other): if not isinstance(other, Watermark): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Watermark): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/witness.py b/docusign_esign/models/witness.py index bf06514b..ac3c6481 100644 --- a/docusign_esign/models/witness.py +++ b/docusign_esign/models/witness.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Witness(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -166,8 +168,11 @@ class Witness(object): 'witness_for_guid': 'witnessForGuid' } - def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_edit_email=None, agent_can_edit_name=None, auto_navigation=None, bulk_recipients_uri=None, can_sign_offline=None, client_user_id=None, creation_reason=None, custom_fields=None, declined_date_time=None, declined_reason=None, default_recipient=None, delivered_date_time=None, delivery_method=None, document_visibility=None, email=None, email_notification=None, email_recipient_post_signing_url=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, first_name=None, full_name=None, id_check_configuration_name=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, is_bulk_recipient=None, last_name=None, name=None, note=None, offline_attributes=None, phone_authentication=None, proof_file=None, recipient_attachments=None, recipient_authentication_status=None, recipient_id=None, recipient_id_guid=None, recipient_signature_providers=None, recipient_supplies_tabs=None, require_id_lookup=None, require_signer_certificate=None, require_sign_on_paper=None, role_name=None, routing_order=None, saml_authentication=None, sent_date_time=None, signature_info=None, signed_date_time=None, sign_in_each_location=None, signing_group_id=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, tabs=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None, witness_for=None, witness_for_guid=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Witness - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._access_code = None self._add_access_code_to_email = None @@ -236,136 +241,71 @@ def __init__(self, access_code=None, add_access_code_to_email=None, agent_can_ed self._witness_for_guid = None self.discriminator = None - if access_code is not None: - self.access_code = access_code - if add_access_code_to_email is not None: - self.add_access_code_to_email = add_access_code_to_email - if agent_can_edit_email is not None: - self.agent_can_edit_email = agent_can_edit_email - if agent_can_edit_name is not None: - self.agent_can_edit_name = agent_can_edit_name - if auto_navigation is not None: - self.auto_navigation = auto_navigation - if bulk_recipients_uri is not None: - self.bulk_recipients_uri = bulk_recipients_uri - if can_sign_offline is not None: - self.can_sign_offline = can_sign_offline - if client_user_id is not None: - self.client_user_id = client_user_id - if creation_reason is not None: - self.creation_reason = creation_reason - if custom_fields is not None: - self.custom_fields = custom_fields - if declined_date_time is not None: - self.declined_date_time = declined_date_time - if declined_reason is not None: - self.declined_reason = declined_reason - if default_recipient is not None: - self.default_recipient = default_recipient - if delivered_date_time is not None: - self.delivered_date_time = delivered_date_time - if delivery_method is not None: - self.delivery_method = delivery_method - if document_visibility is not None: - self.document_visibility = document_visibility - if email is not None: - self.email = email - if email_notification is not None: - self.email_notification = email_notification - if email_recipient_post_signing_url is not None: - self.email_recipient_post_signing_url = email_recipient_post_signing_url - if embedded_recipient_start_url is not None: - self.embedded_recipient_start_url = embedded_recipient_start_url - if error_details is not None: - self.error_details = error_details - if excluded_documents is not None: - self.excluded_documents = excluded_documents - if fax_number is not None: - self.fax_number = fax_number - if first_name is not None: - self.first_name = first_name - if full_name is not None: - self.full_name = full_name - if id_check_configuration_name is not None: - self.id_check_configuration_name = id_check_configuration_name - if id_check_information_input is not None: - self.id_check_information_input = id_check_information_input - if identity_verification is not None: - self.identity_verification = identity_verification - if inherit_email_notification_configuration is not None: - self.inherit_email_notification_configuration = inherit_email_notification_configuration - if is_bulk_recipient is not None: - self.is_bulk_recipient = is_bulk_recipient - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if note is not None: - self.note = note - if offline_attributes is not None: - self.offline_attributes = offline_attributes - if phone_authentication is not None: - self.phone_authentication = phone_authentication - if proof_file is not None: - self.proof_file = proof_file - if recipient_attachments is not None: - self.recipient_attachments = recipient_attachments - if recipient_authentication_status is not None: - self.recipient_authentication_status = recipient_authentication_status - if recipient_id is not None: - self.recipient_id = recipient_id - if recipient_id_guid is not None: - self.recipient_id_guid = recipient_id_guid - if recipient_signature_providers is not None: - self.recipient_signature_providers = recipient_signature_providers - if recipient_supplies_tabs is not None: - self.recipient_supplies_tabs = recipient_supplies_tabs - if require_id_lookup is not None: - self.require_id_lookup = require_id_lookup - if require_signer_certificate is not None: - self.require_signer_certificate = require_signer_certificate - if require_sign_on_paper is not None: - self.require_sign_on_paper = require_sign_on_paper - if role_name is not None: - self.role_name = role_name - if routing_order is not None: - self.routing_order = routing_order - if saml_authentication is not None: - self.saml_authentication = saml_authentication - if sent_date_time is not None: - self.sent_date_time = sent_date_time - if signature_info is not None: - self.signature_info = signature_info - if signed_date_time is not None: - self.signed_date_time = signed_date_time - if sign_in_each_location is not None: - self.sign_in_each_location = sign_in_each_location - if signing_group_id is not None: - self.signing_group_id = signing_group_id - if signing_group_name is not None: - self.signing_group_name = signing_group_name - if signing_group_users is not None: - self.signing_group_users = signing_group_users - if sms_authentication is not None: - self.sms_authentication = sms_authentication - if social_authentications is not None: - self.social_authentications = social_authentications - if status is not None: - self.status = status - if tabs is not None: - self.tabs = tabs - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if total_tab_count is not None: - self.total_tab_count = total_tab_count - if user_id is not None: - self.user_id = user_id - if witness_for is not None: - self.witness_for = witness_for - if witness_for_guid is not None: - self.witness_for_guid = witness_for_guid + setattr(self, "_{}".format('access_code'), kwargs.get('access_code', None)) + setattr(self, "_{}".format('add_access_code_to_email'), kwargs.get('add_access_code_to_email', None)) + setattr(self, "_{}".format('agent_can_edit_email'), kwargs.get('agent_can_edit_email', None)) + setattr(self, "_{}".format('agent_can_edit_name'), kwargs.get('agent_can_edit_name', None)) + setattr(self, "_{}".format('auto_navigation'), kwargs.get('auto_navigation', None)) + setattr(self, "_{}".format('bulk_recipients_uri'), kwargs.get('bulk_recipients_uri', None)) + setattr(self, "_{}".format('can_sign_offline'), kwargs.get('can_sign_offline', None)) + setattr(self, "_{}".format('client_user_id'), kwargs.get('client_user_id', None)) + setattr(self, "_{}".format('creation_reason'), kwargs.get('creation_reason', None)) + setattr(self, "_{}".format('custom_fields'), kwargs.get('custom_fields', None)) + setattr(self, "_{}".format('declined_date_time'), kwargs.get('declined_date_time', None)) + setattr(self, "_{}".format('declined_reason'), kwargs.get('declined_reason', None)) + setattr(self, "_{}".format('default_recipient'), kwargs.get('default_recipient', None)) + setattr(self, "_{}".format('delivered_date_time'), kwargs.get('delivered_date_time', None)) + setattr(self, "_{}".format('delivery_method'), kwargs.get('delivery_method', None)) + setattr(self, "_{}".format('document_visibility'), kwargs.get('document_visibility', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('email_notification'), kwargs.get('email_notification', None)) + setattr(self, "_{}".format('email_recipient_post_signing_url'), kwargs.get('email_recipient_post_signing_url', None)) + setattr(self, "_{}".format('embedded_recipient_start_url'), kwargs.get('embedded_recipient_start_url', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('excluded_documents'), kwargs.get('excluded_documents', None)) + setattr(self, "_{}".format('fax_number'), kwargs.get('fax_number', None)) + setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None)) + setattr(self, "_{}".format('full_name'), kwargs.get('full_name', None)) + setattr(self, "_{}".format('id_check_configuration_name'), kwargs.get('id_check_configuration_name', None)) + setattr(self, "_{}".format('id_check_information_input'), kwargs.get('id_check_information_input', None)) + setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None)) + setattr(self, "_{}".format('inherit_email_notification_configuration'), kwargs.get('inherit_email_notification_configuration', None)) + setattr(self, "_{}".format('is_bulk_recipient'), kwargs.get('is_bulk_recipient', None)) + setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('note'), kwargs.get('note', None)) + setattr(self, "_{}".format('offline_attributes'), kwargs.get('offline_attributes', None)) + setattr(self, "_{}".format('phone_authentication'), kwargs.get('phone_authentication', None)) + setattr(self, "_{}".format('proof_file'), kwargs.get('proof_file', None)) + setattr(self, "_{}".format('recipient_attachments'), kwargs.get('recipient_attachments', None)) + setattr(self, "_{}".format('recipient_authentication_status'), kwargs.get('recipient_authentication_status', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('recipient_id_guid'), kwargs.get('recipient_id_guid', None)) + setattr(self, "_{}".format('recipient_signature_providers'), kwargs.get('recipient_signature_providers', None)) + setattr(self, "_{}".format('recipient_supplies_tabs'), kwargs.get('recipient_supplies_tabs', None)) + setattr(self, "_{}".format('require_id_lookup'), kwargs.get('require_id_lookup', None)) + setattr(self, "_{}".format('require_signer_certificate'), kwargs.get('require_signer_certificate', None)) + setattr(self, "_{}".format('require_sign_on_paper'), kwargs.get('require_sign_on_paper', None)) + setattr(self, "_{}".format('role_name'), kwargs.get('role_name', None)) + setattr(self, "_{}".format('routing_order'), kwargs.get('routing_order', None)) + setattr(self, "_{}".format('saml_authentication'), kwargs.get('saml_authentication', None)) + setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None)) + setattr(self, "_{}".format('signature_info'), kwargs.get('signature_info', None)) + setattr(self, "_{}".format('signed_date_time'), kwargs.get('signed_date_time', None)) + setattr(self, "_{}".format('sign_in_each_location'), kwargs.get('sign_in_each_location', None)) + setattr(self, "_{}".format('signing_group_id'), kwargs.get('signing_group_id', None)) + setattr(self, "_{}".format('signing_group_name'), kwargs.get('signing_group_name', None)) + setattr(self, "_{}".format('signing_group_users'), kwargs.get('signing_group_users', None)) + setattr(self, "_{}".format('sms_authentication'), kwargs.get('sms_authentication', None)) + setattr(self, "_{}".format('social_authentications'), kwargs.get('social_authentications', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tabs'), kwargs.get('tabs', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('total_tab_count'), kwargs.get('total_tab_count', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('witness_for'), kwargs.get('witness_for', None)) + setattr(self, "_{}".format('witness_for_guid'), kwargs.get('witness_for_guid', None)) @property def access_code(self): @@ -1878,8 +1818,11 @@ def __eq__(self, other): if not isinstance(other, Witness): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Witness): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace.py b/docusign_esign/models/workspace.py index fd4a05e9..eca454b6 100644 --- a/docusign_esign/models/workspace.py +++ b/docusign_esign/models/workspace.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Workspace(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,8 +60,11 @@ class Workspace(object): 'workspace_uri': 'workspaceUri' } - def __init__(self, billable_account_id=None, created=None, created_by_information=None, last_modified=None, last_modified_by_information=None, status=None, workspace_base_url=None, workspace_description=None, workspace_id=None, workspace_name=None, workspace_uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Workspace - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._billable_account_id = None self._created = None @@ -74,28 +79,17 @@ def __init__(self, billable_account_id=None, created=None, created_by_informatio self._workspace_uri = None self.discriminator = None - if billable_account_id is not None: - self.billable_account_id = billable_account_id - if created is not None: - self.created = created - if created_by_information is not None: - self.created_by_information = created_by_information - if last_modified is not None: - self.last_modified = last_modified - if last_modified_by_information is not None: - self.last_modified_by_information = last_modified_by_information - if status is not None: - self.status = status - if workspace_base_url is not None: - self.workspace_base_url = workspace_base_url - if workspace_description is not None: - self.workspace_description = workspace_description - if workspace_id is not None: - self.workspace_id = workspace_id - if workspace_name is not None: - self.workspace_name = workspace_name - if workspace_uri is not None: - self.workspace_uri = workspace_uri + setattr(self, "_{}".format('billable_account_id'), kwargs.get('billable_account_id', None)) + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('created_by_information'), kwargs.get('created_by_information', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('last_modified_by_information'), kwargs.get('last_modified_by_information', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('workspace_base_url'), kwargs.get('workspace_base_url', None)) + setattr(self, "_{}".format('workspace_description'), kwargs.get('workspace_description', None)) + setattr(self, "_{}".format('workspace_id'), kwargs.get('workspace_id', None)) + setattr(self, "_{}".format('workspace_name'), kwargs.get('workspace_name', None)) + setattr(self, "_{}".format('workspace_uri'), kwargs.get('workspace_uri', None)) @property def billable_account_id(self): @@ -386,8 +380,11 @@ def __eq__(self, other): if not isinstance(other, Workspace): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Workspace): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace_folder_contents.py b/docusign_esign/models/workspace_folder_contents.py index 5e413945..75612a8c 100644 --- a/docusign_esign/models/workspace_folder_contents.py +++ b/docusign_esign/models/workspace_folder_contents.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class WorkspaceFolderContents(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -52,8 +54,11 @@ class WorkspaceFolderContents(object): 'workspace_id': 'workspaceId' } - def __init__(self, end_position=None, folder=None, items=None, parent_folders=None, result_set_size=None, start_position=None, total_set_size=None, workspace_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """WorkspaceFolderContents - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._folder = None @@ -65,22 +70,14 @@ def __init__(self, end_position=None, folder=None, items=None, parent_folders=No self._workspace_id = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if folder is not None: - self.folder = folder - if items is not None: - self.items = items - if parent_folders is not None: - self.parent_folders = parent_folders - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size - if workspace_id is not None: - self.workspace_id = workspace_id + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('folder'), kwargs.get('folder', None)) + setattr(self, "_{}".format('items'), kwargs.get('items', None)) + setattr(self, "_{}".format('parent_folders'), kwargs.get('parent_folders', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) + setattr(self, "_{}".format('workspace_id'), kwargs.get('workspace_id', None)) @property def end_position(self): @@ -304,8 +301,11 @@ def __eq__(self, other): if not isinstance(other, WorkspaceFolderContents): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WorkspaceFolderContents): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace_item.py b/docusign_esign/models/workspace_item.py index dac69f84..fc7304ce 100644 --- a/docusign_esign/models/workspace_item.py +++ b/docusign_esign/models/workspace_item.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class WorkspaceItem(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -74,8 +76,11 @@ class WorkspaceItem(object): 'uri': 'uri' } - def __init__(self, caller_authorization=None, content_type=None, created=None, created_by_id=None, created_by_information=None, extension=None, file_size=None, file_uri=None, id=None, is_public=None, last_modified=None, last_modified_by_id=None, last_modified_by_information=None, name=None, page_count=None, parent_folder_id=None, parent_folder_uri=None, type=None, uri=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """WorkspaceItem - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._caller_authorization = None self._content_type = None @@ -98,44 +103,25 @@ def __init__(self, caller_authorization=None, content_type=None, created=None, c self._uri = None self.discriminator = None - if caller_authorization is not None: - self.caller_authorization = caller_authorization - if content_type is not None: - self.content_type = content_type - if created is not None: - self.created = created - if created_by_id is not None: - self.created_by_id = created_by_id - if created_by_information is not None: - self.created_by_information = created_by_information - if extension is not None: - self.extension = extension - if file_size is not None: - self.file_size = file_size - if file_uri is not None: - self.file_uri = file_uri - if id is not None: - self.id = id - if is_public is not None: - self.is_public = is_public - if last_modified is not None: - self.last_modified = last_modified - if last_modified_by_id is not None: - self.last_modified_by_id = last_modified_by_id - if last_modified_by_information is not None: - self.last_modified_by_information = last_modified_by_information - if name is not None: - self.name = name - if page_count is not None: - self.page_count = page_count - if parent_folder_id is not None: - self.parent_folder_id = parent_folder_id - if parent_folder_uri is not None: - self.parent_folder_uri = parent_folder_uri - if type is not None: - self.type = type - if uri is not None: - self.uri = uri + setattr(self, "_{}".format('caller_authorization'), kwargs.get('caller_authorization', None)) + setattr(self, "_{}".format('content_type'), kwargs.get('content_type', None)) + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('created_by_id'), kwargs.get('created_by_id', None)) + setattr(self, "_{}".format('created_by_information'), kwargs.get('created_by_information', None)) + setattr(self, "_{}".format('extension'), kwargs.get('extension', None)) + setattr(self, "_{}".format('file_size'), kwargs.get('file_size', None)) + setattr(self, "_{}".format('file_uri'), kwargs.get('file_uri', None)) + setattr(self, "_{}".format('id'), kwargs.get('id', None)) + setattr(self, "_{}".format('is_public'), kwargs.get('is_public', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('last_modified_by_id'), kwargs.get('last_modified_by_id', None)) + setattr(self, "_{}".format('last_modified_by_information'), kwargs.get('last_modified_by_information', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('page_count'), kwargs.get('page_count', None)) + setattr(self, "_{}".format('parent_folder_id'), kwargs.get('parent_folder_id', None)) + setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) + setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) @property def caller_authorization(self): @@ -608,8 +594,11 @@ def __eq__(self, other): if not isinstance(other, WorkspaceItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WorkspaceItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace_item_list.py b/docusign_esign/models/workspace_item_list.py index b055c6ce..afd706fc 100644 --- a/docusign_esign/models/workspace_item_list.py +++ b/docusign_esign/models/workspace_item_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class WorkspaceItemList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,14 +40,16 @@ class WorkspaceItemList(object): 'items': 'items' } - def __init__(self, items=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """WorkspaceItemList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._items = None self.discriminator = None - if items is not None: - self.items = items + setattr(self, "_{}".format('items'), kwargs.get('items', None)) @property def items(self): @@ -110,8 +114,11 @@ def __eq__(self, other): if not isinstance(other, WorkspaceItemList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WorkspaceItemList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace_list.py b/docusign_esign/models/workspace_list.py index a00ce44f..febcf2bf 100644 --- a/docusign_esign/models/workspace_list.py +++ b/docusign_esign/models/workspace_list.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class WorkspaceList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -46,8 +48,11 @@ class WorkspaceList(object): 'workspaces': 'workspaces' } - def __init__(self, end_position=None, result_set_size=None, start_position=None, total_set_size=None, workspaces=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """WorkspaceList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._end_position = None self._result_set_size = None @@ -56,16 +61,11 @@ def __init__(self, end_position=None, result_set_size=None, start_position=None, self._workspaces = None self.discriminator = None - if end_position is not None: - self.end_position = end_position - if result_set_size is not None: - self.result_set_size = result_set_size - if start_position is not None: - self.start_position = start_position - if total_set_size is not None: - self.total_set_size = total_set_size - if workspaces is not None: - self.workspaces = workspaces + setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) + setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) + setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) + setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) + setattr(self, "_{}".format('workspaces'), kwargs.get('workspaces', None)) @property def end_position(self): @@ -222,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, WorkspaceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WorkspaceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace_user.py b/docusign_esign/models/workspace_user.py index a5226c44..7d2f04e8 100644 --- a/docusign_esign/models/workspace_user.py +++ b/docusign_esign/models/workspace_user.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class WorkspaceUser(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -68,8 +70,11 @@ class WorkspaceUser(object): 'workspace_user_id': 'workspaceUserId' } - def __init__(self, account_id=None, account_name=None, active_since=None, created=None, created_by_id=None, email=None, error_details=None, last_modified=None, last_modified_by_id=None, status=None, type=None, user_id=None, user_name=None, workspace_id=None, workspace_user_base_url=None, workspace_user_id=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """WorkspaceUser - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._account_id = None self._account_name = None @@ -89,38 +94,22 @@ def __init__(self, account_id=None, account_name=None, active_since=None, create self._workspace_user_id = None self.discriminator = None - if account_id is not None: - self.account_id = account_id - if account_name is not None: - self.account_name = account_name - if active_since is not None: - self.active_since = active_since - if created is not None: - self.created = created - if created_by_id is not None: - self.created_by_id = created_by_id - if email is not None: - self.email = email - if error_details is not None: - self.error_details = error_details - if last_modified is not None: - self.last_modified = last_modified - if last_modified_by_id is not None: - self.last_modified_by_id = last_modified_by_id - if status is not None: - self.status = status - if type is not None: - self.type = type - if user_id is not None: - self.user_id = user_id - if user_name is not None: - self.user_name = user_name - if workspace_id is not None: - self.workspace_id = workspace_id - if workspace_user_base_url is not None: - self.workspace_user_base_url = workspace_user_base_url - if workspace_user_id is not None: - self.workspace_user_id = workspace_user_id + setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) + setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) + setattr(self, "_{}".format('active_since'), kwargs.get('active_since', None)) + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('created_by_id'), kwargs.get('created_by_id', None)) + setattr(self, "_{}".format('email'), kwargs.get('email', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None)) + setattr(self, "_{}".format('last_modified_by_id'), kwargs.get('last_modified_by_id', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('type'), kwargs.get('type', None)) + setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None)) + setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None)) + setattr(self, "_{}".format('workspace_id'), kwargs.get('workspace_id', None)) + setattr(self, "_{}".format('workspace_user_base_url'), kwargs.get('workspace_user_base_url', None)) + setattr(self, "_{}".format('workspace_user_id'), kwargs.get('workspace_user_id', None)) @property def account_id(self): @@ -528,8 +517,11 @@ def __eq__(self, other): if not isinstance(other, WorkspaceUser): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WorkspaceUser): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/workspace_user_authorization.py b/docusign_esign/models/workspace_user_authorization.py index 0fbe9dc3..a7cd6a36 100644 --- a/docusign_esign/models/workspace_user_authorization.py +++ b/docusign_esign/models/workspace_user_authorization.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class WorkspaceUserAuthorization(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,8 +60,11 @@ class WorkspaceUserAuthorization(object): 'workspace_user_information': 'workspaceUserInformation' } - def __init__(self, can_delete=None, can_move=None, can_transact=None, can_view=None, created=None, created_by_id=None, error_details=None, modified=None, modified_by_id=None, workspace_user_id=None, workspace_user_information=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """WorkspaceUserAuthorization - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._can_delete = None self._can_move = None @@ -74,28 +79,17 @@ def __init__(self, can_delete=None, can_move=None, can_transact=None, can_view=N self._workspace_user_information = None self.discriminator = None - if can_delete is not None: - self.can_delete = can_delete - if can_move is not None: - self.can_move = can_move - if can_transact is not None: - self.can_transact = can_transact - if can_view is not None: - self.can_view = can_view - if created is not None: - self.created = created - if created_by_id is not None: - self.created_by_id = created_by_id - if error_details is not None: - self.error_details = error_details - if modified is not None: - self.modified = modified - if modified_by_id is not None: - self.modified_by_id = modified_by_id - if workspace_user_id is not None: - self.workspace_user_id = workspace_user_id - if workspace_user_information is not None: - self.workspace_user_information = workspace_user_information + setattr(self, "_{}".format('can_delete'), kwargs.get('can_delete', None)) + setattr(self, "_{}".format('can_move'), kwargs.get('can_move', None)) + setattr(self, "_{}".format('can_transact'), kwargs.get('can_transact', None)) + setattr(self, "_{}".format('can_view'), kwargs.get('can_view', None)) + setattr(self, "_{}".format('created'), kwargs.get('created', None)) + setattr(self, "_{}".format('created_by_id'), kwargs.get('created_by_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('modified'), kwargs.get('modified', None)) + setattr(self, "_{}".format('modified_by_id'), kwargs.get('modified_by_id', None)) + setattr(self, "_{}".format('workspace_user_id'), kwargs.get('workspace_user_id', None)) + setattr(self, "_{}".format('workspace_user_information'), kwargs.get('workspace_user_information', None)) @property def can_delete(self): @@ -386,8 +380,11 @@ def __eq__(self, other): if not isinstance(other, WorkspaceUserAuthorization): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, WorkspaceUserAuthorization): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/zip.py b/docusign_esign/models/zip.py index bb90fe18..8c488cd3 100644 --- a/docusign_esign/models/zip.py +++ b/docusign_esign/models/zip.py @@ -16,6 +16,8 @@ import six +from docusign_esign.client.configuration import Configuration + class Zip(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -132,8 +134,11 @@ class Zip(object): 'y_position': 'yPosition' } - def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, anchor_ignore_if_not_present=None, anchor_match_whole_word=None, anchor_string=None, anchor_units=None, anchor_x_offset=None, anchor_y_offset=None, bold=None, conceal_value_on_document=None, conditional_parent_label=None, conditional_parent_value=None, custom_tab_id=None, disable_auto_size=None, document_id=None, error_details=None, font=None, font_color=None, font_size=None, italic=None, locked=None, max_length=None, merge_field=None, name=None, original_value=None, page_number=None, recipient_id=None, require_all=None, required=None, require_initial_on_shared_change=None, sender_required=None, shared=None, status=None, tab_group_labels=None, tab_id=None, tab_label=None, tab_order=None, template_locked=None, template_required=None, tooltip=None, underline=None, use_dash4=None, validation_message=None, validation_pattern=None, value=None, width=None, x_position=None, y_position=None): # noqa: E501 + def __init__(self, _configuration=None, **kwargs): # noqa: E501 """Zip - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._anchor_case_sensitive = None self._anchor_horizontal_alignment = None @@ -185,102 +190,54 @@ def __init__(self, anchor_case_sensitive=None, anchor_horizontal_alignment=None, self._y_position = None self.discriminator = None - if anchor_case_sensitive is not None: - self.anchor_case_sensitive = anchor_case_sensitive - if anchor_horizontal_alignment is not None: - self.anchor_horizontal_alignment = anchor_horizontal_alignment - if anchor_ignore_if_not_present is not None: - self.anchor_ignore_if_not_present = anchor_ignore_if_not_present - if anchor_match_whole_word is not None: - self.anchor_match_whole_word = anchor_match_whole_word - if anchor_string is not None: - self.anchor_string = anchor_string - if anchor_units is not None: - self.anchor_units = anchor_units - if anchor_x_offset is not None: - self.anchor_x_offset = anchor_x_offset - if anchor_y_offset is not None: - self.anchor_y_offset = anchor_y_offset - if bold is not None: - self.bold = bold - if conceal_value_on_document is not None: - self.conceal_value_on_document = conceal_value_on_document - if conditional_parent_label is not None: - self.conditional_parent_label = conditional_parent_label - if conditional_parent_value is not None: - self.conditional_parent_value = conditional_parent_value - if custom_tab_id is not None: - self.custom_tab_id = custom_tab_id - if disable_auto_size is not None: - self.disable_auto_size = disable_auto_size - if document_id is not None: - self.document_id = document_id - if error_details is not None: - self.error_details = error_details - if font is not None: - self.font = font - if font_color is not None: - self.font_color = font_color - if font_size is not None: - self.font_size = font_size - if italic is not None: - self.italic = italic - if locked is not None: - self.locked = locked - if max_length is not None: - self.max_length = max_length - if merge_field is not None: - self.merge_field = merge_field - if name is not None: - self.name = name - if original_value is not None: - self.original_value = original_value - if page_number is not None: - self.page_number = page_number - if recipient_id is not None: - self.recipient_id = recipient_id - if require_all is not None: - self.require_all = require_all - if required is not None: - self.required = required - if require_initial_on_shared_change is not None: - self.require_initial_on_shared_change = require_initial_on_shared_change - if sender_required is not None: - self.sender_required = sender_required - if shared is not None: - self.shared = shared - if status is not None: - self.status = status - if tab_group_labels is not None: - self.tab_group_labels = tab_group_labels - if tab_id is not None: - self.tab_id = tab_id - if tab_label is not None: - self.tab_label = tab_label - if tab_order is not None: - self.tab_order = tab_order - if template_locked is not None: - self.template_locked = template_locked - if template_required is not None: - self.template_required = template_required - if tooltip is not None: - self.tooltip = tooltip - if underline is not None: - self.underline = underline - if use_dash4 is not None: - self.use_dash4 = use_dash4 - if validation_message is not None: - self.validation_message = validation_message - if validation_pattern is not None: - self.validation_pattern = validation_pattern - if value is not None: - self.value = value - if width is not None: - self.width = width - if x_position is not None: - self.x_position = x_position - if y_position is not None: - self.y_position = y_position + setattr(self, "_{}".format('anchor_case_sensitive'), kwargs.get('anchor_case_sensitive', None)) + setattr(self, "_{}".format('anchor_horizontal_alignment'), kwargs.get('anchor_horizontal_alignment', None)) + setattr(self, "_{}".format('anchor_ignore_if_not_present'), kwargs.get('anchor_ignore_if_not_present', None)) + setattr(self, "_{}".format('anchor_match_whole_word'), kwargs.get('anchor_match_whole_word', None)) + setattr(self, "_{}".format('anchor_string'), kwargs.get('anchor_string', None)) + setattr(self, "_{}".format('anchor_units'), kwargs.get('anchor_units', None)) + setattr(self, "_{}".format('anchor_x_offset'), kwargs.get('anchor_x_offset', None)) + setattr(self, "_{}".format('anchor_y_offset'), kwargs.get('anchor_y_offset', None)) + setattr(self, "_{}".format('bold'), kwargs.get('bold', None)) + setattr(self, "_{}".format('conceal_value_on_document'), kwargs.get('conceal_value_on_document', None)) + setattr(self, "_{}".format('conditional_parent_label'), kwargs.get('conditional_parent_label', None)) + setattr(self, "_{}".format('conditional_parent_value'), kwargs.get('conditional_parent_value', None)) + setattr(self, "_{}".format('custom_tab_id'), kwargs.get('custom_tab_id', None)) + setattr(self, "_{}".format('disable_auto_size'), kwargs.get('disable_auto_size', None)) + setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('font'), kwargs.get('font', None)) + setattr(self, "_{}".format('font_color'), kwargs.get('font_color', None)) + setattr(self, "_{}".format('font_size'), kwargs.get('font_size', None)) + setattr(self, "_{}".format('italic'), kwargs.get('italic', None)) + setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) + setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) + setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + setattr(self, "_{}".format('original_value'), kwargs.get('original_value', None)) + setattr(self, "_{}".format('page_number'), kwargs.get('page_number', None)) + setattr(self, "_{}".format('recipient_id'), kwargs.get('recipient_id', None)) + setattr(self, "_{}".format('require_all'), kwargs.get('require_all', None)) + setattr(self, "_{}".format('required'), kwargs.get('required', None)) + setattr(self, "_{}".format('require_initial_on_shared_change'), kwargs.get('require_initial_on_shared_change', None)) + setattr(self, "_{}".format('sender_required'), kwargs.get('sender_required', None)) + setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) + setattr(self, "_{}".format('status'), kwargs.get('status', None)) + setattr(self, "_{}".format('tab_group_labels'), kwargs.get('tab_group_labels', None)) + setattr(self, "_{}".format('tab_id'), kwargs.get('tab_id', None)) + setattr(self, "_{}".format('tab_label'), kwargs.get('tab_label', None)) + setattr(self, "_{}".format('tab_order'), kwargs.get('tab_order', None)) + setattr(self, "_{}".format('template_locked'), kwargs.get('template_locked', None)) + setattr(self, "_{}".format('template_required'), kwargs.get('template_required', None)) + setattr(self, "_{}".format('tooltip'), kwargs.get('tooltip', None)) + setattr(self, "_{}".format('underline'), kwargs.get('underline', None)) + setattr(self, "_{}".format('use_dash4'), kwargs.get('use_dash4', None)) + setattr(self, "_{}".format('validation_message'), kwargs.get('validation_message', None)) + setattr(self, "_{}".format('validation_pattern'), kwargs.get('validation_pattern', None)) + setattr(self, "_{}".format('value'), kwargs.get('value', None)) + setattr(self, "_{}".format('width'), kwargs.get('width', None)) + setattr(self, "_{}".format('x_position'), kwargs.get('x_position', None)) + setattr(self, "_{}".format('y_position'), kwargs.get('y_position', None)) @property def anchor_case_sensitive(self): @@ -1422,8 +1379,11 @@ def __eq__(self, other): if not isinstance(other, Zip): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Zip): + return True + + return self.to_dict() != other.to_dict() diff --git a/linter.sh b/linter.sh new file mode 100644 index 00000000..142ce461 --- /dev/null +++ b/linter.sh @@ -0,0 +1 @@ +autopep8 --in-place --aggressive --recursive docusign_esign && pycodestyle --ignore=E501,W504,W503 -v docusign_esign \ No newline at end of file diff --git a/setup.py b/setup.py index 47dff8e1..94e704f1 100644 --- a/setup.py +++ b/setup.py @@ -11,10 +11,10 @@ """ -from setuptools import setup, find_packages, Command, os # noqa: H301 +from setuptools import setup, find_packages, Command, os # noqa: H301 NAME = "docusign-esign" -VERSION = "2.11.0" +VERSION = "2.12.0rc1" # To install the library, run the following # # python setup.py install @@ -22,8 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.8.0", "certifi >= 14.05.14", "python-dateutil >= 2.5.3", - "setuptools >= 21.0.0", "PyJWT>=1.7.1,<2", "cryptography>=2.5", "nose>=1.3.7", "importlib-metadata<2,>=0.12"] +REQUIRES = ["urllib3 >= 1.15", "six >= 1.8.0", "certifi >= 14.05.14", "python-dateutil >= 2.5.3", "setuptools >= 21.0.0", "PyJWT>=1.7.1,<2", "cryptography>=2.5", "nose>=1.3.7"] class CleanCommand(Command): """Custom clean command to tidy up the project root.""" @@ -38,6 +37,7 @@ def run(self): this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() + setup( name=NAME, @@ -50,7 +50,7 @@ def run(self): packages=find_packages(), include_package_data=True, cmdclass={ - 'clean': CleanCommand, + 'clean': CleanCommand, }, long_description=long_description, long_description_content_type='text/markdown'