diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d2c324c..891779e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ 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. +## [v7.1.0] - eSignature API v2.1-26.3.01.02 - 2026-09-30 +### Changed +- Added support for version v2.1-26.3.01.02 of the DocuSign ESignature API. +- Updated the SDK release version. + ## [v7.0.0] - eSignature API v2.1-26.2.01.01 - 2026-07-01 ### Changed - Fixed CreateChunkedUpload sending incorrect Content-Type: multipart/form-data instead of application/json. diff --git a/README.md b/README.md index 7326e951..b1d31889 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ This client SDK is provided as open source, which enables you to customize its f ### Version Information - **API version**: v2.1 -- **Latest SDK version**: 7.0.0 +- **Latest SDK version**: 7.1.0 ## Requirements diff --git a/lib/docusign_esign.rb b/lib/docusign_esign.rb index b1ec4b2c..0063c842 100644 --- a/lib/docusign_esign.rb +++ b/lib/docusign_esign.rb @@ -202,6 +202,8 @@ require 'docusign_esign/models/diagnostics_settings_information' require 'docusign_esign/models/direct_debit_processor_information' require 'docusign_esign/models/dob_information_input' +require 'docusign_esign/models/doc_gen_conditional_operation_base' +require 'docusign_esign/models/doc_gen_conditional_rule' require 'docusign_esign/models/doc_gen_form_field' require 'docusign_esign/models/doc_gen_form_field_option' require 'docusign_esign/models/doc_gen_form_field_request' @@ -235,6 +237,7 @@ require 'docusign_esign/models/email_address' require 'docusign_esign/models/email_settings' require 'docusign_esign/models/envelope' +require 'docusign_esign/models/envelope_archive_summary' require 'docusign_esign/models/envelope_attachment' require 'docusign_esign/models/envelope_attachments_request' require 'docusign_esign/models/envelope_attachments_result' @@ -247,6 +250,8 @@ require 'docusign_esign/models/envelope_documents_result' require 'docusign_esign/models/envelope_event' require 'docusign_esign/models/envelope_form_data' +require 'docusign_esign/models/envelope_gen_and_send' +require 'docusign_esign/models/envelope_gen_and_send_properties' require 'docusign_esign/models/envelope_id' require 'docusign_esign/models/envelope_ids_request' require 'docusign_esign/models/envelope_metadata' @@ -271,6 +276,7 @@ require 'docusign_esign/models/envelope_view_template_settings' require 'docusign_esign/models/envelopes_information' require 'docusign_esign/models/envelopes_share_permission_request' +require 'docusign_esign/models/envelopes_share_permission_response' require 'docusign_esign/models/envelopes_share_request' require 'docusign_esign/models/envelopes_share_response' require 'docusign_esign/models/envelopes_shares_request' @@ -279,6 +285,8 @@ require 'docusign_esign/models/event_notification' require 'docusign_esign/models/event_result' require 'docusign_esign/models/expirations' +require 'docusign_esign/models/extend_payment_configuration' +require 'docusign_esign/models/extend_payment_line_item' require 'docusign_esign/models/extension_data' require 'docusign_esign/models/external_doc_service_error_details' require 'docusign_esign/models/external_document_sources' @@ -304,6 +312,8 @@ require 'docusign_esign/models/form_data_item' require 'docusign_esign/models/formula_tab' require 'docusign_esign/models/full_name' +require 'docusign_esign/models/generated_document' +require 'docusign_esign/models/generated_documents_result' require 'docusign_esign/models/graphics_context' require 'docusign_esign/models/group' require 'docusign_esign/models/group_information' @@ -376,6 +386,7 @@ require 'docusign_esign/models/participant' require 'docusign_esign/models/path_extended_element' require 'docusign_esign/models/pay_pal_legacy_settings' +require 'docusign_esign/models/payment_audit_event' require 'docusign_esign/models/payment_details' require 'docusign_esign/models/payment_gateway_account' require 'docusign_esign/models/payment_gateway_account_setting' @@ -432,6 +443,9 @@ require 'docusign_esign/models/recipient_view_request' require 'docusign_esign/models/recipients' require 'docusign_esign/models/recipients_update_summary' +require 'docusign_esign/models/recommendation_info' +require 'docusign_esign/models/recommendations_list_request' +require 'docusign_esign/models/recommendations_list_response' require 'docusign_esign/models/referral_information' require 'docusign_esign/models/reminders' require 'docusign_esign/models/resource_information' @@ -560,6 +574,7 @@ require 'docusign_esign/api/envelopes_api' require 'docusign_esign/api/folders_api' require 'docusign_esign/api/groups_api' +require 'docusign_esign/api/insights_api' require 'docusign_esign/api/notary_api' require 'docusign_esign/api/organizations_api' require 'docusign_esign/api/power_forms_api' diff --git a/lib/docusign_esign/api/accounts_api.rb b/lib/docusign_esign/api/accounts_api.rb index fc077f4b..9854d6ff 100644 --- a/lib/docusign_esign/api/accounts_api.rb +++ b/lib/docusign_esign/api/accounts_api.rb @@ -684,7 +684,7 @@ def create_user_authorization_with_http_info(account_id, user_id, user_authoriza return data, status_code, headers end - # Creates ot updates user authorizations + # Creates or updates user authorizations # # @param account_id The external account number (int) or account ID Guid. # @param user_id The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. @@ -695,7 +695,7 @@ def create_user_authorizations(account_id, user_id, user_authorizations_request) return data end - # Creates ot updates user authorizations + # Creates or updates user authorizations # # @param account_id The external account number (int) or account ID Guid. # @param user_id The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. @@ -1327,7 +1327,7 @@ def delete_user_authorization_with_http_info(account_id, authorization_id, user_ return data, status_code, headers end - # Creates ot updates user authorizations + # Deletes user authorizations # # @param account_id The external account number (int) or account ID Guid. # @param user_id The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. @@ -1338,7 +1338,7 @@ def delete_user_authorizations(account_id, user_id, user_authorizations_delete_r return data end - # Creates ot updates user authorizations + # Deletes user authorizations # # @param account_id The external account number (int) or account ID Guid. # @param user_id The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. diff --git a/lib/docusign_esign/api/envelopes_api.rb b/lib/docusign_esign/api/envelopes_api.rb index 946d4417..b3f70c46 100644 --- a/lib/docusign_esign/api/envelopes_api.rb +++ b/lib/docusign_esign/api/envelopes_api.rb @@ -684,6 +684,57 @@ def apply_template_to_document_with_http_info(account_id, document_id, envelope_ return data, status_code, headers end + # Add metadata in the form of GenAndSend to existing envelopes in docusign. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [EnvelopeArchiveSummary] + def create_archive_metadata_envelopes(account_id, envelope_gen_and_send) + data, _status_code, _headers = create_archive_metadata_envelopes_with_http_info(account_id, envelope_gen_and_send) + return data + end + + # Add metadata in the form of GenAndSend to existing envelopes in docusign. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [Array<(EnvelopeArchiveSummary, Fixnum, Hash)>] EnvelopeArchiveSummary data, response status code and response headers + def create_archive_metadata_envelopes_with_http_info(account_id, envelope_gen_and_send) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.create_archive_metadata_envelopes ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.create_archive_metadata_envelopes" if account_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/archive_metadata".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(envelope_gen_and_send) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'EnvelopeArchiveSummary') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#create_archive_metadata_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Initiate a new ChunkedUpload. # This method initiates a new chunked upload with the first part of the content. # @param account_id The external account number (int) or account ID Guid. @@ -1567,6 +1618,210 @@ def create_envelopes_shares_with_http_info(account_id, envelope_id, envelopes_sh return data, status_code, headers end + # Generates the document using DocuSign Spring CM template then returns the html content of the document. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [File] + def create_gen_and_archive_envelopes(account_id, envelope_gen_and_send) + data, _status_code, _headers = create_gen_and_archive_envelopes_with_http_info(account_id, envelope_gen_and_send) + return data + end + + # Generates the document using DocuSign Spring CM template then returns the html content of the document. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers + def create_gen_and_archive_envelopes_with_http_info(account_id, envelope_gen_and_send) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.create_gen_and_archive_envelopes ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.create_gen_and_archive_envelopes" if account_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/generate_and_archive".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['text/plain']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(envelope_gen_and_send) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'File') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#create_gen_and_archive_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Generates the document using DocuSign Spring CM template then returns the content of the document based on the return document type. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [File] + def create_gen_and_convert_envelopes(account_id, envelope_gen_and_send) + data, _status_code, _headers = create_gen_and_convert_envelopes_with_http_info(account_id, envelope_gen_and_send) + return data + end + + # Generates the document using DocuSign Spring CM template then returns the content of the document based on the return document type. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers + def create_gen_and_convert_envelopes_with_http_info(account_id, envelope_gen_and_send) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.create_gen_and_convert_envelopes ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.create_gen_and_convert_envelopes" if account_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/generate_and_convert".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['text/plain']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(envelope_gen_and_send) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'File') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#create_gen_and_convert_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Generates multiple document using DocuSign Spring CM template then returns the content of the document based on the return document type. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [GeneratedDocumentsResult] + def create_gen_and_convert_multi_envelopes(account_id, envelope_gen_and_send) + data, _status_code, _headers = create_gen_and_convert_multi_envelopes_with_http_info(account_id, envelope_gen_and_send) + return data + end + + # Generates multiple document using DocuSign Spring CM template then returns the content of the document based on the return document type. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [Array<(GeneratedDocumentsResult, Fixnum, Hash)>] GeneratedDocumentsResult data, response status code and response headers + def create_gen_and_convert_multi_envelopes_with_http_info(account_id, envelope_gen_and_send) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.create_gen_and_convert_multi_envelopes ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.create_gen_and_convert_multi_envelopes" if account_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/generate_and_convert_multi".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(envelope_gen_and_send) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'GeneratedDocumentsResult') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#create_gen_and_convert_multi_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Generates the documents for an envelope using DocuSign Spring CM then creates the envelope. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [EnvelopeSummary] + def create_gen_and_send_envelopes(account_id, envelope_gen_and_send) + data, _status_code, _headers = create_gen_and_send_envelopes_with_http_info(account_id, envelope_gen_and_send) + return data + end + + # Generates the documents for an envelope using DocuSign Spring CM then creates the envelope. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_gen_and_send (optional parameter) + # @return [Array<(EnvelopeSummary, Fixnum, Hash)>] EnvelopeSummary data, response status code and response headers + def create_gen_and_send_envelopes_with_http_info(account_id, envelope_gen_and_send) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.create_gen_and_send_envelopes ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.create_gen_and_send_envelopes" if account_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/generate_and_send".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(envelope_gen_and_send) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'EnvelopeSummary') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#create_gen_and_send_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Submits a batch of historical envelopes for republish to an adhoc config. # # @param account_id The external account number (int) or account ID Guid. @@ -1618,6 +1873,61 @@ def create_historical_envelope_publish_transaction_with_http_info(account_id, co return data, status_code, headers end + # Add metadata in the form of GenAndSend to existing envelopes in docusign. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @param envelope_gen_and_send (optional parameter) + # @return [EnvelopeSummary] + def create_link_metadata_envelopes(account_id, envelope_id, envelope_gen_and_send) + data, _status_code, _headers = create_link_metadata_envelopes_with_http_info(account_id, envelope_id, envelope_gen_and_send) + return data + end + + # Add metadata in the form of GenAndSend to existing envelopes in docusign. + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @param envelope_gen_and_send (optional parameter) + # @return [Array<(EnvelopeSummary, Fixnum, Hash)>] EnvelopeSummary data, response status code and response headers + def create_link_metadata_envelopes_with_http_info(account_id, envelope_id, envelope_gen_and_send) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.create_link_metadata_envelopes ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.create_link_metadata_envelopes" if account_id.nil? + # verify the required parameter 'envelope_id' is set + fail ArgumentError, "Missing the required parameter 'envelope_id' when calling EnvelopesApi.create_link_metadata_envelopes" if envelope_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/archive_metadata".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'envelopeId' + '}', envelope_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(envelope_gen_and_send) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'EnvelopeSummary') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#create_link_metadata_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Lock an envelope. # Locks the specified envelope, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the envelope. ###### Note: Users must have envelope locking capability enabled to use this function (userSetting `canLockEnvelopes` must be set to true for the user). # @param account_id The external account number (int) or account ID Guid. @@ -3565,6 +3875,59 @@ def delete_templates_from_document_with_http_info(account_id, document_id, envel return data, status_code, headers end + # Return generated html document from archive. + # + # @param account_id The external account number (int) or account ID Guid. + # @param document_id The ID of the document being accessed. + # @return [File] + def get_archive_document(account_id, document_id) + data, _status_code, _headers = get_archive_document_with_http_info(account_id, document_id) + return data + end + + # Return generated html document from archive. + # + # @param account_id The external account number (int) or account ID Guid. + # @param document_id The ID of the document being accessed. + # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers + def get_archive_document_with_http_info(account_id, document_id) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.get_archive_document ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.get_archive_document" if account_id.nil? + # verify the required parameter 'document_id' is set + fail ArgumentError, "Missing the required parameter 'document_id' when calling EnvelopesApi.get_archive_document" if document_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/archivedocuments/{documentId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'documentId' + '}', document_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['text/plain']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'File') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#get_archive_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieves an attachment from the envelope. # Retrieves an attachment from an envelope. # @param account_id The external account number (int) or account ID Guid. @@ -4439,6 +4802,59 @@ def get_envelope_html_definitions_with_http_info(account_id, envelope_id) return data, status_code, headers end + # Gets the permission level the calling user has for an envelope + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @return [EnvelopesSharePermissionResponse] + def get_envelope_permission(account_id, envelope_id) + data, _status_code, _headers = get_envelope_permission_with_http_info(account_id, envelope_id) + return data + end + + # Gets the permission level the calling user has for an envelope + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @return [Array<(EnvelopesSharePermissionResponse, Fixnum, Hash)>] EnvelopesSharePermissionResponse data, response status code and response headers + def get_envelope_permission_with_http_info(account_id, envelope_id) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: EnvelopesApi.get_envelope_permission ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling EnvelopesApi.get_envelope_permission" if account_id.nil? + # verify the required parameter 'envelope_id' is set + fail ArgumentError, "Missing the required parameter 'envelope_id' when calling EnvelopesApi.get_envelope_permission" if envelope_id.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/shares/permission".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'envelopeId' + '}', envelope_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'EnvelopesSharePermissionResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EnvelopesApi#get_envelope_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Returns the scheduled sending rules for an envelope's workflow definition. # # @param account_id The external account number (int) or account ID Guid. diff --git a/lib/docusign_esign/api/insights_api.rb b/lib/docusign_esign/api/insights_api.rb new file mode 100644 index 00000000..8a65c904 --- /dev/null +++ b/lib/docusign_esign/api/insights_api.rb @@ -0,0 +1,193 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require "uri" + +module DocuSign_eSign + + + class InsightsApi + attr_accessor :api_client + + def initialize(api_client = InsightsApi.default) + @api_client = api_client + end + + # Sets recommendations for an envelope + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @param type + # @param recommendations_list_request (optional parameter) + # @return [RecommendationsListResponse] + def create_recommendations_intent(account_id, envelope_id, type, recommendations_list_request) + data, _status_code, _headers = create_recommendations_intent_with_http_info(account_id, envelope_id, type, recommendations_list_request) + return data + end + + # Sets recommendations for an envelope + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @param type + # @param recommendations_list_request (optional parameter) + # @return [Array<(RecommendationsListResponse, Fixnum, Hash)>] RecommendationsListResponse data, response status code and response headers + def create_recommendations_intent_with_http_info(account_id, envelope_id, type, recommendations_list_request) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: InsightsApi.create_recommendations_intent ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling InsightsApi.create_recommendations_intent" if account_id.nil? + # verify the required parameter 'envelope_id' is set + fail ArgumentError, "Missing the required parameter 'envelope_id' when calling InsightsApi.create_recommendations_intent" if envelope_id.nil? + # verify the required parameter 'type' is set + fail ArgumentError, "Missing the required parameter 'type' when calling InsightsApi.create_recommendations_intent" if type.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/recommendations/{type}/{envelopeId}/intent".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'envelopeId' + '}', envelope_id.to_s).sub('{' + 'type' + '}', type.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(recommendations_list_request) + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'RecommendationsListResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: InsightsApi#create_recommendations_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Gets Recommendations associated with an envelope + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @param type + # @return [RecommendationsListResponse] + def get_recommendations_intent(account_id, envelope_id, type) + data, _status_code, _headers = get_recommendations_intent_with_http_info(account_id, envelope_id, type) + return data + end + + # Gets Recommendations associated with an envelope + # + # @param account_id The external account number (int) or account ID Guid. + # @param envelope_id The envelopeId Guid of the envelope being accessed. + # @param type + # @return [Array<(RecommendationsListResponse, Fixnum, Hash)>] RecommendationsListResponse data, response status code and response headers + def get_recommendations_intent_with_http_info(account_id, envelope_id, type) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: InsightsApi.get_recommendations_intent ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling InsightsApi.get_recommendations_intent" if account_id.nil? + # verify the required parameter 'envelope_id' is set + fail ArgumentError, "Missing the required parameter 'envelope_id' when calling InsightsApi.get_recommendations_intent" if envelope_id.nil? + # verify the required parameter 'type' is set + fail ArgumentError, "Missing the required parameter 'type' when calling InsightsApi.get_recommendations_intent" if type.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/recommendations/{type}/{envelopeId}/intent".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'envelopeId' + '}', envelope_id.to_s).sub('{' + 'type' + '}', type.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'RecommendationsListResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: InsightsApi#get_recommendations_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Gets available Recommendations + # + # @param account_id The external account number (int) or account ID Guid. + # @param type + # @return [RecommendationsListResponse] + def get_recommendations_list(account_id, type) + data, _status_code, _headers = get_recommendations_list_with_http_info(account_id, type) + return data + end + + # Gets available Recommendations + # + # @param account_id The external account number (int) or account ID Guid. + # @param type + # @return [Array<(RecommendationsListResponse, Fixnum, Hash)>] RecommendationsListResponse data, response status code and response headers + def get_recommendations_list_with_http_info(account_id, type) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: InsightsApi.get_recommendations_list ..." + end + # verify the required parameter 'account_id' is set + fail ArgumentError, "Missing the required parameter 'account_id' when calling InsightsApi.get_recommendations_list" if account_id.nil? + # verify the required parameter 'type' is set + fail ArgumentError, "Missing the required parameter 'type' when calling InsightsApi.get_recommendations_list" if type.nil? + # resource path + local_var_path = "/v2.1/accounts/{accountId}/recommendations/{type}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'type' + '}', type.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = [] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'RecommendationsListResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: InsightsApi#get_recommendations_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end \ No newline at end of file diff --git a/lib/docusign_esign/api/templates_api.rb b/lib/docusign_esign/api/templates_api.rb index c9a11d0f..6bfe3477 100644 --- a/lib/docusign_esign/api/templates_api.rb +++ b/lib/docusign_esign/api/templates_api.rb @@ -26,6 +26,9 @@ class GetOptions # attr_accessor :include + # + attr_accessor :link_configuration_id + def self.default @@default ||= GetOptions.new end @@ -1474,6 +1477,7 @@ def get_with_http_info(account_id, template_id, options = DocuSign_eSign::GetOpt # query parameters query_params = {} query_params[:'include'] = options.include if !options.include.nil? + query_params[:'link_configuration_id'] = options.link_configuration_id if !options.link_configuration_id.nil? # header parameters header_params = {} diff --git a/lib/docusign_esign/client/api_client.rb b/lib/docusign_esign/client/api_client.rb index 74a19d3c..1ac1658c 100644 --- a/lib/docusign_esign/client/api_client.rb +++ b/lib/docusign_esign/client/api_client.rb @@ -35,7 +35,7 @@ class ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "Swagger-Codegen/v2.1/7.0.0/ruby-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}" + @user_agent = "Swagger-Codegen/v2.1/7.1.0/ruby-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}" @default_headers = { 'Content-Type' => "application/json", 'User-Agent' => @user_agent diff --git a/lib/docusign_esign/models/account_management_granular.rb b/lib/docusign_esign/models/account_management_granular.rb index a3999152..7de97788 100644 --- a/lib/docusign_esign/models/account_management_granular.rb +++ b/lib/docusign_esign/models/account_management_granular.rb @@ -94,6 +94,9 @@ class AccountManagementGranular # attr_accessor :allow_view_users + # + attr_accessor :view_only_account_admin_pages + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -123,7 +126,8 @@ def self.attribute_map :'allow_manage_stamps_metadata' => :'allowManageStampsMetadata', :'allow_manage_users' => :'allowManageUsers', :'allow_manage_users_metadata' => :'allowManageUsersMetadata', - :'allow_view_users' => :'allowViewUsers' + :'allow_view_users' => :'allowViewUsers', + :'view_only_account_admin_pages' => :'viewOnlyAccountAdminPages' } end @@ -156,7 +160,8 @@ def self.swagger_types :'allow_manage_stamps_metadata' => :'SettingsMetadata', :'allow_manage_users' => :'String', :'allow_manage_users_metadata' => :'SettingsMetadata', - :'allow_view_users' => :'String' + :'allow_view_users' => :'String', + :'view_only_account_admin_pages' => :'String' } end @@ -275,6 +280,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'allowViewUsers') self.allow_view_users = attributes[:'allowViewUsers'] end + + if attributes.has_key?(:'viewOnlyAccountAdminPages') + self.view_only_account_admin_pages = attributes[:'viewOnlyAccountAdminPages'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -321,7 +330,8 @@ def ==(o) allow_manage_stamps_metadata == o.allow_manage_stamps_metadata && allow_manage_users == o.allow_manage_users && allow_manage_users_metadata == o.allow_manage_users_metadata && - allow_view_users == o.allow_view_users + allow_view_users == o.allow_view_users && + view_only_account_admin_pages == o.view_only_account_admin_pages end # @see the `==` method @@ -333,7 +343,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [allow_manage_account_security_settings, allow_manage_account_security_settings_metadata, allow_manage_account_settings, allow_manage_account_settings_metadata, allow_manage_admins, allow_manage_admins_metadata, allow_manage_connect, allow_manage_connect_metadata, allow_manage_document_retention, allow_manage_document_retention_metadata, allow_manage_envelope_transfer, allow_manage_envelope_transfer_metadata, allow_manage_groups_but_not_users, allow_manage_groups_but_not_users_metadata, allow_manage_joint_agreements, allow_manage_joint_agreements_metadata, allow_manage_reporting, allow_manage_reporting_metadata, allow_manage_sharing, allow_manage_sharing_metadata, allow_manage_signing_groups, allow_manage_signing_groups_metadata, allow_manage_stamps, allow_manage_stamps_metadata, allow_manage_users, allow_manage_users_metadata, allow_view_users].hash + [allow_manage_account_security_settings, allow_manage_account_security_settings_metadata, allow_manage_account_settings, allow_manage_account_settings_metadata, allow_manage_admins, allow_manage_admins_metadata, allow_manage_connect, allow_manage_connect_metadata, allow_manage_document_retention, allow_manage_document_retention_metadata, allow_manage_envelope_transfer, allow_manage_envelope_transfer_metadata, allow_manage_groups_but_not_users, allow_manage_groups_but_not_users_metadata, allow_manage_joint_agreements, allow_manage_joint_agreements_metadata, allow_manage_reporting, allow_manage_reporting_metadata, allow_manage_sharing, allow_manage_sharing_metadata, allow_manage_signing_groups, allow_manage_signing_groups_metadata, allow_manage_stamps, allow_manage_stamps_metadata, allow_manage_users, allow_manage_users_metadata, allow_view_users, view_only_account_admin_pages].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/account_settings_information.rb b/lib/docusign_esign/models/account_settings_information.rb index 9036f0a1..0f66b8ce 100644 --- a/lib/docusign_esign/models/account_settings_information.rb +++ b/lib/docusign_esign/models/account_settings_information.rb @@ -1031,6 +1031,12 @@ class AccountSettingsInformation # Metadata that indicates whether the `documentVisibility` property is editable. attr_accessor :document_visibility_metadata + # + attr_accessor :docusign_pdf + + # + attr_accessor :docusign_pdf_metadata + # attr_accessor :draft_envelope_retention @@ -1367,6 +1373,12 @@ class AccountSettingsInformation # attr_accessor :enable_esign_task_list_metadata + # + attr_accessor :enable_gen_and_api + + # + attr_accessor :enable_gen_and_api_metadata + # attr_accessor :enable_generation_with3_p_integration @@ -1391,6 +1403,12 @@ class AccountSettingsInformation # attr_accessor :enable_iam_clause_library_metadata + # + attr_accessor :enable_iam_data_connector + + # + attr_accessor :enable_iam_data_connector_metadata + # attr_accessor :enable_ia_mfor_x_embedded_ux @@ -1529,6 +1547,9 @@ class AccountSettingsInformation # attr_accessor :enable_obligation_management_metadata + # + attr_accessor :enable_owner_insights_and_recommendations_setting_metadata + # attr_accessor :enable_participant_recipient_setting_metadata @@ -1628,6 +1649,9 @@ class AccountSettingsInformation # attr_accessor :enable_search_site_specific_api_metadata + # + attr_accessor :enable_sender_insights_and_recommendations_setting_metadata + # attr_accessor :enable_sending_tags_font_settings @@ -2951,6 +2975,8 @@ def self.attribute_map :'document_retention_purge_tabs' => :'documentRetentionPurgeTabs', :'document_visibility' => :'documentVisibility', :'document_visibility_metadata' => :'documentVisibilityMetadata', + :'docusign_pdf' => :'docusignPDF', + :'docusign_pdf_metadata' => :'docusignPDFMetadata', :'draft_envelope_retention' => :'draftEnvelopeRetention', :'draft_envelope_retention_metadata' => :'draftEnvelopeRetentionMetadata', :'dss_sign_28411_enable_leave_page_prompt_radmin_option' => :'dss_SIGN_28411_EnableLeavePagePrompt_RadminOption', @@ -3063,6 +3089,8 @@ def self.attribute_map :'enable_esign_communities_metadata' => :'enableEsignCommunitiesMetadata', :'enable_esign_task_list' => :'enableEsignTaskList', :'enable_esign_task_list_metadata' => :'enableEsignTaskListMetadata', + :'enable_gen_and_api' => :'enableGenAndAPI', + :'enable_gen_and_api_metadata' => :'enableGenAndAPIMetadata', :'enable_generation_with3_p_integration' => :'enableGenerationWith3PIntegration', :'enable_generation_with3_p_integration_meta_data' => :'enableGenerationWith3PIntegrationMetaData', :'enable_greenhouse_app' => :'enableGreenhouseApp', @@ -3071,6 +3099,8 @@ def self.attribute_map :'enable_i9_on_demand_metadata' => :'enableI9OnDemandMetadata', :'enable_iam_clause_library' => :'enableIAMClauseLibrary', :'enable_iam_clause_library_metadata' => :'enableIAMClauseLibraryMetadata', + :'enable_iam_data_connector' => :'enableIAMDataConnector', + :'enable_iam_data_connector_metadata' => :'enableIAMDataConnectorMetadata', :'enable_ia_mfor_x_embedded_ux' => :'enableIAMforXEmbeddedUX', :'enable_ia_mfor_x_embedded_ux_metadata' => :'enableIAMforXEmbeddedUXMetadata', :'enable_id_fx_accountless_sms_auth_for_part11' => :'enableIDFxAccountlessSMSAuthForPart11', @@ -3117,6 +3147,7 @@ def self.attribute_map :'enable_notary_on_demand_witness_metadata' => :'enableNotaryOnDemandWitnessMetadata', :'enable_obligation_management' => :'enableObligationManagement', :'enable_obligation_management_metadata' => :'enableObligationManagementMetadata', + :'enable_owner_insights_and_recommendations_setting_metadata' => :'enableOwnerInsightsAndRecommendationsSettingMetadata', :'enable_participant_recipient_setting_metadata' => :'enableParticipantRecipientSettingMetadata', :'enable_payment_processing' => :'enablePaymentProcessing', :'enable_payment_processing_metadata' => :'enablePaymentProcessingMetadata', @@ -3150,6 +3181,7 @@ def self.attribute_map :'enable_search_service_azure_uri_metadata' => :'enableSearchServiceAzureUriMetadata', :'enable_search_site_specific_api' => :'enableSearchSiteSpecificApi', :'enable_search_site_specific_api_metadata' => :'enableSearchSiteSpecificApiMetadata', + :'enable_sender_insights_and_recommendations_setting_metadata' => :'enableSenderInsightsAndRecommendationsSettingMetadata', :'enable_sending_tags_font_settings' => :'enableSendingTagsFontSettings', :'enable_sending_tags_font_settings_metadata' => :'enableSendingTagsFontSettingsMetadata', :'enable_send_to_agent' => :'enableSendToAgent', @@ -3822,6 +3854,8 @@ def self.swagger_types :'document_retention_purge_tabs' => :'String', :'document_visibility' => :'String', :'document_visibility_metadata' => :'SettingsMetadata', + :'docusign_pdf' => :'String', + :'docusign_pdf_metadata' => :'SettingsMetadata', :'draft_envelope_retention' => :'String', :'draft_envelope_retention_metadata' => :'SettingsMetadata', :'dss_sign_28411_enable_leave_page_prompt_radmin_option' => :'String', @@ -3934,6 +3968,8 @@ def self.swagger_types :'enable_esign_communities_metadata' => :'SettingsMetadata', :'enable_esign_task_list' => :'String', :'enable_esign_task_list_metadata' => :'SettingsMetadata', + :'enable_gen_and_api' => :'String', + :'enable_gen_and_api_metadata' => :'SettingsMetadata', :'enable_generation_with3_p_integration' => :'String', :'enable_generation_with3_p_integration_meta_data' => :'SettingsMetadata', :'enable_greenhouse_app' => :'String', @@ -3942,6 +3978,8 @@ def self.swagger_types :'enable_i9_on_demand_metadata' => :'SettingsMetadata', :'enable_iam_clause_library' => :'String', :'enable_iam_clause_library_metadata' => :'SettingsMetadata', + :'enable_iam_data_connector' => :'String', + :'enable_iam_data_connector_metadata' => :'SettingsMetadata', :'enable_ia_mfor_x_embedded_ux' => :'String', :'enable_ia_mfor_x_embedded_ux_metadata' => :'SettingsMetadata', :'enable_id_fx_accountless_sms_auth_for_part11' => :'String', @@ -3988,6 +4026,7 @@ def self.swagger_types :'enable_notary_on_demand_witness_metadata' => :'SettingsMetadata', :'enable_obligation_management' => :'String', :'enable_obligation_management_metadata' => :'SettingsMetadata', + :'enable_owner_insights_and_recommendations_setting_metadata' => :'SettingsMetadata', :'enable_participant_recipient_setting_metadata' => :'SettingsMetadata', :'enable_payment_processing' => :'String', :'enable_payment_processing_metadata' => :'SettingsMetadata', @@ -4021,6 +4060,7 @@ def self.swagger_types :'enable_search_service_azure_uri_metadata' => :'SettingsMetadata', :'enable_search_site_specific_api' => :'String', :'enable_search_site_specific_api_metadata' => :'SettingsMetadata', + :'enable_sender_insights_and_recommendations_setting_metadata' => :'SettingsMetadata', :'enable_sending_tags_font_settings' => :'String', :'enable_sending_tags_font_settings_metadata' => :'SettingsMetadata', :'enable_send_to_agent' => :'String', @@ -5717,6 +5757,14 @@ def initialize(attributes = {}) self.document_visibility_metadata = attributes[:'documentVisibilityMetadata'] end + if attributes.has_key?(:'docusignPDF') + self.docusign_pdf = attributes[:'docusignPDF'] + end + + if attributes.has_key?(:'docusignPDFMetadata') + self.docusign_pdf_metadata = attributes[:'docusignPDFMetadata'] + end + if attributes.has_key?(:'draftEnvelopeRetention') self.draft_envelope_retention = attributes[:'draftEnvelopeRetention'] end @@ -6165,6 +6213,14 @@ def initialize(attributes = {}) self.enable_esign_task_list_metadata = attributes[:'enableEsignTaskListMetadata'] end + if attributes.has_key?(:'enableGenAndAPI') + self.enable_gen_and_api = attributes[:'enableGenAndAPI'] + end + + if attributes.has_key?(:'enableGenAndAPIMetadata') + self.enable_gen_and_api_metadata = attributes[:'enableGenAndAPIMetadata'] + end + if attributes.has_key?(:'enableGenerationWith3PIntegration') self.enable_generation_with3_p_integration = attributes[:'enableGenerationWith3PIntegration'] end @@ -6197,6 +6253,14 @@ def initialize(attributes = {}) self.enable_iam_clause_library_metadata = attributes[:'enableIAMClauseLibraryMetadata'] end + if attributes.has_key?(:'enableIAMDataConnector') + self.enable_iam_data_connector = attributes[:'enableIAMDataConnector'] + end + + if attributes.has_key?(:'enableIAMDataConnectorMetadata') + self.enable_iam_data_connector_metadata = attributes[:'enableIAMDataConnectorMetadata'] + end + if attributes.has_key?(:'enableIAMforXEmbeddedUX') self.enable_ia_mfor_x_embedded_ux = attributes[:'enableIAMforXEmbeddedUX'] end @@ -6381,6 +6445,10 @@ def initialize(attributes = {}) self.enable_obligation_management_metadata = attributes[:'enableObligationManagementMetadata'] end + if attributes.has_key?(:'enableOwnerInsightsAndRecommendationsSettingMetadata') + self.enable_owner_insights_and_recommendations_setting_metadata = attributes[:'enableOwnerInsightsAndRecommendationsSettingMetadata'] + end + if attributes.has_key?(:'enableParticipantRecipientSettingMetadata') self.enable_participant_recipient_setting_metadata = attributes[:'enableParticipantRecipientSettingMetadata'] end @@ -6513,6 +6581,10 @@ def initialize(attributes = {}) self.enable_search_site_specific_api_metadata = attributes[:'enableSearchSiteSpecificApiMetadata'] end + if attributes.has_key?(:'enableSenderInsightsAndRecommendationsSettingMetadata') + self.enable_sender_insights_and_recommendations_setting_metadata = attributes[:'enableSenderInsightsAndRecommendationsSettingMetadata'] + end + if attributes.has_key?(:'enableSendingTagsFontSettings') self.enable_sending_tags_font_settings = attributes[:'enableSendingTagsFontSettings'] end @@ -8187,6 +8259,8 @@ def ==(o) document_retention_purge_tabs == o.document_retention_purge_tabs && document_visibility == o.document_visibility && document_visibility_metadata == o.document_visibility_metadata && + docusign_pdf == o.docusign_pdf && + docusign_pdf_metadata == o.docusign_pdf_metadata && draft_envelope_retention == o.draft_envelope_retention && draft_envelope_retention_metadata == o.draft_envelope_retention_metadata && dss_sign_28411_enable_leave_page_prompt_radmin_option == o.dss_sign_28411_enable_leave_page_prompt_radmin_option && @@ -8299,6 +8373,8 @@ def ==(o) enable_esign_communities_metadata == o.enable_esign_communities_metadata && enable_esign_task_list == o.enable_esign_task_list && enable_esign_task_list_metadata == o.enable_esign_task_list_metadata && + enable_gen_and_api == o.enable_gen_and_api && + enable_gen_and_api_metadata == o.enable_gen_and_api_metadata && enable_generation_with3_p_integration == o.enable_generation_with3_p_integration && enable_generation_with3_p_integration_meta_data == o.enable_generation_with3_p_integration_meta_data && enable_greenhouse_app == o.enable_greenhouse_app && @@ -8307,6 +8383,8 @@ def ==(o) enable_i9_on_demand_metadata == o.enable_i9_on_demand_metadata && enable_iam_clause_library == o.enable_iam_clause_library && enable_iam_clause_library_metadata == o.enable_iam_clause_library_metadata && + enable_iam_data_connector == o.enable_iam_data_connector && + enable_iam_data_connector_metadata == o.enable_iam_data_connector_metadata && enable_ia_mfor_x_embedded_ux == o.enable_ia_mfor_x_embedded_ux && enable_ia_mfor_x_embedded_ux_metadata == o.enable_ia_mfor_x_embedded_ux_metadata && enable_id_fx_accountless_sms_auth_for_part11 == o.enable_id_fx_accountless_sms_auth_for_part11 && @@ -8353,6 +8431,7 @@ def ==(o) enable_notary_on_demand_witness_metadata == o.enable_notary_on_demand_witness_metadata && enable_obligation_management == o.enable_obligation_management && enable_obligation_management_metadata == o.enable_obligation_management_metadata && + enable_owner_insights_and_recommendations_setting_metadata == o.enable_owner_insights_and_recommendations_setting_metadata && enable_participant_recipient_setting_metadata == o.enable_participant_recipient_setting_metadata && enable_payment_processing == o.enable_payment_processing && enable_payment_processing_metadata == o.enable_payment_processing_metadata && @@ -8386,6 +8465,7 @@ def ==(o) enable_search_service_azure_uri_metadata == o.enable_search_service_azure_uri_metadata && enable_search_site_specific_api == o.enable_search_site_specific_api && enable_search_site_specific_api_metadata == o.enable_search_site_specific_api_metadata && + enable_sender_insights_and_recommendations_setting_metadata == o.enable_sender_insights_and_recommendations_setting_metadata && enable_sending_tags_font_settings == o.enable_sending_tags_font_settings && enable_sending_tags_font_settings_metadata == o.enable_sending_tags_font_settings_metadata && enable_send_to_agent == o.enable_send_to_agent && @@ -8724,7 +8804,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [access_code_format, account_date_time_format, account_date_time_format_metadata, account_default_language, account_default_language_metadata, account_name, account_name_metadata, account_notification, account_ui_settings, additional_settings, adopt_sig_config, adopt_sig_config_metadata, advanced_correct, advanced_correct_metadata, advanced_search_enable_tab_field, advanced_search_enable_tab_field_metadata, advanced_search_enable_template_id_field, advanced_search_enable_template_id_field_metadata, advanced_search_enable_template_name_field, advanced_search_enable_template_name_field_metadata, ai_assisted_web_form_creation_level, ai_assisted_web_form_creation_level_metadata, allow_access_code_format, allow_access_code_format_metadata, allow_account_management_granular, allow_account_management_granular_metadata, allow_account_member_name_change, allow_account_member_name_change_metadata, allow_ace, allow_ace_metadata, allow_advanced_recipient_routing_conditional, allow_advanced_recipient_routing_conditional_metadata, allow_agent_name_email_edit, allow_agent_name_email_edit_metadata, allow_agreement_actions, allow_agreement_actions_metadata, allow_agreement_orchestrations, allow_agreement_orchestrations_metadata, allow_auto_nav_settings, allow_auto_nav_settings_metadata, allow_auto_tagging, allow_auto_tagging_metadata, allow_bulk_send, allow_bulk_send_metadata, allow_byoidv, allow_byoidv_metadata, allow_cd_withdraw, allow_cd_withdraw_metadata, allow_connect_agreement_ui, allow_connect_agreement_ui_metadata, allow_connect_authoritative_copy_ready_event_ui, allow_connect_envelope_reminder_sent_event_ui, allow_connect_envelope_removed_event, allow_connect_extension_ui, allow_connect_http_listener_configs, allow_connect_identity_verification_ui, allow_connect_o_auth_ui, allow_connect_send_finish_later, allow_connect_send_finish_later_metadata, allow_connect_unified_payload_ui, allow_connect_workspace_upload_request_ui, allow_consumer_disclosure_override, allow_consumer_disclosure_override_metadata, allow_data_download, allow_data_download_metadata, allow_delayed_routing, allow_delayed_routing_metadata, allow_delegated_signing, allow_delegated_signing_metadata, allow_doc_gen_documents, allow_doc_gen_documents_metadata, allow_document_disclosures, allow_document_disclosures_metadata, allow_documents_on_signed_envelopes, allow_documents_on_signed_envelopes_metadata, allow_document_visibility, allow_document_visibility_metadata, allow_editing_envelopes_on_behalf_of_others, allow_editing_envelopes_on_behalf_of_others_metadata, allow_e_hanko_stamps, allow_e_hanko_stamps_metadata, allow_e_note_e_original, allow_e_note_e_original_metadata, allow_envelope_correct, allow_envelope_correct_metadata, allow_envelope_custody_transfer, allow_envelope_custody_transfer_metadata, allow_envelope_custom_fields, allow_envelope_custom_fields_metadata, allow_envelope_publish_reporting, allow_envelope_publish_reporting_metadata, allow_envelope_reporting, allow_envelope_reporting_metadata, allow_expression, allow_expression_metadata, allow_express_signer_certificate, allow_express_signer_certificate_metadata, allow_extended_sending_resource_file, allow_extended_sending_resource_file_metadata, allow_external_linked_accounts, allow_external_linked_accounts_metadata, allow_external_signature_pad, allow_external_signature_pad_metadata, allow_fed_ramp_idv_level1, allow_fed_ramp_idv_level1_metadata, allow_fed_ramp_idv_level2, allow_fed_ramp_idv_level2_metadata, allow_idv_for_eu_qualified_signatures, allow_idv_for_eu_qualified_signatures_metadata, allow_idv_level1, allow_idv_level1_metadata, allow_idv_level1_trial, allow_idv_level1_trial_metadata, allow_idv_level2, allow_idv_level2_metadata, allow_idv_level3, allow_idv_level3_metadata, allow_idv_platform, allow_idv_platform_metadata, allow_idv_risk_assessment, allow_idv_risk_assessment_metadata, allow_in_person, allow_in_person_electronic_notary, allow_in_person_electronic_notary_metadata, allow_in_person_metadata, allow_managed_stamps, allow_managed_stamps_metadata, allow_managing_envelopes_on_behalf_of_others, allow_managing_envelopes_on_behalf_of_others_metadata, allow_markup, allow_markup_metadata, allow_member_time_zone, allow_member_time_zone_metadata, allow_merge_fields, allow_merge_fields_metadata, allow_multiple_brand_profiles, allow_multiple_brand_profiles_metadata, allow_multiple_signer_attachments, allow_multiple_signer_attachments_metadata, allow_non_us_phone_auth, allow_non_us_phone_auth_metadata, allow_ocr_of_envelope_documents, allow_ocr_of_envelope_documents_metadata, allow_offline_signing, allow_offline_signing_metadata, allow_only_standalone_web_forms, allow_only_standalone_web_forms_metadata, allow_open_trust_signer_certificate, allow_open_trust_signer_certificate_metadata, allow_organization_branding, allow_organization_branding_metadata, allow_organization_docusign_monitor, allow_organization_docusign_monitor_free, allow_organization_docusign_monitor_free_metadata, allow_organization_docusign_monitor_metadata, allow_organization_domain_user_management, allow_organization_domain_user_management_metadata, allow_organizations, allow_organizations_metadata, allow_organization_sso_management, allow_organization_sso_management_metadata, allow_organization_to_use_in_person_electronic_notary, allow_organization_to_use_in_person_electronic_notary_metadata, allow_organization_to_use_remote_notary, allow_organization_to_use_remote_notary_metadata, allow_organization_to_use_third_party_electronic_notary, allow_organization_to_use_third_party_electronic_notary_metadata, allow_participant_recipient_type, allow_participant_recipient_type_metadata, allow_payment_processing, allow_payment_processing_metadata, allow_pending_destination_url_edition, allow_pending_destination_url_edition_metadata, allow_performance_analytics, allow_performance_analytics_metadata, allow_phone_authentication, allow_phone_authentication_metadata, allow_phone_auth_override, allow_phone_auth_override_metadata, allow_private_signing_groups, allow_private_signing_groups_metadata, allow_recipient_connect, allow_recipient_connect_metadata, allow_reminders, allow_reminders_metadata, allow_remote_notary, allow_remote_notary_metadata, allow_resource_file_branding, allow_resource_file_branding_metadata, allow_safe_bio_pharma_signer_certificate, allow_safe_bio_pharma_signer_certificate_metadata, allow_scheduled_sending, allow_scheduled_sending_metadata, allow_security_appliance, allow_security_appliance_metadata, allow_sending_envelopes_on_behalf_of_others, allow_sending_envelopes_on_behalf_of_others_metadata, allow_send_to_certified_delivery, allow_send_to_certified_delivery_metadata, allow_send_to_intermediary, allow_send_to_intermediary_metadata, allow_server_templates, allow_server_templates_metadata, allow_set_embedded_recipient_start_url, allow_set_embedded_recipient_start_url_metadata, allow_shared_tabs, allow_shared_tabs_metadata, allow_signature_stamps, allow_signature_stamps_metadata, allow_sign_document_from_home_page, allow_sign_document_from_home_page_metadata, allow_signer_reassign, allow_signer_reassign_metadata, allow_signer_reassign_override, allow_signer_reassign_override_metadata, allow_signing_extensions, allow_signing_extensions_metadata, allow_signing_groups, allow_signing_groups_metadata, allow_signing_insights, allow_signing_insights_metadata, allow_signing_radio_deselect, allow_signing_radio_deselect_metadata, allow_sign_now, allow_sign_now_metadata, allow_sms_delivery, allow_sms_delivery_metadata, allow_social_id_login, allow_social_id_login_metadata, allow_supplemental_documents, allow_supplemental_documents_metadata, allow_third_party_electronic_notary, allow_third_party_electronic_notary_metadata, allow_transactions_workspace, allow_transactions_workspace_metadata, allow_transactions_workspace_original, allow_transactions_workspace_original_metadata, allow_users_to_access_directory, allow_users_to_access_directory_metadata, allow_value_insights, allow_value_insights_metadata, allow_web_forms, allow_web_forms_metadata, allow_whats_app_delivery, allow_whats_app_delivery_metadata, anchor_population_scope, anchor_population_scope_metadata, anchor_tag_versioned_placement_enabled, anchor_tag_versioned_placement_metadata_enabled, attach_completed_envelope, attach_completed_envelope_metadata, authentication_check, authentication_check_metadata, auto_nav_rule, auto_nav_rule_metadata, auto_provision_signer_account, auto_provision_signer_account_metadata, bcc_email_archive, bcc_email_archive_metadata, beta_switch_configuration, beta_switch_configuration_metadata, billing_address, billing_address_metadata, bulk_send, bulk_send_action_resend_limit, bulk_send_max_copies_in_batch, bulk_send_max_unprocessed_envelopes_count, bulk_send_metadata, can_self_brand_send, can_self_brand_send_metadata, can_self_brand_sign, can_self_brand_sign_metadata, can_use_salesforce_o_auth, can_use_salesforce_o_auth_metadata, capture_voice_recording, capture_voice_recording_metadata, cfr21_simplified_signing_enabled, cfr21_simplified_signing_enabled_metadata, cfr_use_wide_image, cfr_use_wide_image_metadata, check_for_multiple_admins_on_account, check_for_multiple_admins_on_account_metadata, chrome_signature_enabled, chrome_signature_enabled_metadata, cloud_ready, comment_email_show_message_text, comment_email_show_message_text_metadata, comments_allow_envelope_override, comments_allow_envelope_override_metadata, conditional_fields_enabled, conditional_fields_enabled_metadata, consumer_disclosure_frequency, consumer_disclosure_frequency_metadata, convert_pdf_fields, convert_pdf_fields_metadata, custom_extraction_plan_levels, custom_extraction_plan_levels_metadata, data_population_scope, data_population_scope_metadata, default_signing_responsive_view, default_signing_responsive_view_metadata, default_signing_responsive_view_use_grade, default_signing_responsive_view_use_grade_metadata, default_to_advanced_envelopes_filter_form, default_to_advanced_envelopes_filter_form_metadata, disable_auto_template_matching, disable_auto_template_matching_metadata, disable_legacy_kba, disable_legacy_kba_metadata, disable_legacy_shared_envelopes, disable_legacy_shared_envelopes_metadata, disable_mobile_app, disable_mobile_app_metadata, disable_mobile_push_notifications, disable_mobile_push_notifications_metadata, disable_mobile_sending, disable_mobile_sending_metadata, disable_multiple_sessions, disable_multiple_sessions_metadata, disable_purge_notifications_for_sender_metadata, disable_signer_cert_view, disable_signer_cert_view_metadata, disable_signer_history_view, disable_signer_history_view_metadata, disable_style_signature, disable_style_signature_metadata, disable_upload_signature, disable_upload_signature_metadata, disable_user_sharing, disable_user_sharing_metadata, display_beta_switch, display_beta_switch_metadata, document_conversion_restrictions, document_conversion_restrictions_metadata, document_retention, document_retention_metadata, document_retention_purge_tabs, document_visibility, document_visibility_metadata, draft_envelope_retention, draft_envelope_retention_metadata, dss_sign_28411_enable_leave_page_prompt_radmin_option, dss_sign_29182_slide_up_bar_radmin_option, email_template_version, email_template_version_metadata, enable_access_code_generator, enable_access_code_generator_metadata, enable_account_wide_search, enable_account_wide_search_metadata, enable_additional_advanced_web_forms_features, enable_additional_advanced_web_forms_features_metadata, enable_adm_healthcare, enable_adm_healthcare_metadata, enable_advanced_envelopes_search, enable_advanced_envelopes_search_metadata, enable_advanced_payments, enable_advanced_payments_metadata, enable_advanced_power_forms, enable_advanced_power_forms_metadata, enable_advanced_search, enable_advanced_search_metadata, enable_agreement_actions_for_clm, enable_agreement_actions_for_clm_metadata, enable_agreement_actions_for_e_sign, enable_agreement_actions_for_e_sign_metadata, enable_agreement_desk_advanced, enable_agreement_desk_advanced_meta_data, enable_ai_agents, enable_ai_agents_metadata, enable_ai_contract_review, enable_ai_contract_review_metadata, enable_ai_sender_message, enable_ai_sender_message_metadata, enable_ai_suggested_fields, enable_ai_suggested_fields_auto_place, enable_ai_suggested_fields_auto_place_metadata, enable_ai_suggested_fields_metadata, enable_auto_nav, enable_auto_nav_metadata, enable_batch_update_envelope_types, enable_batch_update_envelope_types_metadata, enable_bcc_dummy_link, enable_bcc_dummy_link_metadata, enable_cac_piv_signature_group, enable_cac_piv_signature_group_metadata, enable_calculated_fields, enable_calculated_fields_metadata, enable_cfr_rapid_signing_embedded_auth, enable_cfr_rapid_signing_embedded_auth_metadata, enable_click_plus, enable_click_plus_conditional_content, enable_click_plus_conditional_content_meta_data, enable_click_plus_custom_fields, enable_click_plus_custom_fields_meta_data, enable_click_plus_custom_style, enable_click_plus_custom_style_meta_data, enable_click_plus_dynamic_content, enable_click_plus_dynamic_content_meta_data, enable_click_plus_meta_data, enable_clickwraps, enable_clickwraps_metadata, enable_combined_pdf_download_for_sbs, enable_comments_history_download_in_signing, enable_comments_history_download_in_signing_metadata, enable_contact_suggestions, enable_contact_suggestions_metadata, enable_content_search, enable_content_search_metadata, enable_coupa_core_extension, enable_coupa_core_extension_metadata, enable_coupa_iam_connector, enable_coupa_iam_connector_metadata, enable_custom_data_verification_extensions, enable_custom_data_verification_extensions_metadata, enable_customer_satisfaction_metric_tracking, enable_customer_satisfaction_metric_tracking_metadata, enable_data_verification_extensions, enable_data_verification_extensions_metadata, enable_document_template_library, enable_document_template_library_metadata, enable_d_sig_eu_advanced_pens, enable_d_sig_eu_advanced_pens_metadata, enable_d_sig_express_pens, enable_d_sig_express_pens_metadata, enable_d_sig_id_check_for_aes_pens, enable_d_sig_id_check_for_aes_pens_metadata, enable_d_sig_id_check_in_person_for_qes_pens, enable_d_sig_id_check_in_person_for_qes_pens_metadata, enable_d_sig_id_check_remote_for_qes_pens, enable_d_sig_id_check_remote_for_qes_pens_metadata, enable_d_sig_id_verification_pens, enable_d_sig_id_verification_pens_metadata, enable_d_sig_id_verification_premier_pens, enable_d_sig_id_verification_premier_pens_metadata, enable_d_sig_pen_group_eu_qes, enable_d_sig_pen_group_eu_qes_metadata, enable_d_sig_plg_eu_qes_pens, enable_d_sig_plg_eu_qes_pens_metadata, enable_ds_pro, enable_ds_pro_metadata, enable_enforce_tls_emails_setting_metadata, enable_envelope_stamping_by_account_admin, enable_envelope_stamping_by_account_admin_metadata, enable_envelope_stamping_by_ds_admin, enable_envelope_stamping_by_ds_admin_metadata, enable_e_sign_api_hourly_limit_management, enable_e_sign_api_hourly_limit_management_metadata, enable_esign_communities, enable_esign_communities_metadata, enable_esign_task_list, enable_esign_task_list_metadata, enable_generation_with3_p_integration, enable_generation_with3_p_integration_meta_data, enable_greenhouse_app, enable_greenhouse_app_metadata, enable_i9_on_demand, enable_i9_on_demand_metadata, enable_iam_clause_library, enable_iam_clause_library_metadata, enable_ia_mfor_x_embedded_ux, enable_ia_mfor_x_embedded_ux_metadata, enable_id_fx_accountless_sms_auth_for_part11, enable_id_fx_accountless_sms_auth_for_part11_metadata, enable_id_fx_intuit_kba, enable_id_fx_intuit_kba_metadata, enable_id_fx_phone_authentication, enable_id_fx_phone_authentication_metadata, enable_idfx_phone_auth_signature_auth_status, enable_idfx_phone_auth_signature_auth_status_metadata, enable_inbox_browse_views_powered_by_elastic_search, enable_inbox_browse_views_powered_by_elastic_search_metadata, enable_inbox_relevance_sort, enable_inbox_relevance_sort_metadata, enable_in_browser_editor, enable_in_browser_editor_metadata, enable_key_terms_suggestions_by_document_type, enable_key_terms_suggestions_by_document_type_metadata, enable_large_file_support, enable_large_file_support_metadata, enable_legacy_shared_envelopes, enable_legacy_shared_envelopes_metadata, enable_license_management, enable_license_management_metadata, enable_microsoft_dynamics365_extension, enable_microsoft_dynamics365_extension_metadata, enable_multi_user_repository_features, enable_multi_user_repository_features_metadata, enable_navigator_api_data_in, enable_navigator_api_data_in_metadata, enable_navigator_api_data_out, enable_navigator_api_data_out_metadata, enable_navigator_api_utilities, enable_navigator_api_utilities_metadata, enable_navigator_for_hr, enable_navigator_for_hr_metadata, enable_navigator_hierarchy_ai, enable_navigator_hierarchy_ai_metadata, enable_navigator_partial_ingestion, enable_navigator_partial_ingestion_metadata, enable_navigator_trial, enable_navigator_trial_metadata, enable_notary_on_demand_witness, enable_notary_on_demand_witness_metadata, enable_obligation_management, enable_obligation_management_metadata, enable_participant_recipient_setting_metadata, enable_payment_processing, enable_payment_processing_metadata, enable_pdfa_conversion, enable_pdfa_conversion_metadata, enable_power_form, enable_power_form_direct, enable_power_form_direct_metadata, enable_power_form_metadata, enable_premium_data_verification_extensions, enable_premium_data_verification_extensions_metadata, enable_recipient_domain_validation, enable_recipient_domain_validation_metadata, enable_recipient_may_provide_phone_number, enable_recipient_may_provide_phone_number_metadata, enable_report_links, enable_report_links_metadata, enable_require_sign_on_paper, enable_require_sign_on_paper_metadata, enable_reserved_domain, enable_reserved_domain_metadata, enable_responsive_signing, enable_responsive_signing_metadata, enable_reviewer_events_setting, enable_reviewer_events_setting_metadata, enable_sap_ariba_extension, enable_sap_ariba_extension_meta_data, enable_scheduled_release, enable_scheduled_release_metadata, enable_search_service_azure_uri, enable_search_service_azure_uri_metadata, enable_search_site_specific_api, enable_search_site_specific_api_metadata, enable_sending_tags_font_settings, enable_sending_tags_font_settings_metadata, enable_send_to_agent, enable_send_to_agent_metadata, enable_send_to_intermediary, enable_send_to_intermediary_metadata, enable_send_to_manage, enable_send_to_manage_metadata, enable_sequential_signing_api, enable_sequential_signing_api_metadata, enable_sequential_signing_ui, enable_sequential_signing_ui_metadata, enable_signer_attachments, enable_signer_attachments_metadata, enable_signing_ai_features_plan, enable_signing_ai_features_plan_metadata, enable_signing_extension_comments, enable_signing_extension_comments_metadata, enable_signing_extension_conversations, enable_signing_extension_conversations_metadata, enable_signing_group_continue_page_setting, enable_signing_group_continue_page_setting_metadata, enable_signing_order_settings_for_account, enable_signing_order_settings_for_account_metadata, enable_sign_on_paper, enable_sign_on_paper_metadata, enable_sign_on_paper_override, enable_sign_on_paper_override_metadata, enable_sign_with_notary, enable_sign_with_notary_metadata, enable_smart_contracts, enable_smart_contracts_metadata, enable_sms_authentication, enable_sms_authentication_metadata, enable_sms_delivery_additional_notification, enable_sms_delivery_additional_notification_metadata, enable_sms_delivery_primary, enable_social_id_login, enable_social_id_login_metadata, enable_strike_through, enable_strike_through_metadata, enable_tickets, enable_tickets_meta_data, enable_transaction_point, enable_transaction_point_metadata, enable_unified_repository, enable_unified_repository_metadata, enable_vaulting, enable_vaulting_metadata, enable_web_forms_runtime_ap_is, enable_web_forms_runtime_ap_is_metadata, enable_web_forms_separate_user_permissions, enable_web_forms_separate_user_permissions_metadata, enable_witnessing, enable_witnessing_metadata, enable_workday_financials_extension, enable_workday_financials_extension_meta_data, enable_workday_hr_app, enable_workday_hr_app_metadata, enforce_template_name_uniqueness, enforce_template_name_uniqueness_metadata, enforce_tls_emails, enforce_tls_emails_metadata, envelope_integration_allowed, envelope_integration_allowed_metadata, envelope_integration_enabled, envelope_integration_enabled_metadata, envelope_limits_total_document_size_allowed_in_mb, envelope_limits_total_document_size_allowed_in_mb_enabled, envelope_limits_total_document_size_allowed_in_mb_enabled_metadata, envelope_limits_total_document_size_allowed_in_mb_metadata, envelope_search_mode, envelope_search_mode_metadata, envelope_stamping_default_value, envelope_stamping_default_value_metadata, exit_prompt, exit_prompt_metadata, express_send, express_send_allow_tabs, express_send_allow_tabs_metadata, express_send_metadata, external_document_sources, external_signature_pad_type, external_signature_pad_type_metadata, fax_out_enabled, fax_out_enabled_metadata, finish_reminder, finish_reminder_metadata, forbid_adding_user_stamps, forbid_adding_user_stamps_metadata, guided_forms_html_allowed, guided_forms_html_allowed_metadata, guided_forms_html_conversion_policy, guided_forms_html_conversion_policy_metadata, has_recipient_connect_claimed_domain, hide_account_address_in_co_c, hide_account_address_in_co_c_metadata, hide_pricing, hide_pricing_metadata, id_check_configurations, id_check_expire, id_check_expire_days, id_check_expire_days_metadata, id_check_expire_metadata, id_check_expire_minutes, id_check_expire_minutes_metadata, id_check_required, id_check_required_metadata, identity_verification, identity_verification_metadata, idfx_kba_authentication_override, idfx_kba_authentication_override_metadata, idfx_phone_authentication_override, idfx_phone_authentication_override_metadata, ignore_error_if_anchor_tab_not_found, ignore_error_if_anchor_tab_not_found_metadata_enabled, in_person_id_check_question, in_person_id_check_question_metadata, in_person_signing_enabled, in_person_signing_enabled_metadata, in_session_enabled, in_session_enabled_metadata, in_session_suppress_emails, in_session_suppress_emails_metadata, is_connect_document_fields_enabled, isv_embed, isv_embed_meta_data, isv_oem_embed, isv_oem_embed_meta_data, linked_external_primary_accounts, maestro_plan_levels, maestro_plan_levels_metadata, maximum_signing_groups, maximum_signing_groups_metadata, maximum_users_per_signing_group, maximum_users_per_signing_group_metadata, max_number_of_custom_stamps, merge_mixed_mode_results, merge_mixed_mode_results_metadata, mobile_session_timeout, mobile_session_timeout_metadata, number_of_active_custom_stamps, opt_in_mobile_signing_v02, opt_in_mobile_signing_v02_metadata, opt_in_universal_signatures, opt_out_auto_nav_text_and_tab_color_updates, opt_out_auto_nav_text_and_tab_color_updates_metadata, opt_out_new_platform_seal, opt_out_new_platform_seal_platform_metadata, original_account_site, participant_copy_opt_out, participant_copy_opt_out_metadata, pdf_max_chunked_upload_part_size, pdf_max_chunked_upload_part_size_metadata, pdf_max_chunked_upload_total_size, pdf_max_chunked_upload_total_size_metadata, pdf_max_individual_upload_size, pdf_max_individual_upload_size_metadata, phone_auth_recipient_may_provide_phone_number, phone_auth_recipient_may_provide_phone_number_metadata, pki_sign_downloaded_pdf_docs, pki_sign_downloaded_pdf_docs_metadata, read_only_mode, read_only_mode_metadata, recipients_can_sign_offline, recipients_can_sign_offline_metadata, recipient_signing_auto_navigation_control, recipient_signing_auto_navigation_control_metadata, recycle_bin_envelope_retention, recycle_bin_envelope_retention_metadata, require21_cf_rpt11_compliance, require21_cf_rpt11_compliance_metadata, require_decline_reason, require_decline_reason_metadata, require_external_user_management, require_external_user_management_metadata, require_signer_certificate_type, require_signer_certificate_type_metadata, rsa_verid_account_name, rsa_verid_password, rsa_verid_ruleset, rsa_verid_user_id, self_signed_recipient_email_document, self_signed_recipient_email_document_metadata, self_signed_recipient_email_document_user_override, self_signed_recipient_email_document_user_override_metadata, sender_can_sign_in_each_location, sender_can_sign_in_each_location_metadata, sender_must_authenticate_signing, sender_must_authenticate_signing_metadata, sending_tags_font_color, sending_tags_font_color_metadata, sending_tags_font_name, sending_tags_font_name_metadata, sending_tags_font_size, sending_tags_font_size_metadata, send_lockout_recipient_notification, send_lockout_recipient_notification_metadata, send_to_certified_delivery_enabled, send_to_certified_delivery_enabled_metadata, session_timeout, session_timeout_metadata, set_recip_email_lang, set_recip_email_lang_metadata, set_recip_sign_lang, set_recip_sign_lang_metadata, shared_template_folders, shared_template_folders_metadata, show_complete_dialog_in_embedded_session, show_complete_dialog_in_embedded_session_metadata, show_conditional_routing_on_send, show_conditional_routing_on_send_metadata, show_initial_conditional_fields, show_initial_conditional_fields_metadata, show_localized_watermarks, show_localized_watermarks_metadata, show_masked_fields_when_downloading_document_as_sender, show_masked_fields_when_downloading_document_as_sender_metadata, show_tutorials, show_tutorials_metadata, signature_providers, signature_providers_metadata, sign_date_format, sign_date_format_metadata, sign_date_time_account_language_override, sign_date_time_account_language_override_metadata, sign_date_time_account_timezone_override, sign_date_time_account_timezone_override_metadata, signer_attach_certificate_to_envelope_pdf, signer_attach_certificate_to_envelope_pdf_metadata, signer_attach_concat, signer_attach_concat_metadata, signer_can_create_account, signer_can_create_account_metadata, signer_can_sign_on_mobile, signer_can_sign_on_mobile_metadata, signer_in_session_use_envelope_complete_email, signer_in_session_use_envelope_complete_email_metadata, signer_login_requirements, signer_login_requirements_metadata, signer_must_have_account, signer_must_have_account_metadata, signer_must_login_to_sign, signer_must_login_to_sign_metadata, signer_show_secure_field_initial_values, signer_show_secure_field_initial_values_metadata, signing_session_timeout, signing_session_timeout_metadata, signing_ui_version, signing_ui_version_metadata, sign_time_format, sign_time_format_metadata, sign_time_show_am_pm, sign_time_show_am_pm_metadata, simplified_sending_enabled, simplified_sending_enabled_metadata, single_sign_on_enabled, single_sign_on_enabled_metadata, skip_auth_completed_envelopes, skip_auth_completed_envelopes_metadata, social_id_recip_auth, social_id_recip_auth_metadata, specify_document_visibility, specify_document_visibility_metadata, start_in_advanced_correct, start_in_advanced_correct_metadata, supplemental_documents_must_accept, supplemental_documents_must_accept_metadata, supplemental_documents_must_read, supplemental_documents_must_read_metadata, supplemental_documents_must_view, supplemental_documents_must_view_metadata, suppress_certificate_enforcement, suppress_certificate_enforcement_metadata, tab_account_settings, timezone_offset_api, timezone_offset_api_metadata, timezone_offset_ui, timezone_offset_ui_metadata, universal_signature_opt_in, universal_signature_skip_platform_signature, universal_signature_skip_platform_signature_metadata, use_account_level_email, use_account_level_email_metadata, use_consumer_disclosure, use_consumer_disclosure_metadata, use_consumer_disclosure_within_account, use_consumer_disclosure_within_account_metadata, use_derived_keys, use_derived_keys_metadata, use_docu_sign_express_signer_certificate, use_docu_sign_express_signer_certificate_metadata, use_envelope_search_mixed_mode, use_envelope_search_mixed_mode_metadata, use_multi_app_groups_data, use_multi_app_groups_data_metadata, use_new_blob_for_pdf, use_new_blob_for_pdf_metadata, use_new_envelope_search, use_new_envelope_search_metadata, use_new_envelope_search_only_when_searching_after_date, use_new_envelope_search_only_when_searching_after_date_metadata, use_new_envelope_search_only_with_search_term, use_new_envelope_search_only_with_search_term_metadata, use_safe_signer_certificates, use_safe_signer_certificates_metadata, uses_api, uses_api_metadata, use_signature_provider_platform, use_signature_provider_platform_metadata, use_smart_contracts_v1, validations_allowed, validations_allowed_metadata, validations_brand, validations_brand_metadata, validations_cadence, validations_cadence_metadata, validations_enabled, validations_enabled_metadata, validations_report, validations_report_metadata, water_mark_enabled, water_mark_enabled_metadata, write_reminder_to_envelope_history, write_reminder_to_envelope_history_metadata, wurfl_min_allowable_screen_size, wurfl_min_allowable_screen_size_metadata].hash + [access_code_format, account_date_time_format, account_date_time_format_metadata, account_default_language, account_default_language_metadata, account_name, account_name_metadata, account_notification, account_ui_settings, additional_settings, adopt_sig_config, adopt_sig_config_metadata, advanced_correct, advanced_correct_metadata, advanced_search_enable_tab_field, advanced_search_enable_tab_field_metadata, advanced_search_enable_template_id_field, advanced_search_enable_template_id_field_metadata, advanced_search_enable_template_name_field, advanced_search_enable_template_name_field_metadata, ai_assisted_web_form_creation_level, ai_assisted_web_form_creation_level_metadata, allow_access_code_format, allow_access_code_format_metadata, allow_account_management_granular, allow_account_management_granular_metadata, allow_account_member_name_change, allow_account_member_name_change_metadata, allow_ace, allow_ace_metadata, allow_advanced_recipient_routing_conditional, allow_advanced_recipient_routing_conditional_metadata, allow_agent_name_email_edit, allow_agent_name_email_edit_metadata, allow_agreement_actions, allow_agreement_actions_metadata, allow_agreement_orchestrations, allow_agreement_orchestrations_metadata, allow_auto_nav_settings, allow_auto_nav_settings_metadata, allow_auto_tagging, allow_auto_tagging_metadata, allow_bulk_send, allow_bulk_send_metadata, allow_byoidv, allow_byoidv_metadata, allow_cd_withdraw, allow_cd_withdraw_metadata, allow_connect_agreement_ui, allow_connect_agreement_ui_metadata, allow_connect_authoritative_copy_ready_event_ui, allow_connect_envelope_reminder_sent_event_ui, allow_connect_envelope_removed_event, allow_connect_extension_ui, allow_connect_http_listener_configs, allow_connect_identity_verification_ui, allow_connect_o_auth_ui, allow_connect_send_finish_later, allow_connect_send_finish_later_metadata, allow_connect_unified_payload_ui, allow_connect_workspace_upload_request_ui, allow_consumer_disclosure_override, allow_consumer_disclosure_override_metadata, allow_data_download, allow_data_download_metadata, allow_delayed_routing, allow_delayed_routing_metadata, allow_delegated_signing, allow_delegated_signing_metadata, allow_doc_gen_documents, allow_doc_gen_documents_metadata, allow_document_disclosures, allow_document_disclosures_metadata, allow_documents_on_signed_envelopes, allow_documents_on_signed_envelopes_metadata, allow_document_visibility, allow_document_visibility_metadata, allow_editing_envelopes_on_behalf_of_others, allow_editing_envelopes_on_behalf_of_others_metadata, allow_e_hanko_stamps, allow_e_hanko_stamps_metadata, allow_e_note_e_original, allow_e_note_e_original_metadata, allow_envelope_correct, allow_envelope_correct_metadata, allow_envelope_custody_transfer, allow_envelope_custody_transfer_metadata, allow_envelope_custom_fields, allow_envelope_custom_fields_metadata, allow_envelope_publish_reporting, allow_envelope_publish_reporting_metadata, allow_envelope_reporting, allow_envelope_reporting_metadata, allow_expression, allow_expression_metadata, allow_express_signer_certificate, allow_express_signer_certificate_metadata, allow_extended_sending_resource_file, allow_extended_sending_resource_file_metadata, allow_external_linked_accounts, allow_external_linked_accounts_metadata, allow_external_signature_pad, allow_external_signature_pad_metadata, allow_fed_ramp_idv_level1, allow_fed_ramp_idv_level1_metadata, allow_fed_ramp_idv_level2, allow_fed_ramp_idv_level2_metadata, allow_idv_for_eu_qualified_signatures, allow_idv_for_eu_qualified_signatures_metadata, allow_idv_level1, allow_idv_level1_metadata, allow_idv_level1_trial, allow_idv_level1_trial_metadata, allow_idv_level2, allow_idv_level2_metadata, allow_idv_level3, allow_idv_level3_metadata, allow_idv_platform, allow_idv_platform_metadata, allow_idv_risk_assessment, allow_idv_risk_assessment_metadata, allow_in_person, allow_in_person_electronic_notary, allow_in_person_electronic_notary_metadata, allow_in_person_metadata, allow_managed_stamps, allow_managed_stamps_metadata, allow_managing_envelopes_on_behalf_of_others, allow_managing_envelopes_on_behalf_of_others_metadata, allow_markup, allow_markup_metadata, allow_member_time_zone, allow_member_time_zone_metadata, allow_merge_fields, allow_merge_fields_metadata, allow_multiple_brand_profiles, allow_multiple_brand_profiles_metadata, allow_multiple_signer_attachments, allow_multiple_signer_attachments_metadata, allow_non_us_phone_auth, allow_non_us_phone_auth_metadata, allow_ocr_of_envelope_documents, allow_ocr_of_envelope_documents_metadata, allow_offline_signing, allow_offline_signing_metadata, allow_only_standalone_web_forms, allow_only_standalone_web_forms_metadata, allow_open_trust_signer_certificate, allow_open_trust_signer_certificate_metadata, allow_organization_branding, allow_organization_branding_metadata, allow_organization_docusign_monitor, allow_organization_docusign_monitor_free, allow_organization_docusign_monitor_free_metadata, allow_organization_docusign_monitor_metadata, allow_organization_domain_user_management, allow_organization_domain_user_management_metadata, allow_organizations, allow_organizations_metadata, allow_organization_sso_management, allow_organization_sso_management_metadata, allow_organization_to_use_in_person_electronic_notary, allow_organization_to_use_in_person_electronic_notary_metadata, allow_organization_to_use_remote_notary, allow_organization_to_use_remote_notary_metadata, allow_organization_to_use_third_party_electronic_notary, allow_organization_to_use_third_party_electronic_notary_metadata, allow_participant_recipient_type, allow_participant_recipient_type_metadata, allow_payment_processing, allow_payment_processing_metadata, allow_pending_destination_url_edition, allow_pending_destination_url_edition_metadata, allow_performance_analytics, allow_performance_analytics_metadata, allow_phone_authentication, allow_phone_authentication_metadata, allow_phone_auth_override, allow_phone_auth_override_metadata, allow_private_signing_groups, allow_private_signing_groups_metadata, allow_recipient_connect, allow_recipient_connect_metadata, allow_reminders, allow_reminders_metadata, allow_remote_notary, allow_remote_notary_metadata, allow_resource_file_branding, allow_resource_file_branding_metadata, allow_safe_bio_pharma_signer_certificate, allow_safe_bio_pharma_signer_certificate_metadata, allow_scheduled_sending, allow_scheduled_sending_metadata, allow_security_appliance, allow_security_appliance_metadata, allow_sending_envelopes_on_behalf_of_others, allow_sending_envelopes_on_behalf_of_others_metadata, allow_send_to_certified_delivery, allow_send_to_certified_delivery_metadata, allow_send_to_intermediary, allow_send_to_intermediary_metadata, allow_server_templates, allow_server_templates_metadata, allow_set_embedded_recipient_start_url, allow_set_embedded_recipient_start_url_metadata, allow_shared_tabs, allow_shared_tabs_metadata, allow_signature_stamps, allow_signature_stamps_metadata, allow_sign_document_from_home_page, allow_sign_document_from_home_page_metadata, allow_signer_reassign, allow_signer_reassign_metadata, allow_signer_reassign_override, allow_signer_reassign_override_metadata, allow_signing_extensions, allow_signing_extensions_metadata, allow_signing_groups, allow_signing_groups_metadata, allow_signing_insights, allow_signing_insights_metadata, allow_signing_radio_deselect, allow_signing_radio_deselect_metadata, allow_sign_now, allow_sign_now_metadata, allow_sms_delivery, allow_sms_delivery_metadata, allow_social_id_login, allow_social_id_login_metadata, allow_supplemental_documents, allow_supplemental_documents_metadata, allow_third_party_electronic_notary, allow_third_party_electronic_notary_metadata, allow_transactions_workspace, allow_transactions_workspace_metadata, allow_transactions_workspace_original, allow_transactions_workspace_original_metadata, allow_users_to_access_directory, allow_users_to_access_directory_metadata, allow_value_insights, allow_value_insights_metadata, allow_web_forms, allow_web_forms_metadata, allow_whats_app_delivery, allow_whats_app_delivery_metadata, anchor_population_scope, anchor_population_scope_metadata, anchor_tag_versioned_placement_enabled, anchor_tag_versioned_placement_metadata_enabled, attach_completed_envelope, attach_completed_envelope_metadata, authentication_check, authentication_check_metadata, auto_nav_rule, auto_nav_rule_metadata, auto_provision_signer_account, auto_provision_signer_account_metadata, bcc_email_archive, bcc_email_archive_metadata, beta_switch_configuration, beta_switch_configuration_metadata, billing_address, billing_address_metadata, bulk_send, bulk_send_action_resend_limit, bulk_send_max_copies_in_batch, bulk_send_max_unprocessed_envelopes_count, bulk_send_metadata, can_self_brand_send, can_self_brand_send_metadata, can_self_brand_sign, can_self_brand_sign_metadata, can_use_salesforce_o_auth, can_use_salesforce_o_auth_metadata, capture_voice_recording, capture_voice_recording_metadata, cfr21_simplified_signing_enabled, cfr21_simplified_signing_enabled_metadata, cfr_use_wide_image, cfr_use_wide_image_metadata, check_for_multiple_admins_on_account, check_for_multiple_admins_on_account_metadata, chrome_signature_enabled, chrome_signature_enabled_metadata, cloud_ready, comment_email_show_message_text, comment_email_show_message_text_metadata, comments_allow_envelope_override, comments_allow_envelope_override_metadata, conditional_fields_enabled, conditional_fields_enabled_metadata, consumer_disclosure_frequency, consumer_disclosure_frequency_metadata, convert_pdf_fields, convert_pdf_fields_metadata, custom_extraction_plan_levels, custom_extraction_plan_levels_metadata, data_population_scope, data_population_scope_metadata, default_signing_responsive_view, default_signing_responsive_view_metadata, default_signing_responsive_view_use_grade, default_signing_responsive_view_use_grade_metadata, default_to_advanced_envelopes_filter_form, default_to_advanced_envelopes_filter_form_metadata, disable_auto_template_matching, disable_auto_template_matching_metadata, disable_legacy_kba, disable_legacy_kba_metadata, disable_legacy_shared_envelopes, disable_legacy_shared_envelopes_metadata, disable_mobile_app, disable_mobile_app_metadata, disable_mobile_push_notifications, disable_mobile_push_notifications_metadata, disable_mobile_sending, disable_mobile_sending_metadata, disable_multiple_sessions, disable_multiple_sessions_metadata, disable_purge_notifications_for_sender_metadata, disable_signer_cert_view, disable_signer_cert_view_metadata, disable_signer_history_view, disable_signer_history_view_metadata, disable_style_signature, disable_style_signature_metadata, disable_upload_signature, disable_upload_signature_metadata, disable_user_sharing, disable_user_sharing_metadata, display_beta_switch, display_beta_switch_metadata, document_conversion_restrictions, document_conversion_restrictions_metadata, document_retention, document_retention_metadata, document_retention_purge_tabs, document_visibility, document_visibility_metadata, docusign_pdf, docusign_pdf_metadata, draft_envelope_retention, draft_envelope_retention_metadata, dss_sign_28411_enable_leave_page_prompt_radmin_option, dss_sign_29182_slide_up_bar_radmin_option, email_template_version, email_template_version_metadata, enable_access_code_generator, enable_access_code_generator_metadata, enable_account_wide_search, enable_account_wide_search_metadata, enable_additional_advanced_web_forms_features, enable_additional_advanced_web_forms_features_metadata, enable_adm_healthcare, enable_adm_healthcare_metadata, enable_advanced_envelopes_search, enable_advanced_envelopes_search_metadata, enable_advanced_payments, enable_advanced_payments_metadata, enable_advanced_power_forms, enable_advanced_power_forms_metadata, enable_advanced_search, enable_advanced_search_metadata, enable_agreement_actions_for_clm, enable_agreement_actions_for_clm_metadata, enable_agreement_actions_for_e_sign, enable_agreement_actions_for_e_sign_metadata, enable_agreement_desk_advanced, enable_agreement_desk_advanced_meta_data, enable_ai_agents, enable_ai_agents_metadata, enable_ai_contract_review, enable_ai_contract_review_metadata, enable_ai_sender_message, enable_ai_sender_message_metadata, enable_ai_suggested_fields, enable_ai_suggested_fields_auto_place, enable_ai_suggested_fields_auto_place_metadata, enable_ai_suggested_fields_metadata, enable_auto_nav, enable_auto_nav_metadata, enable_batch_update_envelope_types, enable_batch_update_envelope_types_metadata, enable_bcc_dummy_link, enable_bcc_dummy_link_metadata, enable_cac_piv_signature_group, enable_cac_piv_signature_group_metadata, enable_calculated_fields, enable_calculated_fields_metadata, enable_cfr_rapid_signing_embedded_auth, enable_cfr_rapid_signing_embedded_auth_metadata, enable_click_plus, enable_click_plus_conditional_content, enable_click_plus_conditional_content_meta_data, enable_click_plus_custom_fields, enable_click_plus_custom_fields_meta_data, enable_click_plus_custom_style, enable_click_plus_custom_style_meta_data, enable_click_plus_dynamic_content, enable_click_plus_dynamic_content_meta_data, enable_click_plus_meta_data, enable_clickwraps, enable_clickwraps_metadata, enable_combined_pdf_download_for_sbs, enable_comments_history_download_in_signing, enable_comments_history_download_in_signing_metadata, enable_contact_suggestions, enable_contact_suggestions_metadata, enable_content_search, enable_content_search_metadata, enable_coupa_core_extension, enable_coupa_core_extension_metadata, enable_coupa_iam_connector, enable_coupa_iam_connector_metadata, enable_custom_data_verification_extensions, enable_custom_data_verification_extensions_metadata, enable_customer_satisfaction_metric_tracking, enable_customer_satisfaction_metric_tracking_metadata, enable_data_verification_extensions, enable_data_verification_extensions_metadata, enable_document_template_library, enable_document_template_library_metadata, enable_d_sig_eu_advanced_pens, enable_d_sig_eu_advanced_pens_metadata, enable_d_sig_express_pens, enable_d_sig_express_pens_metadata, enable_d_sig_id_check_for_aes_pens, enable_d_sig_id_check_for_aes_pens_metadata, enable_d_sig_id_check_in_person_for_qes_pens, enable_d_sig_id_check_in_person_for_qes_pens_metadata, enable_d_sig_id_check_remote_for_qes_pens, enable_d_sig_id_check_remote_for_qes_pens_metadata, enable_d_sig_id_verification_pens, enable_d_sig_id_verification_pens_metadata, enable_d_sig_id_verification_premier_pens, enable_d_sig_id_verification_premier_pens_metadata, enable_d_sig_pen_group_eu_qes, enable_d_sig_pen_group_eu_qes_metadata, enable_d_sig_plg_eu_qes_pens, enable_d_sig_plg_eu_qes_pens_metadata, enable_ds_pro, enable_ds_pro_metadata, enable_enforce_tls_emails_setting_metadata, enable_envelope_stamping_by_account_admin, enable_envelope_stamping_by_account_admin_metadata, enable_envelope_stamping_by_ds_admin, enable_envelope_stamping_by_ds_admin_metadata, enable_e_sign_api_hourly_limit_management, enable_e_sign_api_hourly_limit_management_metadata, enable_esign_communities, enable_esign_communities_metadata, enable_esign_task_list, enable_esign_task_list_metadata, enable_gen_and_api, enable_gen_and_api_metadata, enable_generation_with3_p_integration, enable_generation_with3_p_integration_meta_data, enable_greenhouse_app, enable_greenhouse_app_metadata, enable_i9_on_demand, enable_i9_on_demand_metadata, enable_iam_clause_library, enable_iam_clause_library_metadata, enable_iam_data_connector, enable_iam_data_connector_metadata, enable_ia_mfor_x_embedded_ux, enable_ia_mfor_x_embedded_ux_metadata, enable_id_fx_accountless_sms_auth_for_part11, enable_id_fx_accountless_sms_auth_for_part11_metadata, enable_id_fx_intuit_kba, enable_id_fx_intuit_kba_metadata, enable_id_fx_phone_authentication, enable_id_fx_phone_authentication_metadata, enable_idfx_phone_auth_signature_auth_status, enable_idfx_phone_auth_signature_auth_status_metadata, enable_inbox_browse_views_powered_by_elastic_search, enable_inbox_browse_views_powered_by_elastic_search_metadata, enable_inbox_relevance_sort, enable_inbox_relevance_sort_metadata, enable_in_browser_editor, enable_in_browser_editor_metadata, enable_key_terms_suggestions_by_document_type, enable_key_terms_suggestions_by_document_type_metadata, enable_large_file_support, enable_large_file_support_metadata, enable_legacy_shared_envelopes, enable_legacy_shared_envelopes_metadata, enable_license_management, enable_license_management_metadata, enable_microsoft_dynamics365_extension, enable_microsoft_dynamics365_extension_metadata, enable_multi_user_repository_features, enable_multi_user_repository_features_metadata, enable_navigator_api_data_in, enable_navigator_api_data_in_metadata, enable_navigator_api_data_out, enable_navigator_api_data_out_metadata, enable_navigator_api_utilities, enable_navigator_api_utilities_metadata, enable_navigator_for_hr, enable_navigator_for_hr_metadata, enable_navigator_hierarchy_ai, enable_navigator_hierarchy_ai_metadata, enable_navigator_partial_ingestion, enable_navigator_partial_ingestion_metadata, enable_navigator_trial, enable_navigator_trial_metadata, enable_notary_on_demand_witness, enable_notary_on_demand_witness_metadata, enable_obligation_management, enable_obligation_management_metadata, enable_owner_insights_and_recommendations_setting_metadata, enable_participant_recipient_setting_metadata, enable_payment_processing, enable_payment_processing_metadata, enable_pdfa_conversion, enable_pdfa_conversion_metadata, enable_power_form, enable_power_form_direct, enable_power_form_direct_metadata, enable_power_form_metadata, enable_premium_data_verification_extensions, enable_premium_data_verification_extensions_metadata, enable_recipient_domain_validation, enable_recipient_domain_validation_metadata, enable_recipient_may_provide_phone_number, enable_recipient_may_provide_phone_number_metadata, enable_report_links, enable_report_links_metadata, enable_require_sign_on_paper, enable_require_sign_on_paper_metadata, enable_reserved_domain, enable_reserved_domain_metadata, enable_responsive_signing, enable_responsive_signing_metadata, enable_reviewer_events_setting, enable_reviewer_events_setting_metadata, enable_sap_ariba_extension, enable_sap_ariba_extension_meta_data, enable_scheduled_release, enable_scheduled_release_metadata, enable_search_service_azure_uri, enable_search_service_azure_uri_metadata, enable_search_site_specific_api, enable_search_site_specific_api_metadata, enable_sender_insights_and_recommendations_setting_metadata, enable_sending_tags_font_settings, enable_sending_tags_font_settings_metadata, enable_send_to_agent, enable_send_to_agent_metadata, enable_send_to_intermediary, enable_send_to_intermediary_metadata, enable_send_to_manage, enable_send_to_manage_metadata, enable_sequential_signing_api, enable_sequential_signing_api_metadata, enable_sequential_signing_ui, enable_sequential_signing_ui_metadata, enable_signer_attachments, enable_signer_attachments_metadata, enable_signing_ai_features_plan, enable_signing_ai_features_plan_metadata, enable_signing_extension_comments, enable_signing_extension_comments_metadata, enable_signing_extension_conversations, enable_signing_extension_conversations_metadata, enable_signing_group_continue_page_setting, enable_signing_group_continue_page_setting_metadata, enable_signing_order_settings_for_account, enable_signing_order_settings_for_account_metadata, enable_sign_on_paper, enable_sign_on_paper_metadata, enable_sign_on_paper_override, enable_sign_on_paper_override_metadata, enable_sign_with_notary, enable_sign_with_notary_metadata, enable_smart_contracts, enable_smart_contracts_metadata, enable_sms_authentication, enable_sms_authentication_metadata, enable_sms_delivery_additional_notification, enable_sms_delivery_additional_notification_metadata, enable_sms_delivery_primary, enable_social_id_login, enable_social_id_login_metadata, enable_strike_through, enable_strike_through_metadata, enable_tickets, enable_tickets_meta_data, enable_transaction_point, enable_transaction_point_metadata, enable_unified_repository, enable_unified_repository_metadata, enable_vaulting, enable_vaulting_metadata, enable_web_forms_runtime_ap_is, enable_web_forms_runtime_ap_is_metadata, enable_web_forms_separate_user_permissions, enable_web_forms_separate_user_permissions_metadata, enable_witnessing, enable_witnessing_metadata, enable_workday_financials_extension, enable_workday_financials_extension_meta_data, enable_workday_hr_app, enable_workday_hr_app_metadata, enforce_template_name_uniqueness, enforce_template_name_uniqueness_metadata, enforce_tls_emails, enforce_tls_emails_metadata, envelope_integration_allowed, envelope_integration_allowed_metadata, envelope_integration_enabled, envelope_integration_enabled_metadata, envelope_limits_total_document_size_allowed_in_mb, envelope_limits_total_document_size_allowed_in_mb_enabled, envelope_limits_total_document_size_allowed_in_mb_enabled_metadata, envelope_limits_total_document_size_allowed_in_mb_metadata, envelope_search_mode, envelope_search_mode_metadata, envelope_stamping_default_value, envelope_stamping_default_value_metadata, exit_prompt, exit_prompt_metadata, express_send, express_send_allow_tabs, express_send_allow_tabs_metadata, express_send_metadata, external_document_sources, external_signature_pad_type, external_signature_pad_type_metadata, fax_out_enabled, fax_out_enabled_metadata, finish_reminder, finish_reminder_metadata, forbid_adding_user_stamps, forbid_adding_user_stamps_metadata, guided_forms_html_allowed, guided_forms_html_allowed_metadata, guided_forms_html_conversion_policy, guided_forms_html_conversion_policy_metadata, has_recipient_connect_claimed_domain, hide_account_address_in_co_c, hide_account_address_in_co_c_metadata, hide_pricing, hide_pricing_metadata, id_check_configurations, id_check_expire, id_check_expire_days, id_check_expire_days_metadata, id_check_expire_metadata, id_check_expire_minutes, id_check_expire_minutes_metadata, id_check_required, id_check_required_metadata, identity_verification, identity_verification_metadata, idfx_kba_authentication_override, idfx_kba_authentication_override_metadata, idfx_phone_authentication_override, idfx_phone_authentication_override_metadata, ignore_error_if_anchor_tab_not_found, ignore_error_if_anchor_tab_not_found_metadata_enabled, in_person_id_check_question, in_person_id_check_question_metadata, in_person_signing_enabled, in_person_signing_enabled_metadata, in_session_enabled, in_session_enabled_metadata, in_session_suppress_emails, in_session_suppress_emails_metadata, is_connect_document_fields_enabled, isv_embed, isv_embed_meta_data, isv_oem_embed, isv_oem_embed_meta_data, linked_external_primary_accounts, maestro_plan_levels, maestro_plan_levels_metadata, maximum_signing_groups, maximum_signing_groups_metadata, maximum_users_per_signing_group, maximum_users_per_signing_group_metadata, max_number_of_custom_stamps, merge_mixed_mode_results, merge_mixed_mode_results_metadata, mobile_session_timeout, mobile_session_timeout_metadata, number_of_active_custom_stamps, opt_in_mobile_signing_v02, opt_in_mobile_signing_v02_metadata, opt_in_universal_signatures, opt_out_auto_nav_text_and_tab_color_updates, opt_out_auto_nav_text_and_tab_color_updates_metadata, opt_out_new_platform_seal, opt_out_new_platform_seal_platform_metadata, original_account_site, participant_copy_opt_out, participant_copy_opt_out_metadata, pdf_max_chunked_upload_part_size, pdf_max_chunked_upload_part_size_metadata, pdf_max_chunked_upload_total_size, pdf_max_chunked_upload_total_size_metadata, pdf_max_individual_upload_size, pdf_max_individual_upload_size_metadata, phone_auth_recipient_may_provide_phone_number, phone_auth_recipient_may_provide_phone_number_metadata, pki_sign_downloaded_pdf_docs, pki_sign_downloaded_pdf_docs_metadata, read_only_mode, read_only_mode_metadata, recipients_can_sign_offline, recipients_can_sign_offline_metadata, recipient_signing_auto_navigation_control, recipient_signing_auto_navigation_control_metadata, recycle_bin_envelope_retention, recycle_bin_envelope_retention_metadata, require21_cf_rpt11_compliance, require21_cf_rpt11_compliance_metadata, require_decline_reason, require_decline_reason_metadata, require_external_user_management, require_external_user_management_metadata, require_signer_certificate_type, require_signer_certificate_type_metadata, rsa_verid_account_name, rsa_verid_password, rsa_verid_ruleset, rsa_verid_user_id, self_signed_recipient_email_document, self_signed_recipient_email_document_metadata, self_signed_recipient_email_document_user_override, self_signed_recipient_email_document_user_override_metadata, sender_can_sign_in_each_location, sender_can_sign_in_each_location_metadata, sender_must_authenticate_signing, sender_must_authenticate_signing_metadata, sending_tags_font_color, sending_tags_font_color_metadata, sending_tags_font_name, sending_tags_font_name_metadata, sending_tags_font_size, sending_tags_font_size_metadata, send_lockout_recipient_notification, send_lockout_recipient_notification_metadata, send_to_certified_delivery_enabled, send_to_certified_delivery_enabled_metadata, session_timeout, session_timeout_metadata, set_recip_email_lang, set_recip_email_lang_metadata, set_recip_sign_lang, set_recip_sign_lang_metadata, shared_template_folders, shared_template_folders_metadata, show_complete_dialog_in_embedded_session, show_complete_dialog_in_embedded_session_metadata, show_conditional_routing_on_send, show_conditional_routing_on_send_metadata, show_initial_conditional_fields, show_initial_conditional_fields_metadata, show_localized_watermarks, show_localized_watermarks_metadata, show_masked_fields_when_downloading_document_as_sender, show_masked_fields_when_downloading_document_as_sender_metadata, show_tutorials, show_tutorials_metadata, signature_providers, signature_providers_metadata, sign_date_format, sign_date_format_metadata, sign_date_time_account_language_override, sign_date_time_account_language_override_metadata, sign_date_time_account_timezone_override, sign_date_time_account_timezone_override_metadata, signer_attach_certificate_to_envelope_pdf, signer_attach_certificate_to_envelope_pdf_metadata, signer_attach_concat, signer_attach_concat_metadata, signer_can_create_account, signer_can_create_account_metadata, signer_can_sign_on_mobile, signer_can_sign_on_mobile_metadata, signer_in_session_use_envelope_complete_email, signer_in_session_use_envelope_complete_email_metadata, signer_login_requirements, signer_login_requirements_metadata, signer_must_have_account, signer_must_have_account_metadata, signer_must_login_to_sign, signer_must_login_to_sign_metadata, signer_show_secure_field_initial_values, signer_show_secure_field_initial_values_metadata, signing_session_timeout, signing_session_timeout_metadata, signing_ui_version, signing_ui_version_metadata, sign_time_format, sign_time_format_metadata, sign_time_show_am_pm, sign_time_show_am_pm_metadata, simplified_sending_enabled, simplified_sending_enabled_metadata, single_sign_on_enabled, single_sign_on_enabled_metadata, skip_auth_completed_envelopes, skip_auth_completed_envelopes_metadata, social_id_recip_auth, social_id_recip_auth_metadata, specify_document_visibility, specify_document_visibility_metadata, start_in_advanced_correct, start_in_advanced_correct_metadata, supplemental_documents_must_accept, supplemental_documents_must_accept_metadata, supplemental_documents_must_read, supplemental_documents_must_read_metadata, supplemental_documents_must_view, supplemental_documents_must_view_metadata, suppress_certificate_enforcement, suppress_certificate_enforcement_metadata, tab_account_settings, timezone_offset_api, timezone_offset_api_metadata, timezone_offset_ui, timezone_offset_ui_metadata, universal_signature_opt_in, universal_signature_skip_platform_signature, universal_signature_skip_platform_signature_metadata, use_account_level_email, use_account_level_email_metadata, use_consumer_disclosure, use_consumer_disclosure_metadata, use_consumer_disclosure_within_account, use_consumer_disclosure_within_account_metadata, use_derived_keys, use_derived_keys_metadata, use_docu_sign_express_signer_certificate, use_docu_sign_express_signer_certificate_metadata, use_envelope_search_mixed_mode, use_envelope_search_mixed_mode_metadata, use_multi_app_groups_data, use_multi_app_groups_data_metadata, use_new_blob_for_pdf, use_new_blob_for_pdf_metadata, use_new_envelope_search, use_new_envelope_search_metadata, use_new_envelope_search_only_when_searching_after_date, use_new_envelope_search_only_when_searching_after_date_metadata, use_new_envelope_search_only_with_search_term, use_new_envelope_search_only_with_search_term_metadata, use_safe_signer_certificates, use_safe_signer_certificates_metadata, uses_api, uses_api_metadata, use_signature_provider_platform, use_signature_provider_platform_metadata, use_smart_contracts_v1, validations_allowed, validations_allowed_metadata, validations_brand, validations_brand_metadata, validations_cadence, validations_cadence_metadata, validations_enabled, validations_enabled_metadata, validations_report, validations_report_metadata, water_mark_enabled, water_mark_enabled_metadata, write_reminder_to_envelope_history, write_reminder_to_envelope_history_metadata, wurfl_min_allowable_screen_size, wurfl_min_allowable_screen_size_metadata].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/connect_custom_configuration.rb b/lib/docusign_esign/models/connect_custom_configuration.rb index 51e396ff..929fc1d6 100644 --- a/lib/docusign_esign/models/connect_custom_configuration.rb +++ b/lib/docusign_esign/models/connect_custom_configuration.rb @@ -122,6 +122,9 @@ class ConnectCustomConfiguration # attr_accessor :salesforce_call_back_url + # + attr_accessor :salesforce_code_verifier + # attr_accessor :salesforce_documents_as_content_files @@ -191,6 +194,7 @@ def self.attribute_map :'salesforce_api_version' => :'salesforceApiVersion', :'salesforce_authcode' => :'salesforceAuthcode', :'salesforce_call_back_url' => :'salesforceCallBackUrl', + :'salesforce_code_verifier' => :'salesforceCodeVerifier', :'salesforce_documents_as_content_files' => :'salesforceDocumentsAsContentFiles', :'sender_override' => :'senderOverride', :'sender_selectable_items' => :'senderSelectableItems', @@ -243,6 +247,7 @@ def self.swagger_types :'salesforce_api_version' => :'String', :'salesforce_authcode' => :'String', :'salesforce_call_back_url' => :'String', + :'salesforce_code_verifier' => :'String', :'salesforce_documents_as_content_files' => :'String', :'sender_override' => :'String', :'sender_selectable_items' => :'Array', @@ -416,6 +421,10 @@ def initialize(attributes = {}) self.salesforce_call_back_url = attributes[:'salesforceCallBackUrl'] end + if attributes.has_key?(:'salesforceCodeVerifier') + self.salesforce_code_verifier = attributes[:'salesforceCodeVerifier'] + end + if attributes.has_key?(:'salesforceDocumentsAsContentFiles') self.salesforce_documents_as_content_files = attributes[:'salesforceDocumentsAsContentFiles'] end @@ -517,6 +526,7 @@ def ==(o) salesforce_api_version == o.salesforce_api_version && salesforce_authcode == o.salesforce_authcode && salesforce_call_back_url == o.salesforce_call_back_url && + salesforce_code_verifier == o.salesforce_code_verifier && salesforce_documents_as_content_files == o.salesforce_documents_as_content_files && sender_override == o.sender_override && sender_selectable_items == o.sender_selectable_items && @@ -538,7 +548,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [allow_envelope_publish, allow_salesforce_publish, all_users, all_users_except, configuration_type, connect_id, delivery_mode, disabled_by, enable_log, enable_o_auth_per_configuration, envelope_events, event_data, events, external_folder_id, external_folder_label, group_ids, include_certificate_of_completion, include_cert_soap_header, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_o_auth, include_sender_accountas_custom_field, include_time_zone_information, integrator_managed, name, o_auth_configuration, password, pause_publish, recipient_events, require_mutual_tls, requires_acknowledgement, salesforce_api_version, salesforce_authcode, salesforce_call_back_url, salesforce_documents_as_content_files, sender_override, sender_selectable_items, sf_objects, sign_message_with_x509_certificate, soap_namespace, url_to_publish_to, user_ids, user_name, use_soap_interface].hash + [allow_envelope_publish, allow_salesforce_publish, all_users, all_users_except, configuration_type, connect_id, delivery_mode, disabled_by, enable_log, enable_o_auth_per_configuration, envelope_events, event_data, events, external_folder_id, external_folder_label, group_ids, include_certificate_of_completion, include_cert_soap_header, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_o_auth, include_sender_accountas_custom_field, include_time_zone_information, integrator_managed, name, o_auth_configuration, password, pause_publish, recipient_events, require_mutual_tls, requires_acknowledgement, salesforce_api_version, salesforce_authcode, salesforce_call_back_url, salesforce_code_verifier, salesforce_documents_as_content_files, sender_override, sender_selectable_items, sf_objects, sign_message_with_x509_certificate, soap_namespace, url_to_publish_to, user_ids, user_name, use_soap_interface].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/doc_gen_conditional_operation_base.rb b/lib/docusign_esign/models/doc_gen_conditional_operation_base.rb new file mode 100644 index 00000000..4fbab2b4 --- /dev/null +++ b/lib/docusign_esign/models/doc_gen_conditional_operation_base.rb @@ -0,0 +1,174 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class DocGenConditionalOperationBase + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + } + end + + # Attribute type mapping. + def self.swagger_types + { + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/doc_gen_conditional_rule.rb b/lib/docusign_esign/models/doc_gen_conditional_rule.rb new file mode 100644 index 00000000..2160e011 --- /dev/null +++ b/lib/docusign_esign/models/doc_gen_conditional_rule.rb @@ -0,0 +1,218 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class DocGenConditionalRule + # + attr_accessor :conditional_operations + + # + attr_accessor :conditional_rule_effect + + # + attr_accessor :conditional_rule_effect_fields + + # + attr_accessor :conditional_rule_operator + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'conditional_operations' => :'conditionalOperations', + :'conditional_rule_effect' => :'conditionalRuleEffect', + :'conditional_rule_effect_fields' => :'conditionalRuleEffectFields', + :'conditional_rule_operator' => :'conditionalRuleOperator' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'conditional_operations' => :'Array', + :'conditional_rule_effect' => :'String', + :'conditional_rule_effect_fields' => :'Array', + :'conditional_rule_operator' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'conditionalOperations') + if (value = attributes[:'conditionalOperations']).is_a?(Array) + self.conditional_operations = value + end + end + + if attributes.has_key?(:'conditionalRuleEffect') + self.conditional_rule_effect = attributes[:'conditionalRuleEffect'] + end + + if attributes.has_key?(:'conditionalRuleEffectFields') + if (value = attributes[:'conditionalRuleEffectFields']).is_a?(Array) + self.conditional_rule_effect_fields = value + end + end + + if attributes.has_key?(:'conditionalRuleOperator') + self.conditional_rule_operator = attributes[:'conditionalRuleOperator'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + conditional_operations == o.conditional_operations && + conditional_rule_effect == o.conditional_rule_effect && + conditional_rule_effect_fields == o.conditional_rule_effect_fields && + conditional_rule_operator == o.conditional_rule_operator + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [conditional_operations, conditional_rule_effect, conditional_rule_effect_fields, conditional_rule_operator].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/doc_gen_form_field.rb b/lib/docusign_esign/models/doc_gen_form_field.rb index f0fed039..9bbcc039 100644 --- a/lib/docusign_esign/models/doc_gen_form_field.rb +++ b/lib/docusign_esign/models/doc_gen_form_field.rb @@ -13,6 +13,9 @@ module DocuSign_eSign class DocGenFormField + # + attr_accessor :children + # attr_accessor :connected_object_details @@ -70,6 +73,7 @@ class DocGenFormField # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'children' => :'children', :'connected_object_details' => :'connectedObjectDetails', :'default_value' => :'defaultValue', :'description' => :'description', @@ -94,6 +98,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'children' => :'Array', :'connected_object_details' => :'ConnectedObjectDetails', :'default_value' => :'String', :'description' => :'String', @@ -123,6 +128,12 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'children') + if (value = attributes[:'children']).is_a?(Array) + self.children = value + end + end + if attributes.has_key?(:'connectedObjectDetails') self.connected_object_details = attributes[:'connectedObjectDetails'] end @@ -218,6 +229,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + children == o.children && connected_object_details == o.connected_object_details && default_value == o.default_value && description == o.description && @@ -247,7 +259,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [connected_object_details, default_value, description, filter, format, fully_qualified_path, hidden, label, name, options, order, predefined_validation, read_only, required, row_values, type, validation, value].hash + [children, connected_object_details, default_value, description, filter, format, fully_qualified_path, hidden, label, name, options, order, predefined_validation, read_only, required, row_values, type, validation, value].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/doc_gen_form_fields.rb b/lib/docusign_esign/models/doc_gen_form_fields.rb index 0c2b04e8..97fdd971 100644 --- a/lib/docusign_esign/models/doc_gen_form_fields.rb +++ b/lib/docusign_esign/models/doc_gen_form_fields.rb @@ -13,6 +13,9 @@ module DocuSign_eSign class DocGenFormFields + # + attr_accessor :doc_gen_conditional_rules + # attr_accessor :doc_gen_document_status @@ -28,6 +31,7 @@ class DocGenFormFields # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'doc_gen_conditional_rules' => :'docGenConditionalRules', :'doc_gen_document_status' => :'docGenDocumentStatus', :'doc_gen_errors' => :'docGenErrors', :'doc_gen_form_field_list' => :'docGenFormFieldList', @@ -38,6 +42,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'doc_gen_conditional_rules' => :'Array', :'doc_gen_document_status' => :'String', :'doc_gen_errors' => :'Array', :'doc_gen_form_field_list' => :'Array', @@ -53,6 +58,12 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'docGenConditionalRules') + if (value = attributes[:'docGenConditionalRules']).is_a?(Array) + self.doc_gen_conditional_rules = value + end + end + if attributes.has_key?(:'docGenDocumentStatus') self.doc_gen_document_status = attributes[:'docGenDocumentStatus'] end @@ -92,6 +103,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + doc_gen_conditional_rules == o.doc_gen_conditional_rules && doc_gen_document_status == o.doc_gen_document_status && doc_gen_errors == o.doc_gen_errors && doc_gen_form_field_list == o.doc_gen_form_field_list && @@ -107,7 +119,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [doc_gen_document_status, doc_gen_errors, doc_gen_form_field_list, document_id].hash + [doc_gen_conditional_rules, doc_gen_document_status, doc_gen_errors, doc_gen_form_field_list, document_id].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/envelope.rb b/lib/docusign_esign/models/envelope.rb index 6f8e4f06..de67597b 100644 --- a/lib/docusign_esign/models/envelope.rb +++ b/lib/docusign_esign/models/envelope.rb @@ -112,6 +112,9 @@ class Envelope # attr_accessor :envelope_attachments + # + attr_accessor :envelope_classification + # attr_accessor :envelope_custom_metadata @@ -250,6 +253,9 @@ class Envelope # The reason the envelope or template was voided. attr_accessor :voided_reason + # + attr_accessor :watermark_language + # attr_accessor :workflow @@ -289,6 +295,7 @@ def self.attribute_map :'enable_wet_sign' => :'enableWetSign', :'enforce_signer_visibility' => :'enforceSignerVisibility', :'envelope_attachments' => :'envelopeAttachments', + :'envelope_classification' => :'envelopeClassification', :'envelope_custom_metadata' => :'envelopeCustomMetadata', :'envelope_documents' => :'envelopeDocuments', :'envelope_id' => :'envelopeId', @@ -335,6 +342,7 @@ def self.attribute_map :'u_sig_state' => :'uSigState', :'voided_date_time' => :'voidedDateTime', :'voided_reason' => :'voidedReason', + :'watermark_language' => :'watermarkLanguage', :'workflow' => :'workflow' } end @@ -375,6 +383,7 @@ def self.swagger_types :'enable_wet_sign' => :'String', :'enforce_signer_visibility' => :'String', :'envelope_attachments' => :'Array', + :'envelope_classification' => :'String', :'envelope_custom_metadata' => :'EnvelopeCustomMetadata', :'envelope_documents' => :'Array', :'envelope_id' => :'String', @@ -421,6 +430,7 @@ def self.swagger_types :'u_sig_state' => :'String', :'voided_date_time' => :'String', :'voided_reason' => :'String', + :'watermark_language' => :'String', :'workflow' => :'Workflow' } end @@ -567,6 +577,10 @@ def initialize(attributes = {}) end end + if attributes.has_key?(:'envelopeClassification') + self.envelope_classification = attributes[:'envelopeClassification'] + end + if attributes.has_key?(:'envelopeCustomMetadata') self.envelope_custom_metadata = attributes[:'envelopeCustomMetadata'] end @@ -755,6 +769,10 @@ def initialize(attributes = {}) self.voided_reason = attributes[:'voidedReason'] end + if attributes.has_key?(:'watermarkLanguage') + self.watermark_language = attributes[:'watermarkLanguage'] + end + if attributes.has_key?(:'workflow') self.workflow = attributes[:'workflow'] end @@ -811,6 +829,7 @@ def ==(o) enable_wet_sign == o.enable_wet_sign && enforce_signer_visibility == o.enforce_signer_visibility && envelope_attachments == o.envelope_attachments && + envelope_classification == o.envelope_classification && envelope_custom_metadata == o.envelope_custom_metadata && envelope_documents == o.envelope_documents && envelope_id == o.envelope_id && @@ -857,6 +876,7 @@ def ==(o) u_sig_state == o.u_sig_state && voided_date_time == o.voided_date_time && voided_reason == o.voided_reason && + watermark_language == o.watermark_language && workflow == o.workflow end @@ -869,7 +889,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, workflow].hash + [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_classification, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, watermark_language, workflow].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/envelope_archive_summary.rb b/lib/docusign_esign/models/envelope_archive_summary.rb new file mode 100644 index 00000000..2486d622 --- /dev/null +++ b/lib/docusign_esign/models/envelope_archive_summary.rb @@ -0,0 +1,254 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class EnvelopeArchiveSummary + # + attr_accessor :bulk_envelope_status + + # The envelope ID of the envelope status that failed to post. + attr_accessor :envelope_id + + # Array or errors. + attr_accessor :error_details + + # + attr_accessor :recipient_signing_uri + + # + attr_accessor :recipient_signing_uri_error + + # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. + attr_accessor :status + + # + attr_accessor :status_date_time + + # + attr_accessor :uri + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'bulk_envelope_status' => :'bulkEnvelopeStatus', + :'envelope_id' => :'envelopeId', + :'error_details' => :'errorDetails', + :'recipient_signing_uri' => :'recipientSigningUri', + :'recipient_signing_uri_error' => :'recipientSigningUriError', + :'status' => :'status', + :'status_date_time' => :'statusDateTime', + :'uri' => :'uri' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'bulk_envelope_status' => :'BulkEnvelopeStatus', + :'envelope_id' => :'String', + :'error_details' => :'ErrorDetails', + :'recipient_signing_uri' => :'String', + :'recipient_signing_uri_error' => :'String', + :'status' => :'String', + :'status_date_time' => :'String', + :'uri' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'bulkEnvelopeStatus') + self.bulk_envelope_status = attributes[:'bulkEnvelopeStatus'] + end + + if attributes.has_key?(:'envelopeId') + self.envelope_id = attributes[:'envelopeId'] + end + + if attributes.has_key?(:'errorDetails') + self.error_details = attributes[:'errorDetails'] + end + + if attributes.has_key?(:'recipientSigningUri') + self.recipient_signing_uri = attributes[:'recipientSigningUri'] + end + + if attributes.has_key?(:'recipientSigningUriError') + self.recipient_signing_uri_error = attributes[:'recipientSigningUriError'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'statusDateTime') + self.status_date_time = attributes[:'statusDateTime'] + end + + if attributes.has_key?(:'uri') + self.uri = attributes[:'uri'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + bulk_envelope_status == o.bulk_envelope_status && + envelope_id == o.envelope_id && + error_details == o.error_details && + recipient_signing_uri == o.recipient_signing_uri && + recipient_signing_uri_error == o.recipient_signing_uri_error && + status == o.status && + status_date_time == o.status_date_time && + uri == o.uri + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [bulk_envelope_status, envelope_id, error_details, recipient_signing_uri, recipient_signing_uri_error, status, status_date_time, uri].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/envelope_audit_event_response.rb b/lib/docusign_esign/models/envelope_audit_event_response.rb index a69eae72..8174cecd 100644 --- a/lib/docusign_esign/models/envelope_audit_event_response.rb +++ b/lib/docusign_esign/models/envelope_audit_event_response.rb @@ -16,17 +16,22 @@ class EnvelopeAuditEventResponse # Reserved: TBD attr_accessor :audit_events + # + attr_accessor :payment_events + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'audit_events' => :'auditEvents' + :'audit_events' => :'auditEvents', + :'payment_events' => :'paymentEvents' } end # Attribute type mapping. def self.swagger_types { - :'audit_events' => :'Array' + :'audit_events' => :'Array', + :'payment_events' => :'Array' } end @@ -43,6 +48,12 @@ def initialize(attributes = {}) self.audit_events = value end end + + if attributes.has_key?(:'paymentEvents') + if (value = attributes[:'paymentEvents']).is_a?(Array) + self.payment_events = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -63,7 +74,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - audit_events == o.audit_events + audit_events == o.audit_events && + payment_events == o.payment_events end # @see the `==` method @@ -75,7 +87,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [audit_events].hash + [audit_events, payment_events].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/envelope_definition.rb b/lib/docusign_esign/models/envelope_definition.rb index 1fa7ad4d..4635adb4 100644 --- a/lib/docusign_esign/models/envelope_definition.rb +++ b/lib/docusign_esign/models/envelope_definition.rb @@ -128,6 +128,9 @@ class EnvelopeDefinition # attr_accessor :envelope_attachments + # + attr_accessor :envelope_classification + # attr_accessor :envelope_custom_metadata @@ -284,6 +287,9 @@ class EnvelopeDefinition # The reason the envelope or template was voided. attr_accessor :voided_reason + # + attr_accessor :watermark_language + # Describes the workflow for this envelope. attr_accessor :workflow @@ -328,6 +334,7 @@ def self.attribute_map :'enable_wet_sign' => :'enableWetSign', :'enforce_signer_visibility' => :'enforceSignerVisibility', :'envelope_attachments' => :'envelopeAttachments', + :'envelope_classification' => :'envelopeClassification', :'envelope_custom_metadata' => :'envelopeCustomMetadata', :'envelope_documents' => :'envelopeDocuments', :'envelope_id' => :'envelopeId', @@ -380,6 +387,7 @@ def self.attribute_map :'u_sig_state' => :'uSigState', :'voided_date_time' => :'voidedDateTime', :'voided_reason' => :'voidedReason', + :'watermark_language' => :'watermarkLanguage', :'workflow' => :'workflow' } end @@ -425,6 +433,7 @@ def self.swagger_types :'enable_wet_sign' => :'String', :'enforce_signer_visibility' => :'String', :'envelope_attachments' => :'Array', + :'envelope_classification' => :'String', :'envelope_custom_metadata' => :'EnvelopeCustomMetadata', :'envelope_documents' => :'Array', :'envelope_id' => :'String', @@ -477,6 +486,7 @@ def self.swagger_types :'u_sig_state' => :'String', :'voided_date_time' => :'String', :'voided_reason' => :'String', + :'watermark_language' => :'String', :'workflow' => :'Workflow' } end @@ -649,6 +659,10 @@ def initialize(attributes = {}) end end + if attributes.has_key?(:'envelopeClassification') + self.envelope_classification = attributes[:'envelopeClassification'] + end + if attributes.has_key?(:'envelopeCustomMetadata') self.envelope_custom_metadata = attributes[:'envelopeCustomMetadata'] end @@ -865,6 +879,10 @@ def initialize(attributes = {}) self.voided_reason = attributes[:'voidedReason'] end + if attributes.has_key?(:'watermarkLanguage') + self.watermark_language = attributes[:'watermarkLanguage'] + end + if attributes.has_key?(:'workflow') self.workflow = attributes[:'workflow'] end @@ -926,6 +944,7 @@ def ==(o) enable_wet_sign == o.enable_wet_sign && enforce_signer_visibility == o.enforce_signer_visibility && envelope_attachments == o.envelope_attachments && + envelope_classification == o.envelope_classification && envelope_custom_metadata == o.envelope_custom_metadata && envelope_documents == o.envelope_documents && envelope_id == o.envelope_id && @@ -978,6 +997,7 @@ def ==(o) u_sig_state == o.u_sig_state && voided_date_time == o.voided_date_time && voided_reason == o.voided_reason && + watermark_language == o.watermark_language && workflow == o.workflow end @@ -990,7 +1010,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, recipient_view_request, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, workflow].hash + [access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_classification, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, recipient_view_request, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, watermark_language, workflow].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/envelope_gen_and_send.rb b/lib/docusign_esign/models/envelope_gen_and_send.rb new file mode 100644 index 00000000..9f0c93de --- /dev/null +++ b/lib/docusign_esign/models/envelope_gen_and_send.rb @@ -0,0 +1,1182 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class EnvelopeGenAndSend + # + attr_accessor :access_control_list_base64 + + # + attr_accessor :accessibility + + # + attr_accessor :allow_comments + + # When set to **true**, Document Markup is enabled for envelope. Account must have Document Markup enabled to use this + attr_accessor :allow_markup + + # When set to **true**, the recipient can redirect an envelope to a more appropriate recipient. + attr_accessor :allow_reassign + + # + attr_accessor :allow_recipient_recursion + + # + attr_accessor :allow_view_history + + # + attr_accessor :any_signer + + # + attr_accessor :archive_action + + # When set to **true**, the envelope is queued for processing and the value of the `status` property is set to 'Processing'. Additionally, get status calls return 'Processing' until completed. + attr_accessor :asynchronous + + # + attr_accessor :attachments + + # + attr_accessor :attachments_uri + + # Specifies the Authoritative copy feature. If set to true the Authoritative copy feature is enabled. + attr_accessor :authoritative_copy + + # + attr_accessor :authoritative_copy_default + + # + attr_accessor :auto_navigation + + # + attr_accessor :brand_id + + # + attr_accessor :brand_lock + + # + attr_accessor :burn_default_tab_data + + # Retrieves a URI for an endpoint that allows you to easily retrieve certificate information. + attr_accessor :certificate_uri + + # Specifies the date and time this item was completed. + attr_accessor :completed_date_time + + # + attr_accessor :composite_templates + + # + attr_accessor :copy_recipient_data + + # Indicates the date and time the item was created. + attr_accessor :created_date_time + + # An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. Each customField string can be a maximum of 100 characters. + attr_accessor :custom_fields + + # Contains a URI for an endpoint that you can use to retrieve the custom fields. + attr_accessor :custom_fields_uri + + # The date and time the recipient declined the document. + attr_accessor :declined_date_time + + # Specifies the data and time the item was deleted. + attr_accessor :deleted_date_time + + # Reserved: For DocuSign use only. + attr_accessor :delivered_date_time + + # + attr_accessor :disable_responsive_document + + # + attr_accessor :document_base64 + + # Complex element contains the details on the documents in the envelope. + attr_accessor :documents + + # + attr_accessor :documents_combined_uri + + # Contains a URI for an endpoint that you can use to retrieve the documents. + attr_accessor :documents_uri + + # + attr_accessor :email_blurb + + # + attr_accessor :email_settings + + # Specifies the subject of the email that is sent to all recipients. See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject. + attr_accessor :email_subject + + # When set to **true**, the signer is allowed to print the document and sign it on paper. + attr_accessor :enable_wet_sign + + # When set to **true**, documents with tabs can only be viewed by signers that have a tab on that document. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all the documents in an envelope, unless they are specifically excluded using this setting when an envelope is sent. Documents that do not have tabs are always visible to all recipients, unless they are specifically excluded using this setting when an envelope is sent. Your account must have Document Visibility enabled to use this. + attr_accessor :enforce_signer_visibility + + # + attr_accessor :envelope_attachments + + # + attr_accessor :envelope_classification + + # + attr_accessor :envelope_custom_metadata + + # + attr_accessor :envelope_documents + + # The envelope ID of the envelope status that failed to post. + attr_accessor :envelope_id + + # When set to **true**, Envelope ID Stamping is enabled. + attr_accessor :envelope_id_stamping + + # + attr_accessor :envelope_location + + # + attr_accessor :envelope_metadata + + # Contains a URI for an endpoint that you can use to retrieve the envelope or envelopes. + attr_accessor :envelope_uri + + # + attr_accessor :event_notification + + # + attr_accessor :event_notifications + + # + attr_accessor :expire_after + + # + attr_accessor :expire_date_time + + # + attr_accessor :expire_enabled + + # + attr_accessor :external_envelope_id + + # + attr_accessor :folders + + # + attr_accessor :generate_data_source + + # + attr_accessor :generate_properties + + # + attr_accessor :generate_schema_id + + # + attr_accessor :has_comments + + # + attr_accessor :has_form_data_changed + + # + attr_accessor :has_wav_file + + # + attr_accessor :holder + + # + attr_accessor :image_handling + + # + attr_accessor :initial_sent_date_time + + # When set to **true**, indicates that this module is enabled on the account. + attr_accessor :is21_cfr_part11 + + # + attr_accessor :is_dynamic_envelope + + # + attr_accessor :is_signature_provider_envelope + + # + attr_accessor :is_ticket_related_envelope + + # The date and time the item was last modified. + attr_accessor :last_modified_date_time + + # + attr_accessor :location + + # + attr_accessor :lock_information + + # When set to **true**, prevents senders from changing the contents of `emailBlurb` and `emailSubject` properties for the envelope. Additionally, this prevents users from making changes to the contents of `emailBlurb` and `emailSubject` properties when correcting envelopes. However, if the `messageLock` node is set to true**** and the `emailSubject` property is empty, senders and correctors are able to add a subject to the envelope. + attr_accessor :message_lock + + # + attr_accessor :notification + + # Contains a URI for an endpoint that you can use to retrieve the notifications. + attr_accessor :notification_uri + + # + attr_accessor :password + + # + attr_accessor :power_form + + # + attr_accessor :purge_completed_date + + # + attr_accessor :purge_request_date + + # + attr_accessor :purge_state + + # An array of powerform recipients. + attr_accessor :recipients + + # When set to **true**, prevents senders from changing, correcting, or deleting the recipient information for the envelope. + attr_accessor :recipients_lock + + # Contains a URI for an endpoint that you can use to retrieve the recipients. + attr_accessor :recipients_uri + + # + attr_accessor :recipient_view_request + + # + attr_accessor :save_documents_to_archive + + # + attr_accessor :sender + + # The date and time the envelope was sent. + attr_accessor :sent_date_time + + # + attr_accessor :signer_can_sign_on_mobile + + # Specifies the physical location where the signing takes place. It can have two enumeration values; InPerson and Online. The default value is Online. + attr_accessor :signing_location + + # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. + attr_accessor :status + + # The data and time the status changed. + attr_accessor :status_changed_date_time + + # The unique identifier of the template. If this is not provided, DocuSign will generate a value. + attr_accessor :template_id + + # + attr_accessor :template_roles + + # Contains a URI for an endpoint which you can use to retrieve the templates. + attr_accessor :templates_uri + + # Used to identify an envelope. The id is a sender-generated value and is valid in the DocuSign system for 7 days. It is recommended that a transaction ID is used for offline signing to ensure that an envelope is not sent multiple times. The `transactionId` property can be used determine an envelope's status (i.e. was it created or not) in cases where the internet connection was lost before the envelope status was returned. + attr_accessor :transaction_id + + # When set to **true**, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When set to **false**, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the `useDisclosure` property is not set, then the account's normal disclosure setting is used and the value of the `useDisclosure` property is not returned in responses when getting envelope information. + attr_accessor :use_disclosure + + # + attr_accessor :u_sig_state + + # The date and time the envelope or template was voided. + attr_accessor :voided_date_time + + # The reason the envelope or template was voided. + attr_accessor :voided_reason + + # + attr_accessor :watermark_language + + # + attr_accessor :workflow + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'access_control_list_base64' => :'accessControlListBase64', + :'accessibility' => :'accessibility', + :'allow_comments' => :'allowComments', + :'allow_markup' => :'allowMarkup', + :'allow_reassign' => :'allowReassign', + :'allow_recipient_recursion' => :'allowRecipientRecursion', + :'allow_view_history' => :'allowViewHistory', + :'any_signer' => :'anySigner', + :'archive_action' => :'archiveAction', + :'asynchronous' => :'asynchronous', + :'attachments' => :'attachments', + :'attachments_uri' => :'attachmentsUri', + :'authoritative_copy' => :'authoritativeCopy', + :'authoritative_copy_default' => :'authoritativeCopyDefault', + :'auto_navigation' => :'autoNavigation', + :'brand_id' => :'brandId', + :'brand_lock' => :'brandLock', + :'burn_default_tab_data' => :'burnDefaultTabData', + :'certificate_uri' => :'certificateUri', + :'completed_date_time' => :'completedDateTime', + :'composite_templates' => :'compositeTemplates', + :'copy_recipient_data' => :'copyRecipientData', + :'created_date_time' => :'createdDateTime', + :'custom_fields' => :'customFields', + :'custom_fields_uri' => :'customFieldsUri', + :'declined_date_time' => :'declinedDateTime', + :'deleted_date_time' => :'deletedDateTime', + :'delivered_date_time' => :'deliveredDateTime', + :'disable_responsive_document' => :'disableResponsiveDocument', + :'document_base64' => :'documentBase64', + :'documents' => :'documents', + :'documents_combined_uri' => :'documentsCombinedUri', + :'documents_uri' => :'documentsUri', + :'email_blurb' => :'emailBlurb', + :'email_settings' => :'emailSettings', + :'email_subject' => :'emailSubject', + :'enable_wet_sign' => :'enableWetSign', + :'enforce_signer_visibility' => :'enforceSignerVisibility', + :'envelope_attachments' => :'envelopeAttachments', + :'envelope_classification' => :'envelopeClassification', + :'envelope_custom_metadata' => :'envelopeCustomMetadata', + :'envelope_documents' => :'envelopeDocuments', + :'envelope_id' => :'envelopeId', + :'envelope_id_stamping' => :'envelopeIdStamping', + :'envelope_location' => :'envelopeLocation', + :'envelope_metadata' => :'envelopeMetadata', + :'envelope_uri' => :'envelopeUri', + :'event_notification' => :'eventNotification', + :'event_notifications' => :'eventNotifications', + :'expire_after' => :'expireAfter', + :'expire_date_time' => :'expireDateTime', + :'expire_enabled' => :'expireEnabled', + :'external_envelope_id' => :'externalEnvelopeId', + :'folders' => :'folders', + :'generate_data_source' => :'generateDataSource', + :'generate_properties' => :'generateProperties', + :'generate_schema_id' => :'generateSchemaId', + :'has_comments' => :'hasComments', + :'has_form_data_changed' => :'hasFormDataChanged', + :'has_wav_file' => :'hasWavFile', + :'holder' => :'holder', + :'image_handling' => :'imageHandling', + :'initial_sent_date_time' => :'initialSentDateTime', + :'is21_cfr_part11' => :'is21CFRPart11', + :'is_dynamic_envelope' => :'isDynamicEnvelope', + :'is_signature_provider_envelope' => :'isSignatureProviderEnvelope', + :'is_ticket_related_envelope' => :'isTicketRelatedEnvelope', + :'last_modified_date_time' => :'lastModifiedDateTime', + :'location' => :'location', + :'lock_information' => :'lockInformation', + :'message_lock' => :'messageLock', + :'notification' => :'notification', + :'notification_uri' => :'notificationUri', + :'password' => :'password', + :'power_form' => :'powerForm', + :'purge_completed_date' => :'purgeCompletedDate', + :'purge_request_date' => :'purgeRequestDate', + :'purge_state' => :'purgeState', + :'recipients' => :'recipients', + :'recipients_lock' => :'recipientsLock', + :'recipients_uri' => :'recipientsUri', + :'recipient_view_request' => :'recipientViewRequest', + :'save_documents_to_archive' => :'saveDocumentsToArchive', + :'sender' => :'sender', + :'sent_date_time' => :'sentDateTime', + :'signer_can_sign_on_mobile' => :'signerCanSignOnMobile', + :'signing_location' => :'signingLocation', + :'status' => :'status', + :'status_changed_date_time' => :'statusChangedDateTime', + :'template_id' => :'templateId', + :'template_roles' => :'templateRoles', + :'templates_uri' => :'templatesUri', + :'transaction_id' => :'transactionId', + :'use_disclosure' => :'useDisclosure', + :'u_sig_state' => :'uSigState', + :'voided_date_time' => :'voidedDateTime', + :'voided_reason' => :'voidedReason', + :'watermark_language' => :'watermarkLanguage', + :'workflow' => :'workflow' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'access_control_list_base64' => :'String', + :'accessibility' => :'String', + :'allow_comments' => :'String', + :'allow_markup' => :'String', + :'allow_reassign' => :'String', + :'allow_recipient_recursion' => :'String', + :'allow_view_history' => :'String', + :'any_signer' => :'String', + :'archive_action' => :'String', + :'asynchronous' => :'String', + :'attachments' => :'Array', + :'attachments_uri' => :'String', + :'authoritative_copy' => :'String', + :'authoritative_copy_default' => :'String', + :'auto_navigation' => :'String', + :'brand_id' => :'String', + :'brand_lock' => :'String', + :'burn_default_tab_data' => :'String', + :'certificate_uri' => :'String', + :'completed_date_time' => :'String', + :'composite_templates' => :'Array', + :'copy_recipient_data' => :'String', + :'created_date_time' => :'String', + :'custom_fields' => :'CustomFields', + :'custom_fields_uri' => :'String', + :'declined_date_time' => :'String', + :'deleted_date_time' => :'String', + :'delivered_date_time' => :'String', + :'disable_responsive_document' => :'String', + :'document_base64' => :'String', + :'documents' => :'Array', + :'documents_combined_uri' => :'String', + :'documents_uri' => :'String', + :'email_blurb' => :'String', + :'email_settings' => :'EmailSettings', + :'email_subject' => :'String', + :'enable_wet_sign' => :'String', + :'enforce_signer_visibility' => :'String', + :'envelope_attachments' => :'Array', + :'envelope_classification' => :'String', + :'envelope_custom_metadata' => :'EnvelopeCustomMetadata', + :'envelope_documents' => :'Array', + :'envelope_id' => :'String', + :'envelope_id_stamping' => :'String', + :'envelope_location' => :'String', + :'envelope_metadata' => :'EnvelopeMetadata', + :'envelope_uri' => :'String', + :'event_notification' => :'EventNotification', + :'event_notifications' => :'Array', + :'expire_after' => :'String', + :'expire_date_time' => :'String', + :'expire_enabled' => :'String', + :'external_envelope_id' => :'String', + :'folders' => :'Array', + :'generate_data_source' => :'String', + :'generate_properties' => :'Array', + :'generate_schema_id' => :'String', + :'has_comments' => :'String', + :'has_form_data_changed' => :'String', + :'has_wav_file' => :'String', + :'holder' => :'String', + :'image_handling' => :'String', + :'initial_sent_date_time' => :'String', + :'is21_cfr_part11' => :'String', + :'is_dynamic_envelope' => :'String', + :'is_signature_provider_envelope' => :'String', + :'is_ticket_related_envelope' => :'String', + :'last_modified_date_time' => :'String', + :'location' => :'String', + :'lock_information' => :'LockInformation', + :'message_lock' => :'String', + :'notification' => :'Notification', + :'notification_uri' => :'String', + :'password' => :'String', + :'power_form' => :'PowerForm', + :'purge_completed_date' => :'String', + :'purge_request_date' => :'String', + :'purge_state' => :'String', + :'recipients' => :'Recipients', + :'recipients_lock' => :'String', + :'recipients_uri' => :'String', + :'recipient_view_request' => :'RecipientViewRequest', + :'save_documents_to_archive' => :'String', + :'sender' => :'UserInfo', + :'sent_date_time' => :'String', + :'signer_can_sign_on_mobile' => :'String', + :'signing_location' => :'String', + :'status' => :'String', + :'status_changed_date_time' => :'String', + :'template_id' => :'String', + :'template_roles' => :'Array', + :'templates_uri' => :'String', + :'transaction_id' => :'String', + :'use_disclosure' => :'String', + :'u_sig_state' => :'String', + :'voided_date_time' => :'String', + :'voided_reason' => :'String', + :'watermark_language' => :'String', + :'workflow' => :'Workflow' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'accessControlListBase64') + self.access_control_list_base64 = attributes[:'accessControlListBase64'] + end + + if attributes.has_key?(:'accessibility') + self.accessibility = attributes[:'accessibility'] + end + + if attributes.has_key?(:'allowComments') + self.allow_comments = attributes[:'allowComments'] + end + + if attributes.has_key?(:'allowMarkup') + self.allow_markup = attributes[:'allowMarkup'] + end + + if attributes.has_key?(:'allowReassign') + self.allow_reassign = attributes[:'allowReassign'] + end + + if attributes.has_key?(:'allowRecipientRecursion') + self.allow_recipient_recursion = attributes[:'allowRecipientRecursion'] + end + + if attributes.has_key?(:'allowViewHistory') + self.allow_view_history = attributes[:'allowViewHistory'] + end + + if attributes.has_key?(:'anySigner') + self.any_signer = attributes[:'anySigner'] + end + + if attributes.has_key?(:'archiveAction') + self.archive_action = attributes[:'archiveAction'] + end + + if attributes.has_key?(:'asynchronous') + self.asynchronous = attributes[:'asynchronous'] + end + + if attributes.has_key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end + end + + if attributes.has_key?(:'attachmentsUri') + self.attachments_uri = attributes[:'attachmentsUri'] + end + + if attributes.has_key?(:'authoritativeCopy') + self.authoritative_copy = attributes[:'authoritativeCopy'] + end + + if attributes.has_key?(:'authoritativeCopyDefault') + self.authoritative_copy_default = attributes[:'authoritativeCopyDefault'] + end + + if attributes.has_key?(:'autoNavigation') + self.auto_navigation = attributes[:'autoNavigation'] + end + + if attributes.has_key?(:'brandId') + self.brand_id = attributes[:'brandId'] + end + + if attributes.has_key?(:'brandLock') + self.brand_lock = attributes[:'brandLock'] + end + + if attributes.has_key?(:'burnDefaultTabData') + self.burn_default_tab_data = attributes[:'burnDefaultTabData'] + end + + if attributes.has_key?(:'certificateUri') + self.certificate_uri = attributes[:'certificateUri'] + end + + if attributes.has_key?(:'completedDateTime') + self.completed_date_time = attributes[:'completedDateTime'] + end + + if attributes.has_key?(:'compositeTemplates') + if (value = attributes[:'compositeTemplates']).is_a?(Array) + self.composite_templates = value + end + end + + if attributes.has_key?(:'copyRecipientData') + self.copy_recipient_data = attributes[:'copyRecipientData'] + end + + if attributes.has_key?(:'createdDateTime') + self.created_date_time = attributes[:'createdDateTime'] + end + + if attributes.has_key?(:'customFields') + self.custom_fields = attributes[:'customFields'] + end + + if attributes.has_key?(:'customFieldsUri') + self.custom_fields_uri = attributes[:'customFieldsUri'] + end + + if attributes.has_key?(:'declinedDateTime') + self.declined_date_time = attributes[:'declinedDateTime'] + end + + if attributes.has_key?(:'deletedDateTime') + self.deleted_date_time = attributes[:'deletedDateTime'] + end + + if attributes.has_key?(:'deliveredDateTime') + self.delivered_date_time = attributes[:'deliveredDateTime'] + end + + if attributes.has_key?(:'disableResponsiveDocument') + self.disable_responsive_document = attributes[:'disableResponsiveDocument'] + end + + if attributes.has_key?(:'documentBase64') + self.document_base64 = attributes[:'documentBase64'] + end + + if attributes.has_key?(:'documents') + if (value = attributes[:'documents']).is_a?(Array) + self.documents = value + end + end + + if attributes.has_key?(:'documentsCombinedUri') + self.documents_combined_uri = attributes[:'documentsCombinedUri'] + end + + if attributes.has_key?(:'documentsUri') + self.documents_uri = attributes[:'documentsUri'] + end + + if attributes.has_key?(:'emailBlurb') + self.email_blurb = attributes[:'emailBlurb'] + end + + if attributes.has_key?(:'emailSettings') + self.email_settings = attributes[:'emailSettings'] + end + + if attributes.has_key?(:'emailSubject') + self.email_subject = attributes[:'emailSubject'] + end + + if attributes.has_key?(:'enableWetSign') + self.enable_wet_sign = attributes[:'enableWetSign'] + end + + if attributes.has_key?(:'enforceSignerVisibility') + self.enforce_signer_visibility = attributes[:'enforceSignerVisibility'] + end + + if attributes.has_key?(:'envelopeAttachments') + if (value = attributes[:'envelopeAttachments']).is_a?(Array) + self.envelope_attachments = value + end + end + + if attributes.has_key?(:'envelopeClassification') + self.envelope_classification = attributes[:'envelopeClassification'] + end + + if attributes.has_key?(:'envelopeCustomMetadata') + self.envelope_custom_metadata = attributes[:'envelopeCustomMetadata'] + end + + if attributes.has_key?(:'envelopeDocuments') + if (value = attributes[:'envelopeDocuments']).is_a?(Array) + self.envelope_documents = value + end + end + + if attributes.has_key?(:'envelopeId') + self.envelope_id = attributes[:'envelopeId'] + end + + if attributes.has_key?(:'envelopeIdStamping') + self.envelope_id_stamping = attributes[:'envelopeIdStamping'] + end + + if attributes.has_key?(:'envelopeLocation') + self.envelope_location = attributes[:'envelopeLocation'] + end + + if attributes.has_key?(:'envelopeMetadata') + self.envelope_metadata = attributes[:'envelopeMetadata'] + end + + if attributes.has_key?(:'envelopeUri') + self.envelope_uri = attributes[:'envelopeUri'] + end + + if attributes.has_key?(:'eventNotification') + self.event_notification = attributes[:'eventNotification'] + end + + if attributes.has_key?(:'eventNotifications') + if (value = attributes[:'eventNotifications']).is_a?(Array) + self.event_notifications = value + end + end + + if attributes.has_key?(:'expireAfter') + self.expire_after = attributes[:'expireAfter'] + end + + if attributes.has_key?(:'expireDateTime') + self.expire_date_time = attributes[:'expireDateTime'] + end + + if attributes.has_key?(:'expireEnabled') + self.expire_enabled = attributes[:'expireEnabled'] + end + + if attributes.has_key?(:'externalEnvelopeId') + self.external_envelope_id = attributes[:'externalEnvelopeId'] + end + + if attributes.has_key?(:'folders') + if (value = attributes[:'folders']).is_a?(Array) + self.folders = value + end + end + + if attributes.has_key?(:'generateDataSource') + self.generate_data_source = attributes[:'generateDataSource'] + end + + if attributes.has_key?(:'generateProperties') + if (value = attributes[:'generateProperties']).is_a?(Array) + self.generate_properties = value + end + end + + if attributes.has_key?(:'generateSchemaId') + self.generate_schema_id = attributes[:'generateSchemaId'] + end + + if attributes.has_key?(:'hasComments') + self.has_comments = attributes[:'hasComments'] + end + + if attributes.has_key?(:'hasFormDataChanged') + self.has_form_data_changed = attributes[:'hasFormDataChanged'] + end + + if attributes.has_key?(:'hasWavFile') + self.has_wav_file = attributes[:'hasWavFile'] + end + + if attributes.has_key?(:'holder') + self.holder = attributes[:'holder'] + end + + if attributes.has_key?(:'imageHandling') + self.image_handling = attributes[:'imageHandling'] + end + + if attributes.has_key?(:'initialSentDateTime') + self.initial_sent_date_time = attributes[:'initialSentDateTime'] + end + + if attributes.has_key?(:'is21CFRPart11') + self.is21_cfr_part11 = attributes[:'is21CFRPart11'] + end + + if attributes.has_key?(:'isDynamicEnvelope') + self.is_dynamic_envelope = attributes[:'isDynamicEnvelope'] + end + + if attributes.has_key?(:'isSignatureProviderEnvelope') + self.is_signature_provider_envelope = attributes[:'isSignatureProviderEnvelope'] + end + + if attributes.has_key?(:'isTicketRelatedEnvelope') + self.is_ticket_related_envelope = attributes[:'isTicketRelatedEnvelope'] + end + + if attributes.has_key?(:'lastModifiedDateTime') + self.last_modified_date_time = attributes[:'lastModifiedDateTime'] + end + + if attributes.has_key?(:'location') + self.location = attributes[:'location'] + end + + if attributes.has_key?(:'lockInformation') + self.lock_information = attributes[:'lockInformation'] + end + + if attributes.has_key?(:'messageLock') + self.message_lock = attributes[:'messageLock'] + end + + if attributes.has_key?(:'notification') + self.notification = attributes[:'notification'] + end + + if attributes.has_key?(:'notificationUri') + self.notification_uri = attributes[:'notificationUri'] + end + + if attributes.has_key?(:'password') + self.password = attributes[:'password'] + end + + if attributes.has_key?(:'powerForm') + self.power_form = attributes[:'powerForm'] + end + + if attributes.has_key?(:'purgeCompletedDate') + self.purge_completed_date = attributes[:'purgeCompletedDate'] + end + + if attributes.has_key?(:'purgeRequestDate') + self.purge_request_date = attributes[:'purgeRequestDate'] + end + + if attributes.has_key?(:'purgeState') + self.purge_state = attributes[:'purgeState'] + end + + if attributes.has_key?(:'recipients') + self.recipients = attributes[:'recipients'] + end + + if attributes.has_key?(:'recipientsLock') + self.recipients_lock = attributes[:'recipientsLock'] + end + + if attributes.has_key?(:'recipientsUri') + self.recipients_uri = attributes[:'recipientsUri'] + end + + if attributes.has_key?(:'recipientViewRequest') + self.recipient_view_request = attributes[:'recipientViewRequest'] + end + + if attributes.has_key?(:'saveDocumentsToArchive') + self.save_documents_to_archive = attributes[:'saveDocumentsToArchive'] + end + + if attributes.has_key?(:'sender') + self.sender = attributes[:'sender'] + end + + if attributes.has_key?(:'sentDateTime') + self.sent_date_time = attributes[:'sentDateTime'] + end + + if attributes.has_key?(:'signerCanSignOnMobile') + self.signer_can_sign_on_mobile = attributes[:'signerCanSignOnMobile'] + end + + if attributes.has_key?(:'signingLocation') + self.signing_location = attributes[:'signingLocation'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'statusChangedDateTime') + self.status_changed_date_time = attributes[:'statusChangedDateTime'] + end + + if attributes.has_key?(:'templateId') + self.template_id = attributes[:'templateId'] + end + + if attributes.has_key?(:'templateRoles') + if (value = attributes[:'templateRoles']).is_a?(Array) + self.template_roles = value + end + end + + if attributes.has_key?(:'templatesUri') + self.templates_uri = attributes[:'templatesUri'] + end + + if attributes.has_key?(:'transactionId') + self.transaction_id = attributes[:'transactionId'] + end + + if attributes.has_key?(:'useDisclosure') + self.use_disclosure = attributes[:'useDisclosure'] + end + + if attributes.has_key?(:'uSigState') + self.u_sig_state = attributes[:'uSigState'] + end + + if attributes.has_key?(:'voidedDateTime') + self.voided_date_time = attributes[:'voidedDateTime'] + end + + if attributes.has_key?(:'voidedReason') + self.voided_reason = attributes[:'voidedReason'] + end + + if attributes.has_key?(:'watermarkLanguage') + self.watermark_language = attributes[:'watermarkLanguage'] + end + + if attributes.has_key?(:'workflow') + self.workflow = attributes[:'workflow'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + access_control_list_base64 == o.access_control_list_base64 && + accessibility == o.accessibility && + allow_comments == o.allow_comments && + allow_markup == o.allow_markup && + allow_reassign == o.allow_reassign && + allow_recipient_recursion == o.allow_recipient_recursion && + allow_view_history == o.allow_view_history && + any_signer == o.any_signer && + archive_action == o.archive_action && + asynchronous == o.asynchronous && + attachments == o.attachments && + attachments_uri == o.attachments_uri && + authoritative_copy == o.authoritative_copy && + authoritative_copy_default == o.authoritative_copy_default && + auto_navigation == o.auto_navigation && + brand_id == o.brand_id && + brand_lock == o.brand_lock && + burn_default_tab_data == o.burn_default_tab_data && + certificate_uri == o.certificate_uri && + completed_date_time == o.completed_date_time && + composite_templates == o.composite_templates && + copy_recipient_data == o.copy_recipient_data && + created_date_time == o.created_date_time && + custom_fields == o.custom_fields && + custom_fields_uri == o.custom_fields_uri && + declined_date_time == o.declined_date_time && + deleted_date_time == o.deleted_date_time && + delivered_date_time == o.delivered_date_time && + disable_responsive_document == o.disable_responsive_document && + document_base64 == o.document_base64 && + documents == o.documents && + documents_combined_uri == o.documents_combined_uri && + documents_uri == o.documents_uri && + email_blurb == o.email_blurb && + email_settings == o.email_settings && + email_subject == o.email_subject && + enable_wet_sign == o.enable_wet_sign && + enforce_signer_visibility == o.enforce_signer_visibility && + envelope_attachments == o.envelope_attachments && + envelope_classification == o.envelope_classification && + envelope_custom_metadata == o.envelope_custom_metadata && + envelope_documents == o.envelope_documents && + envelope_id == o.envelope_id && + envelope_id_stamping == o.envelope_id_stamping && + envelope_location == o.envelope_location && + envelope_metadata == o.envelope_metadata && + envelope_uri == o.envelope_uri && + event_notification == o.event_notification && + event_notifications == o.event_notifications && + expire_after == o.expire_after && + expire_date_time == o.expire_date_time && + expire_enabled == o.expire_enabled && + external_envelope_id == o.external_envelope_id && + folders == o.folders && + generate_data_source == o.generate_data_source && + generate_properties == o.generate_properties && + generate_schema_id == o.generate_schema_id && + has_comments == o.has_comments && + has_form_data_changed == o.has_form_data_changed && + has_wav_file == o.has_wav_file && + holder == o.holder && + image_handling == o.image_handling && + initial_sent_date_time == o.initial_sent_date_time && + is21_cfr_part11 == o.is21_cfr_part11 && + is_dynamic_envelope == o.is_dynamic_envelope && + is_signature_provider_envelope == o.is_signature_provider_envelope && + is_ticket_related_envelope == o.is_ticket_related_envelope && + last_modified_date_time == o.last_modified_date_time && + location == o.location && + lock_information == o.lock_information && + message_lock == o.message_lock && + notification == o.notification && + notification_uri == o.notification_uri && + password == o.password && + power_form == o.power_form && + purge_completed_date == o.purge_completed_date && + purge_request_date == o.purge_request_date && + purge_state == o.purge_state && + recipients == o.recipients && + recipients_lock == o.recipients_lock && + recipients_uri == o.recipients_uri && + recipient_view_request == o.recipient_view_request && + save_documents_to_archive == o.save_documents_to_archive && + sender == o.sender && + sent_date_time == o.sent_date_time && + signer_can_sign_on_mobile == o.signer_can_sign_on_mobile && + signing_location == o.signing_location && + status == o.status && + status_changed_date_time == o.status_changed_date_time && + template_id == o.template_id && + template_roles == o.template_roles && + templates_uri == o.templates_uri && + transaction_id == o.transaction_id && + use_disclosure == o.use_disclosure && + u_sig_state == o.u_sig_state && + voided_date_time == o.voided_date_time && + voided_reason == o.voided_reason && + watermark_language == o.watermark_language && + workflow == o.workflow + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, archive_action, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_classification, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, generate_data_source, generate_properties, generate_schema_id, has_comments, has_form_data_changed, has_wav_file, holder, image_handling, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, recipient_view_request, save_documents_to_archive, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, watermark_language, workflow].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/envelope_gen_and_send_properties.rb b/lib/docusign_esign/models/envelope_gen_and_send_properties.rb new file mode 100644 index 00000000..e106c505 --- /dev/null +++ b/lib/docusign_esign/models/envelope_gen_and_send_properties.rb @@ -0,0 +1,570 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class EnvelopeGenAndSendProperties + # + attr_accessor :apply_anchor_tabs + + # + attr_accessor :archive_document_type + + # + attr_accessor :assign_tabs_to_recipient_id + + # Specifies the Authoritative copy feature. If set to true the Authoritative copy feature is enabled. + attr_accessor :authoritative_copy + + # + attr_accessor :base64_data_json + + # + attr_accessor :base64_generate_template_document + + # + attr_accessor :data_json + + # + attr_accessor :display + + # + attr_accessor :doc_gen_document_status + + # + attr_accessor :doc_gen_form_fields + + # + attr_accessor :document_base64 + + # + attr_accessor :document_fields + + # Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. + attr_accessor :document_id + + # + attr_accessor :document_name + + # + attr_accessor :document_sequence + + # + attr_accessor :document_template_id + + # + attr_accessor :encrypted_with_key_manager + + # + attr_accessor :file_extension + + # + attr_accessor :file_format_hint + + # + attr_accessor :generate_document_template_kind + + # + attr_accessor :generate_document_template_source + + # + attr_accessor :generate_template_document_id + + # + attr_accessor :html_definition + + # + attr_accessor :include_in_download + + # + attr_accessor :is_doc_gen_document + + # + attr_accessor :match_boxes + + # + attr_accessor :name + + # + attr_accessor :order + + # + attr_accessor :pages + + # + attr_accessor :password + + # + attr_accessor :pdf_form_field_option + + # + attr_accessor :remote_url + + # + attr_accessor :signer_must_acknowledge + + # + attr_accessor :signer_must_acknowledge_use_account_default + + # + attr_accessor :tabs + + # When set to **true**, the sender cannot change any attributes of the recipient. Used only when working with template recipients. + attr_accessor :template_locked + + # When set to **true**, the sender may not remove the recipient. Used only when working with template recipients. + attr_accessor :template_required + + # + attr_accessor :transform_pdf_fields + + # + attr_accessor :uri + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'apply_anchor_tabs' => :'applyAnchorTabs', + :'archive_document_type' => :'archiveDocumentType', + :'assign_tabs_to_recipient_id' => :'assignTabsToRecipientId', + :'authoritative_copy' => :'authoritativeCopy', + :'base64_data_json' => :'base64DataJson', + :'base64_generate_template_document' => :'base64GenerateTemplateDocument', + :'data_json' => :'dataJson', + :'display' => :'display', + :'doc_gen_document_status' => :'docGenDocumentStatus', + :'doc_gen_form_fields' => :'docGenFormFields', + :'document_base64' => :'documentBase64', + :'document_fields' => :'documentFields', + :'document_id' => :'documentId', + :'document_name' => :'documentName', + :'document_sequence' => :'documentSequence', + :'document_template_id' => :'documentTemplateId', + :'encrypted_with_key_manager' => :'encryptedWithKeyManager', + :'file_extension' => :'fileExtension', + :'file_format_hint' => :'fileFormatHint', + :'generate_document_template_kind' => :'generateDocumentTemplateKind', + :'generate_document_template_source' => :'generateDocumentTemplateSource', + :'generate_template_document_id' => :'generateTemplateDocumentId', + :'html_definition' => :'htmlDefinition', + :'include_in_download' => :'includeInDownload', + :'is_doc_gen_document' => :'isDocGenDocument', + :'match_boxes' => :'matchBoxes', + :'name' => :'name', + :'order' => :'order', + :'pages' => :'pages', + :'password' => :'password', + :'pdf_form_field_option' => :'pdfFormFieldOption', + :'remote_url' => :'remoteUrl', + :'signer_must_acknowledge' => :'signerMustAcknowledge', + :'signer_must_acknowledge_use_account_default' => :'signerMustAcknowledgeUseAccountDefault', + :'tabs' => :'tabs', + :'template_locked' => :'templateLocked', + :'template_required' => :'templateRequired', + :'transform_pdf_fields' => :'transformPdfFields', + :'uri' => :'uri' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'apply_anchor_tabs' => :'String', + :'archive_document_type' => :'String', + :'assign_tabs_to_recipient_id' => :'String', + :'authoritative_copy' => :'String', + :'base64_data_json' => :'String', + :'base64_generate_template_document' => :'String', + :'data_json' => :'String', + :'display' => :'String', + :'doc_gen_document_status' => :'String', + :'doc_gen_form_fields' => :'Array', + :'document_base64' => :'String', + :'document_fields' => :'Array', + :'document_id' => :'String', + :'document_name' => :'String', + :'document_sequence' => :'String', + :'document_template_id' => :'String', + :'encrypted_with_key_manager' => :'String', + :'file_extension' => :'String', + :'file_format_hint' => :'String', + :'generate_document_template_kind' => :'String', + :'generate_document_template_source' => :'String', + :'generate_template_document_id' => :'String', + :'html_definition' => :'DocumentHtmlDefinition', + :'include_in_download' => :'String', + :'is_doc_gen_document' => :'String', + :'match_boxes' => :'Array', + :'name' => :'String', + :'order' => :'String', + :'pages' => :'String', + :'password' => :'String', + :'pdf_form_field_option' => :'String', + :'remote_url' => :'String', + :'signer_must_acknowledge' => :'String', + :'signer_must_acknowledge_use_account_default' => :'BOOLEAN', + :'tabs' => :'Tabs', + :'template_locked' => :'String', + :'template_required' => :'String', + :'transform_pdf_fields' => :'String', + :'uri' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'applyAnchorTabs') + self.apply_anchor_tabs = attributes[:'applyAnchorTabs'] + end + + if attributes.has_key?(:'archiveDocumentType') + self.archive_document_type = attributes[:'archiveDocumentType'] + end + + if attributes.has_key?(:'assignTabsToRecipientId') + self.assign_tabs_to_recipient_id = attributes[:'assignTabsToRecipientId'] + end + + if attributes.has_key?(:'authoritativeCopy') + self.authoritative_copy = attributes[:'authoritativeCopy'] + end + + if attributes.has_key?(:'base64DataJson') + self.base64_data_json = attributes[:'base64DataJson'] + end + + if attributes.has_key?(:'base64GenerateTemplateDocument') + self.base64_generate_template_document = attributes[:'base64GenerateTemplateDocument'] + end + + if attributes.has_key?(:'dataJson') + self.data_json = attributes[:'dataJson'] + end + + if attributes.has_key?(:'display') + self.display = attributes[:'display'] + end + + if attributes.has_key?(:'docGenDocumentStatus') + self.doc_gen_document_status = attributes[:'docGenDocumentStatus'] + end + + if attributes.has_key?(:'docGenFormFields') + if (value = attributes[:'docGenFormFields']).is_a?(Array) + self.doc_gen_form_fields = value + end + end + + if attributes.has_key?(:'documentBase64') + self.document_base64 = attributes[:'documentBase64'] + end + + if attributes.has_key?(:'documentFields') + if (value = attributes[:'documentFields']).is_a?(Array) + self.document_fields = value + end + end + + if attributes.has_key?(:'documentId') + self.document_id = attributes[:'documentId'] + end + + if attributes.has_key?(:'documentName') + self.document_name = attributes[:'documentName'] + end + + if attributes.has_key?(:'documentSequence') + self.document_sequence = attributes[:'documentSequence'] + end + + if attributes.has_key?(:'documentTemplateId') + self.document_template_id = attributes[:'documentTemplateId'] + end + + if attributes.has_key?(:'encryptedWithKeyManager') + self.encrypted_with_key_manager = attributes[:'encryptedWithKeyManager'] + end + + if attributes.has_key?(:'fileExtension') + self.file_extension = attributes[:'fileExtension'] + end + + if attributes.has_key?(:'fileFormatHint') + self.file_format_hint = attributes[:'fileFormatHint'] + end + + if attributes.has_key?(:'generateDocumentTemplateKind') + self.generate_document_template_kind = attributes[:'generateDocumentTemplateKind'] + end + + if attributes.has_key?(:'generateDocumentTemplateSource') + self.generate_document_template_source = attributes[:'generateDocumentTemplateSource'] + end + + if attributes.has_key?(:'generateTemplateDocumentId') + self.generate_template_document_id = attributes[:'generateTemplateDocumentId'] + end + + if attributes.has_key?(:'htmlDefinition') + self.html_definition = attributes[:'htmlDefinition'] + end + + if attributes.has_key?(:'includeInDownload') + self.include_in_download = attributes[:'includeInDownload'] + end + + if attributes.has_key?(:'isDocGenDocument') + self.is_doc_gen_document = attributes[:'isDocGenDocument'] + end + + if attributes.has_key?(:'matchBoxes') + if (value = attributes[:'matchBoxes']).is_a?(Array) + self.match_boxes = value + end + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'order') + self.order = attributes[:'order'] + end + + if attributes.has_key?(:'pages') + self.pages = attributes[:'pages'] + end + + if attributes.has_key?(:'password') + self.password = attributes[:'password'] + end + + if attributes.has_key?(:'pdfFormFieldOption') + self.pdf_form_field_option = attributes[:'pdfFormFieldOption'] + end + + if attributes.has_key?(:'remoteUrl') + self.remote_url = attributes[:'remoteUrl'] + end + + if attributes.has_key?(:'signerMustAcknowledge') + self.signer_must_acknowledge = attributes[:'signerMustAcknowledge'] + end + + if attributes.has_key?(:'signerMustAcknowledgeUseAccountDefault') + self.signer_must_acknowledge_use_account_default = attributes[:'signerMustAcknowledgeUseAccountDefault'] + end + + if attributes.has_key?(:'tabs') + self.tabs = attributes[:'tabs'] + end + + if attributes.has_key?(:'templateLocked') + self.template_locked = attributes[:'templateLocked'] + end + + if attributes.has_key?(:'templateRequired') + self.template_required = attributes[:'templateRequired'] + end + + if attributes.has_key?(:'transformPdfFields') + self.transform_pdf_fields = attributes[:'transformPdfFields'] + end + + if attributes.has_key?(:'uri') + self.uri = attributes[:'uri'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + apply_anchor_tabs == o.apply_anchor_tabs && + archive_document_type == o.archive_document_type && + assign_tabs_to_recipient_id == o.assign_tabs_to_recipient_id && + authoritative_copy == o.authoritative_copy && + base64_data_json == o.base64_data_json && + base64_generate_template_document == o.base64_generate_template_document && + data_json == o.data_json && + display == o.display && + doc_gen_document_status == o.doc_gen_document_status && + doc_gen_form_fields == o.doc_gen_form_fields && + document_base64 == o.document_base64 && + document_fields == o.document_fields && + document_id == o.document_id && + document_name == o.document_name && + document_sequence == o.document_sequence && + document_template_id == o.document_template_id && + encrypted_with_key_manager == o.encrypted_with_key_manager && + file_extension == o.file_extension && + file_format_hint == o.file_format_hint && + generate_document_template_kind == o.generate_document_template_kind && + generate_document_template_source == o.generate_document_template_source && + generate_template_document_id == o.generate_template_document_id && + html_definition == o.html_definition && + include_in_download == o.include_in_download && + is_doc_gen_document == o.is_doc_gen_document && + match_boxes == o.match_boxes && + name == o.name && + order == o.order && + pages == o.pages && + password == o.password && + pdf_form_field_option == o.pdf_form_field_option && + remote_url == o.remote_url && + signer_must_acknowledge == o.signer_must_acknowledge && + signer_must_acknowledge_use_account_default == o.signer_must_acknowledge_use_account_default && + tabs == o.tabs && + template_locked == o.template_locked && + template_required == o.template_required && + transform_pdf_fields == o.transform_pdf_fields && + uri == o.uri + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [apply_anchor_tabs, archive_document_type, assign_tabs_to_recipient_id, authoritative_copy, base64_data_json, base64_generate_template_document, data_json, display, doc_gen_document_status, doc_gen_form_fields, document_base64, document_fields, document_id, document_name, document_sequence, document_template_id, encrypted_with_key_manager, file_extension, file_format_hint, generate_document_template_kind, generate_document_template_source, generate_template_document_id, html_definition, include_in_download, is_doc_gen_document, match_boxes, name, order, pages, password, pdf_form_field_option, remote_url, signer_must_acknowledge, signer_must_acknowledge_use_account_default, tabs, template_locked, template_required, transform_pdf_fields, uri].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/envelope_purge_configuration.rb b/lib/docusign_esign/models/envelope_purge_configuration.rb index 784d6ec8..536274db 100644 --- a/lib/docusign_esign/models/envelope_purge_configuration.rb +++ b/lib/docusign_esign/models/envelope_purge_configuration.rb @@ -14,12 +14,21 @@ module DocuSign_eSign # Contains information about the current envelope purge configuration for an account, which enables account administrators to purge documents from completed and voided envelopes after a set number of days (`retentionDays`). class EnvelopePurgeConfiguration + # + attr_accessor :apply_purge_policy_for_unaccounted_recipients + # attr_accessor :purge_envelopes + # + attr_accessor :purge_envelopes_received + # attr_accessor :redact_pii + # + attr_accessor :redact_pii_received + # attr_accessor :remove_tabs_and_envelope_attachments @@ -29,8 +38,11 @@ class EnvelopePurgeConfiguration # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'apply_purge_policy_for_unaccounted_recipients' => :'applyPurgePolicyForUnaccountedRecipients', :'purge_envelopes' => :'purgeEnvelopes', + :'purge_envelopes_received' => :'purgeEnvelopesReceived', :'redact_pii' => :'redactPII', + :'redact_pii_received' => :'redactPIIReceived', :'remove_tabs_and_envelope_attachments' => :'removeTabsAndEnvelopeAttachments', :'retention_days' => :'retentionDays' } @@ -39,8 +51,11 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'apply_purge_policy_for_unaccounted_recipients' => :'String', :'purge_envelopes' => :'String', + :'purge_envelopes_received' => :'String', :'redact_pii' => :'String', + :'redact_pii_received' => :'String', :'remove_tabs_and_envelope_attachments' => :'String', :'retention_days' => :'String' } @@ -54,14 +69,26 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'applyPurgePolicyForUnaccountedRecipients') + self.apply_purge_policy_for_unaccounted_recipients = attributes[:'applyPurgePolicyForUnaccountedRecipients'] + end + if attributes.has_key?(:'purgeEnvelopes') self.purge_envelopes = attributes[:'purgeEnvelopes'] end + if attributes.has_key?(:'purgeEnvelopesReceived') + self.purge_envelopes_received = attributes[:'purgeEnvelopesReceived'] + end + if attributes.has_key?(:'redactPII') self.redact_pii = attributes[:'redactPII'] end + if attributes.has_key?(:'redactPIIReceived') + self.redact_pii_received = attributes[:'redactPIIReceived'] + end + if attributes.has_key?(:'removeTabsAndEnvelopeAttachments') self.remove_tabs_and_envelope_attachments = attributes[:'removeTabsAndEnvelopeAttachments'] end @@ -89,8 +116,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + apply_purge_policy_for_unaccounted_recipients == o.apply_purge_policy_for_unaccounted_recipients && purge_envelopes == o.purge_envelopes && + purge_envelopes_received == o.purge_envelopes_received && redact_pii == o.redact_pii && + redact_pii_received == o.redact_pii_received && remove_tabs_and_envelope_attachments == o.remove_tabs_and_envelope_attachments && retention_days == o.retention_days end @@ -104,7 +134,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [purge_envelopes, redact_pii, remove_tabs_and_envelope_attachments, retention_days].hash + [apply_purge_policy_for_unaccounted_recipients, purge_envelopes, purge_envelopes_received, redact_pii, redact_pii_received, remove_tabs_and_envelope_attachments, retention_days].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/envelope_template.rb b/lib/docusign_esign/models/envelope_template.rb index 91239782..04f99ee5 100644 --- a/lib/docusign_esign/models/envelope_template.rb +++ b/lib/docusign_esign/models/envelope_template.rb @@ -127,6 +127,9 @@ class EnvelopeTemplate # attr_accessor :envelope_attachments + # + attr_accessor :envelope_classification + # attr_accessor :envelope_custom_metadata @@ -175,6 +178,9 @@ class EnvelopeTemplate # attr_accessor :folders + # + attr_accessor :has_authorized_signatory_recipient + # attr_accessor :has_comments @@ -322,6 +328,9 @@ class EnvelopeTemplate # The reason the envelope or template was voided. attr_accessor :voided_reason + # + attr_accessor :watermark_language + # attr_accessor :workflow @@ -366,6 +375,7 @@ def self.attribute_map :'enable_wet_sign' => :'enableWetSign', :'enforce_signer_visibility' => :'enforceSignerVisibility', :'envelope_attachments' => :'envelopeAttachments', + :'envelope_classification' => :'envelopeClassification', :'envelope_custom_metadata' => :'envelopeCustomMetadata', :'envelope_documents' => :'envelopeDocuments', :'envelope_id' => :'envelopeId', @@ -382,6 +392,7 @@ def self.attribute_map :'folder_ids' => :'folderIds', :'folder_name' => :'folderName', :'folders' => :'folders', + :'has_authorized_signatory_recipient' => :'hasAuthorizedSignatoryRecipient', :'has_comments' => :'hasComments', :'has_form_data_changed' => :'hasFormDataChanged', :'has_wav_file' => :'hasWavFile', @@ -431,6 +442,7 @@ def self.attribute_map :'u_sig_state' => :'uSigState', :'voided_date_time' => :'voidedDateTime', :'voided_reason' => :'voidedReason', + :'watermark_language' => :'watermarkLanguage', :'workflow' => :'workflow' } end @@ -476,6 +488,7 @@ def self.swagger_types :'enable_wet_sign' => :'String', :'enforce_signer_visibility' => :'String', :'envelope_attachments' => :'Array', + :'envelope_classification' => :'String', :'envelope_custom_metadata' => :'EnvelopeCustomMetadata', :'envelope_documents' => :'Array', :'envelope_id' => :'String', @@ -492,6 +505,7 @@ def self.swagger_types :'folder_ids' => :'Array', :'folder_name' => :'String', :'folders' => :'Array', + :'has_authorized_signatory_recipient' => :'String', :'has_comments' => :'String', :'has_form_data_changed' => :'String', :'has_wav_file' => :'String', @@ -541,6 +555,7 @@ def self.swagger_types :'u_sig_state' => :'String', :'voided_date_time' => :'String', :'voided_reason' => :'String', + :'watermark_language' => :'String', :'workflow' => :'Workflow' } end @@ -709,6 +724,10 @@ def initialize(attributes = {}) end end + if attributes.has_key?(:'envelopeClassification') + self.envelope_classification = attributes[:'envelopeClassification'] + end + if attributes.has_key?(:'envelopeCustomMetadata') self.envelope_custom_metadata = attributes[:'envelopeCustomMetadata'] end @@ -779,6 +798,10 @@ def initialize(attributes = {}) end end + if attributes.has_key?(:'hasAuthorizedSignatoryRecipient') + self.has_authorized_signatory_recipient = attributes[:'hasAuthorizedSignatoryRecipient'] + end + if attributes.has_key?(:'hasComments') self.has_comments = attributes[:'hasComments'] end @@ -977,6 +1000,10 @@ def initialize(attributes = {}) self.voided_reason = attributes[:'voidedReason'] end + if attributes.has_key?(:'watermarkLanguage') + self.watermark_language = attributes[:'watermarkLanguage'] + end + if attributes.has_key?(:'workflow') self.workflow = attributes[:'workflow'] end @@ -1038,6 +1065,7 @@ def ==(o) enable_wet_sign == o.enable_wet_sign && enforce_signer_visibility == o.enforce_signer_visibility && envelope_attachments == o.envelope_attachments && + envelope_classification == o.envelope_classification && envelope_custom_metadata == o.envelope_custom_metadata && envelope_documents == o.envelope_documents && envelope_id == o.envelope_id && @@ -1054,6 +1082,7 @@ def ==(o) folder_ids == o.folder_ids && folder_name == o.folder_name && folders == o.folders && + has_authorized_signatory_recipient == o.has_authorized_signatory_recipient && has_comments == o.has_comments && has_form_data_changed == o.has_form_data_changed && has_wav_file == o.has_wav_file && @@ -1103,6 +1132,7 @@ def ==(o) u_sig_state == o.u_sig_state && voided_date_time == o.voided_date_time && voided_reason == o.voided_reason && + watermark_language == o.watermark_language && workflow == o.workflow end @@ -1115,7 +1145,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_match, auto_match_specified_by_user, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, favorited_by_me, folder_id, folder_ids, folder_name, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_ace_gen_template, is_doc_gen_template, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified, last_modified_by, last_modified_date_time, last_used, location, lock_information, message_lock, name, new_password, notification, notification_uri, owner, page_count, password, password_protected, power_form, power_forms, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, u_sig_state, voided_date_time, voided_reason, workflow].hash + [access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_match, auto_match_specified_by_user, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_classification, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, favorited_by_me, folder_id, folder_ids, folder_name, folders, has_authorized_signatory_recipient, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_ace_gen_template, is_doc_gen_template, is_dynamic_envelope, is_signature_provider_envelope, is_ticket_related_envelope, last_modified, last_modified_by, last_modified_date_time, last_used, location, lock_information, message_lock, name, new_password, notification, notification_uri, owner, page_count, password, password_protected, power_form, power_forms, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, u_sig_state, voided_date_time, voided_reason, watermark_language, workflow].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/envelopes_share_permission_response.rb b/lib/docusign_esign/models/envelopes_share_permission_response.rb new file mode 100644 index 00000000..6a3ad2e5 --- /dev/null +++ b/lib/docusign_esign/models/envelopes_share_permission_response.rb @@ -0,0 +1,184 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class EnvelopesSharePermissionResponse + # + attr_accessor :permission + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'permission' => :'permission' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'permission' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'permission') + self.permission = attributes[:'permission'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + permission == o.permission + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [permission].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/envelopes_share_request.rb b/lib/docusign_esign/models/envelopes_share_request.rb index 140d0be5..a6f2ebcc 100644 --- a/lib/docusign_esign/models/envelopes_share_request.rb +++ b/lib/docusign_esign/models/envelopes_share_request.rb @@ -22,12 +22,16 @@ class EnvelopesShareRequest # attr_accessor :permission + # + attr_accessor :share_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'agent_user' => :'agentUser', :'custom_message' => :'customMessage', - :'permission' => :'permission' + :'permission' => :'permission', + :'share_id' => :'shareId' } end @@ -36,7 +40,8 @@ def self.swagger_types { :'agent_user' => :'AuthorizationUser', :'custom_message' => :'String', - :'permission' => :'String' + :'permission' => :'String', + :'share_id' => :'String' } end @@ -59,6 +64,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'permission') self.permission = attributes[:'permission'] end + + if attributes.has_key?(:'shareId') + self.share_id = attributes[:'shareId'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -81,7 +90,8 @@ def ==(o) self.class == o.class && agent_user == o.agent_user && custom_message == o.custom_message && - permission == o.permission + permission == o.permission && + share_id == o.share_id end # @see the `==` method @@ -93,7 +103,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [agent_user, custom_message, permission].hash + [agent_user, custom_message, permission, share_id].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/extend_payment_configuration.rb b/lib/docusign_esign/models/extend_payment_configuration.rb new file mode 100644 index 00000000..4a853053 --- /dev/null +++ b/lib/docusign_esign/models/extend_payment_configuration.rb @@ -0,0 +1,278 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class ExtendPaymentConfiguration + # + attr_accessor :app_id + + # + attr_accessor :connection_instance_id + + # + attr_accessor :currency + + # + attr_accessor :duration_end + + # + attr_accessor :duration_start + + # + attr_accessor :line_items + + # + attr_accessor :payment_due_days + + # + attr_accessor :payment_methods + + # + attr_accessor :payment_mode + + # + attr_accessor :tab_role + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'app_id' => :'appId', + :'connection_instance_id' => :'connectionInstanceId', + :'currency' => :'currency', + :'duration_end' => :'durationEnd', + :'duration_start' => :'durationStart', + :'line_items' => :'lineItems', + :'payment_due_days' => :'paymentDueDays', + :'payment_methods' => :'paymentMethods', + :'payment_mode' => :'paymentMode', + :'tab_role' => :'tabRole' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'app_id' => :'String', + :'connection_instance_id' => :'String', + :'currency' => :'String', + :'duration_end' => :'String', + :'duration_start' => :'String', + :'line_items' => :'Array', + :'payment_due_days' => :'String', + :'payment_methods' => :'Array', + :'payment_mode' => :'String', + :'tab_role' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'appId') + self.app_id = attributes[:'appId'] + end + + if attributes.has_key?(:'connectionInstanceId') + self.connection_instance_id = attributes[:'connectionInstanceId'] + end + + if attributes.has_key?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.has_key?(:'durationEnd') + self.duration_end = attributes[:'durationEnd'] + end + + if attributes.has_key?(:'durationStart') + self.duration_start = attributes[:'durationStart'] + end + + if attributes.has_key?(:'lineItems') + if (value = attributes[:'lineItems']).is_a?(Array) + self.line_items = value + end + end + + if attributes.has_key?(:'paymentDueDays') + self.payment_due_days = attributes[:'paymentDueDays'] + end + + if attributes.has_key?(:'paymentMethods') + if (value = attributes[:'paymentMethods']).is_a?(Array) + self.payment_methods = value + end + end + + if attributes.has_key?(:'paymentMode') + self.payment_mode = attributes[:'paymentMode'] + end + + if attributes.has_key?(:'tabRole') + self.tab_role = attributes[:'tabRole'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + app_id == o.app_id && + connection_instance_id == o.connection_instance_id && + currency == o.currency && + duration_end == o.duration_end && + duration_start == o.duration_start && + line_items == o.line_items && + payment_due_days == o.payment_due_days && + payment_methods == o.payment_methods && + payment_mode == o.payment_mode && + tab_role == o.tab_role + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [app_id, connection_instance_id, currency, duration_end, duration_start, line_items, payment_due_days, payment_methods, payment_mode, tab_role].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/extend_payment_line_item.rb b/lib/docusign_esign/models/extend_payment_line_item.rb new file mode 100644 index 00000000..501ffde9 --- /dev/null +++ b/lib/docusign_esign/models/extend_payment_line_item.rb @@ -0,0 +1,254 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class ExtendPaymentLineItem + # + attr_accessor :amount_reference + + # + attr_accessor :description + + # + attr_accessor :name + + # + attr_accessor :price_id + + # + attr_accessor :product_id + + # + attr_accessor :quantity + + # + attr_accessor :type + + # + attr_accessor :unit_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'amount_reference' => :'amountReference', + :'description' => :'description', + :'name' => :'name', + :'price_id' => :'priceId', + :'product_id' => :'productId', + :'quantity' => :'quantity', + :'type' => :'type', + :'unit_amount' => :'unitAmount' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'amount_reference' => :'String', + :'description' => :'String', + :'name' => :'String', + :'price_id' => :'String', + :'product_id' => :'String', + :'quantity' => :'String', + :'type' => :'String', + :'unit_amount' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'amountReference') + self.amount_reference = attributes[:'amountReference'] + end + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priceId') + self.price_id = attributes[:'priceId'] + end + + if attributes.has_key?(:'productId') + self.product_id = attributes[:'productId'] + end + + if attributes.has_key?(:'quantity') + self.quantity = attributes[:'quantity'] + end + + if attributes.has_key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.has_key?(:'unitAmount') + self.unit_amount = attributes[:'unitAmount'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + amount_reference == o.amount_reference && + description == o.description && + name == o.name && + price_id == o.price_id && + product_id == o.product_id && + quantity == o.quantity && + type == o.type && + unit_amount == o.unit_amount + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [amount_reference, description, name, price_id, product_id, quantity, type, unit_amount].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/formula_tab.rb b/lib/docusign_esign/models/formula_tab.rb index 2c32a99d..5a1ce9a8 100644 --- a/lib/docusign_esign/models/formula_tab.rb +++ b/lib/docusign_esign/models/formula_tab.rb @@ -137,6 +137,9 @@ class FormulaTab # Array or errors. attr_accessor :error_details + # + attr_accessor :extend_payment_configuration + # attr_accessor :extension_data @@ -454,6 +457,7 @@ def self.attribute_map :'document_id' => :'documentId', :'document_id_metadata' => :'documentIdMetadata', :'error_details' => :'errorDetails', + :'extend_payment_configuration' => :'extendPaymentConfiguration', :'extension_data' => :'extensionData', :'font' => :'font', :'font_color' => :'fontColor', @@ -592,6 +596,7 @@ def self.swagger_types :'document_id' => :'String', :'document_id_metadata' => :'PropertyMetadata', :'error_details' => :'ErrorDetails', + :'extend_payment_configuration' => :'ExtendPaymentConfiguration', :'extension_data' => :'ExtensionData', :'font' => :'String', :'font_color' => :'String', @@ -858,6 +863,10 @@ def initialize(attributes = {}) self.error_details = attributes[:'errorDetails'] end + if attributes.has_key?(:'extendPaymentConfiguration') + self.extend_payment_configuration = attributes[:'extendPaymentConfiguration'] + end + if attributes.has_key?(:'extensionData') self.extension_data = attributes[:'extensionData'] end @@ -1284,6 +1293,7 @@ def ==(o) document_id == o.document_id && document_id_metadata == o.document_id_metadata && error_details == o.error_details && + extend_payment_configuration == o.extend_payment_configuration && extension_data == o.extension_data && font == o.font && font_color == o.font_color && @@ -1386,7 +1396,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [agreement_attribute, agreement_attribute_locked, anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_tab_scope, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, caption, caption_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, connected_object_details, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, extension_data, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, formula, formula_metadata, height, height_metadata, hidden, hidden_metadata, is_payment_amount, is_payment_amount_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, payment_details, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, round_decimal_places, round_decimal_places_metadata, sender_required, sender_required_metadata, shared, shared_metadata, share_to_recipients, share_to_recipients_metadata, smart_contract_information, source, status, status_metadata, tab_fully_qualified_path, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, warning_details, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash + [agreement_attribute, agreement_attribute_locked, anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_tab_scope, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, caption, caption_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, connected_object_details, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, extend_payment_configuration, extension_data, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, formula, formula_metadata, height, height_metadata, hidden, hidden_metadata, is_payment_amount, is_payment_amount_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, payment_details, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, round_decimal_places, round_decimal_places_metadata, sender_required, sender_required_metadata, shared, shared_metadata, share_to_recipients, share_to_recipients_metadata, smart_contract_information, source, status, status_metadata, tab_fully_qualified_path, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, warning_details, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/generated_document.rb b/lib/docusign_esign/models/generated_document.rb new file mode 100644 index 00000000..ac416743 --- /dev/null +++ b/lib/docusign_esign/models/generated_document.rb @@ -0,0 +1,214 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class GeneratedDocument + # + attr_accessor :document_as_base64 + + # Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. + attr_accessor :document_id + + # + attr_accessor :document_name + + # + attr_accessor :file_extension + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'document_as_base64' => :'documentAsBase64', + :'document_id' => :'documentId', + :'document_name' => :'documentName', + :'file_extension' => :'fileExtension' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'document_as_base64' => :'String', + :'document_id' => :'String', + :'document_name' => :'String', + :'file_extension' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'documentAsBase64') + self.document_as_base64 = attributes[:'documentAsBase64'] + end + + if attributes.has_key?(:'documentId') + self.document_id = attributes[:'documentId'] + end + + if attributes.has_key?(:'documentName') + self.document_name = attributes[:'documentName'] + end + + if attributes.has_key?(:'fileExtension') + self.file_extension = attributes[:'fileExtension'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + document_as_base64 == o.document_as_base64 && + document_id == o.document_id && + document_name == o.document_name && + file_extension == o.file_extension + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [document_as_base64, document_id, document_name, file_extension].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/generated_documents_result.rb b/lib/docusign_esign/models/generated_documents_result.rb new file mode 100644 index 00000000..e5920d44 --- /dev/null +++ b/lib/docusign_esign/models/generated_documents_result.rb @@ -0,0 +1,186 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class GeneratedDocumentsResult + # + attr_accessor :generated_documents + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'generated_documents' => :'generatedDocuments' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'generated_documents' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'generatedDocuments') + if (value = attributes[:'generatedDocuments']).is_a?(Array) + self.generated_documents = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + generated_documents == o.generated_documents + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [generated_documents].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/payment_audit_event.rb b/lib/docusign_esign/models/payment_audit_event.rb new file mode 100644 index 00000000..3bed26f1 --- /dev/null +++ b/lib/docusign_esign/models/payment_audit_event.rb @@ -0,0 +1,254 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class PaymentAuditEvent + # The account ID associated with the envelope. + attr_accessor :account_id + + # + attr_accessor :action + + # + attr_accessor :actor_display_name + + # + attr_accessor :event_description + + # + attr_accessor :event_type + + # + attr_accessor :responsible_actor + + # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. + attr_accessor :status + + # + attr_accessor :timestamp + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'account_id' => :'accountId', + :'action' => :'action', + :'actor_display_name' => :'actorDisplayName', + :'event_description' => :'eventDescription', + :'event_type' => :'eventType', + :'responsible_actor' => :'responsibleActor', + :'status' => :'status', + :'timestamp' => :'timestamp' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'account_id' => :'String', + :'action' => :'String', + :'actor_display_name' => :'String', + :'event_description' => :'String', + :'event_type' => :'String', + :'responsible_actor' => :'String', + :'status' => :'String', + :'timestamp' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'accountId') + self.account_id = attributes[:'accountId'] + end + + if attributes.has_key?(:'action') + self.action = attributes[:'action'] + end + + if attributes.has_key?(:'actorDisplayName') + self.actor_display_name = attributes[:'actorDisplayName'] + end + + if attributes.has_key?(:'eventDescription') + self.event_description = attributes[:'eventDescription'] + end + + if attributes.has_key?(:'eventType') + self.event_type = attributes[:'eventType'] + end + + if attributes.has_key?(:'responsibleActor') + self.responsible_actor = attributes[:'responsibleActor'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'timestamp') + self.timestamp = attributes[:'timestamp'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + account_id == o.account_id && + action == o.action && + actor_display_name == o.actor_display_name && + event_description == o.event_description && + event_type == o.event_type && + responsible_actor == o.responsible_actor && + status == o.status && + timestamp == o.timestamp + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [account_id, action, actor_display_name, event_description, event_type, responsible_actor, status, timestamp].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/recipient_identity_verification.rb b/lib/docusign_esign/models/recipient_identity_verification.rb index f230e63e..f9c1bc0b 100644 --- a/lib/docusign_esign/models/recipient_identity_verification.rb +++ b/lib/docusign_esign/models/recipient_identity_verification.rb @@ -14,6 +14,9 @@ module DocuSign_eSign # Specifies ID Verification applied on an envelope by workflow ID. See the [list](/docs/esign-rest-api/reference/accounts/identityverifications/list/) method in the [IdentityVerifications](/docs/esign-rest-api/reference/accounts/identityverifications/) resource for more information on how to retrieve workflow IDs available for an account. This can be used in addition to other [recipient authentication](https://support.docusign.com/en/guides/ndse-user-guide-recipient-authentication) methods. class RecipientIdentityVerification + # + attr_accessor :has_auto_attached_risk_assessment + # attr_accessor :input_options @@ -29,6 +32,7 @@ class RecipientIdentityVerification # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'has_auto_attached_risk_assessment' => :'hasAutoAttachedRiskAssessment', :'input_options' => :'inputOptions', :'workflow_id' => :'workflowId', :'workflow_id_metadata' => :'workflowIdMetadata', @@ -39,6 +43,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { + :'has_auto_attached_risk_assessment' => :'String', :'input_options' => :'Array', :'workflow_id' => :'String', :'workflow_id_metadata' => :'PropertyMetadata', @@ -54,6 +59,10 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'hasAutoAttachedRiskAssessment') + self.has_auto_attached_risk_assessment = attributes[:'hasAutoAttachedRiskAssessment'] + end + if attributes.has_key?(:'inputOptions') if (value = attributes[:'inputOptions']).is_a?(Array) self.input_options = value @@ -91,6 +100,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + has_auto_attached_risk_assessment == o.has_auto_attached_risk_assessment && input_options == o.input_options && workflow_id == o.workflow_id && workflow_id_metadata == o.workflow_id_metadata && @@ -106,7 +116,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [input_options, workflow_id, workflow_id_metadata, workflow_label].hash + [has_auto_attached_risk_assessment, input_options, workflow_id, workflow_id_metadata, workflow_label].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/recommendation_info.rb b/lib/docusign_esign/models/recommendation_info.rb new file mode 100644 index 00000000..dc70ec21 --- /dev/null +++ b/lib/docusign_esign/models/recommendation_info.rb @@ -0,0 +1,224 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class RecommendationInfo + # + attr_accessor :description + + # + attr_accessor :priority + + # + attr_accessor :recommendation_id + + # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. + attr_accessor :status + + # + attr_accessor :title + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'description' => :'description', + :'priority' => :'priority', + :'recommendation_id' => :'recommendationId', + :'status' => :'status', + :'title' => :'title' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'description' => :'String', + :'priority' => :'String', + :'recommendation_id' => :'String', + :'status' => :'String', + :'title' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'recommendationId') + self.recommendation_id = attributes[:'recommendationId'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'title') + self.title = attributes[:'title'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + description == o.description && + priority == o.priority && + recommendation_id == o.recommendation_id && + status == o.status && + title == o.title + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [description, priority, recommendation_id, status, title].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/recommendations_list_request.rb b/lib/docusign_esign/models/recommendations_list_request.rb new file mode 100644 index 00000000..faae4bf1 --- /dev/null +++ b/lib/docusign_esign/models/recommendations_list_request.rb @@ -0,0 +1,186 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class RecommendationsListRequest + # + attr_accessor :recommendations + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'recommendations' => :'recommendations' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'recommendations' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'recommendations') + if (value = attributes[:'recommendations']).is_a?(Array) + self.recommendations = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + recommendations == o.recommendations + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [recommendations].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/recommendations_list_response.rb b/lib/docusign_esign/models/recommendations_list_response.rb new file mode 100644 index 00000000..537f71aa --- /dev/null +++ b/lib/docusign_esign/models/recommendations_list_response.rb @@ -0,0 +1,186 @@ +=begin +#Docusign eSignature REST API + +#The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. + +OpenAPI spec version: v2.1 +Contact: devcenter@docusign.com +Generated by: https://github.com/swagger-api/swagger-codegen.git + +=end + +require 'date' + +module DocuSign_eSign + class RecommendationsListResponse + # + attr_accessor :recommendations + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'recommendations' => :'recommendations' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'recommendations' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'recommendations') + if (value = attributes[:'recommendations']).is_a?(Array) + self.recommendations = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + recommendations == o.recommendations + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [recommendations].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = DocuSign_eSign.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/docusign_esign/models/user_account_management_granular_information.rb b/lib/docusign_esign/models/user_account_management_granular_information.rb index 8ad208ba..fa5879ea 100644 --- a/lib/docusign_esign/models/user_account_management_granular_information.rb +++ b/lib/docusign_esign/models/user_account_management_granular_information.rb @@ -92,6 +92,12 @@ class UserAccountManagementGranularInformation # Metadata that indicates whether the `canManageUsers` property is editable. attr_accessor :can_manage_users_metadata + # + attr_accessor :can_view_only_account_admin_pages + + # + attr_accessor :can_view_only_account_admin_pages_metadata + # attr_accessor :can_view_users @@ -124,6 +130,8 @@ def self.attribute_map :'can_manage_stamps_metadata' => :'canManageStampsMetadata', :'can_manage_users' => :'canManageUsers', :'can_manage_users_metadata' => :'canManageUsersMetadata', + :'can_view_only_account_admin_pages' => :'canViewOnlyAccountAdminPages', + :'can_view_only_account_admin_pages_metadata' => :'canViewOnlyAccountAdminPagesMetadata', :'can_view_users' => :'canViewUsers' } end @@ -157,6 +165,8 @@ def self.swagger_types :'can_manage_stamps_metadata' => :'SettingsMetadata', :'can_manage_users' => :'String', :'can_manage_users_metadata' => :'SettingsMetadata', + :'can_view_only_account_admin_pages' => :'String', + :'can_view_only_account_admin_pages_metadata' => :'SettingsMetadata', :'can_view_users' => :'String' } end @@ -273,6 +283,14 @@ def initialize(attributes = {}) self.can_manage_users_metadata = attributes[:'canManageUsersMetadata'] end + if attributes.has_key?(:'canViewOnlyAccountAdminPages') + self.can_view_only_account_admin_pages = attributes[:'canViewOnlyAccountAdminPages'] + end + + if attributes.has_key?(:'canViewOnlyAccountAdminPagesMetadata') + self.can_view_only_account_admin_pages_metadata = attributes[:'canViewOnlyAccountAdminPagesMetadata'] + end + if attributes.has_key?(:'canViewUsers') self.can_view_users = attributes[:'canViewUsers'] end @@ -322,6 +340,8 @@ def ==(o) can_manage_stamps_metadata == o.can_manage_stamps_metadata && can_manage_users == o.can_manage_users && can_manage_users_metadata == o.can_manage_users_metadata && + can_view_only_account_admin_pages == o.can_view_only_account_admin_pages && + can_view_only_account_admin_pages_metadata == o.can_view_only_account_admin_pages_metadata && can_view_users == o.can_view_users end @@ -334,7 +354,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [can_manage_account_security_settings, can_manage_account_security_settings_metadata, can_manage_account_settings, can_manage_account_settings_metadata, can_manage_admins, can_manage_admins_metadata, can_manage_connect, can_manage_connect_metadata, can_manage_document_retention, can_manage_document_retention_metadata, can_manage_envelope_transfer, can_manage_envelope_transfer_metadata, can_manage_groups_but_not_users, can_manage_groups_but_not_users_metadata, can_manage_joint_agreements, can_manage_joint_agreements_metadata, can_manage_reporting, can_manage_reporting_metadata, can_manage_sharing, can_manage_sharing_metadata, can_manage_signing_groups, can_manage_signing_groups_metadata, can_manage_stamps, can_manage_stamps_metadata, can_manage_users, can_manage_users_metadata, can_view_users].hash + [can_manage_account_security_settings, can_manage_account_security_settings_metadata, can_manage_account_settings, can_manage_account_settings_metadata, can_manage_admins, can_manage_admins_metadata, can_manage_connect, can_manage_connect_metadata, can_manage_document_retention, can_manage_document_retention_metadata, can_manage_envelope_transfer, can_manage_envelope_transfer_metadata, can_manage_groups_but_not_users, can_manage_groups_but_not_users_metadata, can_manage_joint_agreements, can_manage_joint_agreements_metadata, can_manage_reporting, can_manage_reporting_metadata, can_manage_sharing, can_manage_sharing_metadata, can_manage_signing_groups, can_manage_signing_groups_metadata, can_manage_stamps, can_manage_stamps_metadata, can_manage_users, can_manage_users_metadata, can_view_only_account_admin_pages, can_view_only_account_admin_pages_metadata, can_view_users].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/user_authorizations_delete_request.rb b/lib/docusign_esign/models/user_authorizations_delete_request.rb index 514d090e..56dba697 100644 --- a/lib/docusign_esign/models/user_authorizations_delete_request.rb +++ b/lib/docusign_esign/models/user_authorizations_delete_request.rb @@ -16,17 +16,22 @@ class UserAuthorizationsDeleteRequest # attr_accessor :authorizations + # + attr_accessor :send_notification + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'authorizations' => :'authorizations' + :'authorizations' => :'authorizations', + :'send_notification' => :'sendNotification' } end # Attribute type mapping. def self.swagger_types { - :'authorizations' => :'Array' + :'authorizations' => :'Array', + :'send_notification' => :'String' } end @@ -43,6 +48,10 @@ def initialize(attributes = {}) self.authorizations = value end end + + if attributes.has_key?(:'sendNotification') + self.send_notification = attributes[:'sendNotification'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -63,7 +72,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - authorizations == o.authorizations + authorizations == o.authorizations && + send_notification == o.send_notification end # @see the `==` method @@ -75,7 +85,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [authorizations].hash + [authorizations, send_notification].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/user_authorizations_request.rb b/lib/docusign_esign/models/user_authorizations_request.rb index 8e6d9c32..06c75ba5 100644 --- a/lib/docusign_esign/models/user_authorizations_request.rb +++ b/lib/docusign_esign/models/user_authorizations_request.rb @@ -16,17 +16,22 @@ class UserAuthorizationsRequest # attr_accessor :authorizations + # + attr_accessor :send_notification + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'authorizations' => :'authorizations' + :'authorizations' => :'authorizations', + :'send_notification' => :'sendNotification' } end # Attribute type mapping. def self.swagger_types { - :'authorizations' => :'Array' + :'authorizations' => :'Array', + :'send_notification' => :'String' } end @@ -43,6 +48,10 @@ def initialize(attributes = {}) self.authorizations = value end end + + if attributes.has_key?(:'sendNotification') + self.send_notification = attributes[:'sendNotification'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -63,7 +72,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - authorizations == o.authorizations + authorizations == o.authorizations && + send_notification == o.send_notification end # @see the `==` method @@ -75,7 +85,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [authorizations].hash + [authorizations, send_notification].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/user_information.rb b/lib/docusign_esign/models/user_information.rb index 008d1d66..43e5cef0 100644 --- a/lib/docusign_esign/models/user_information.rb +++ b/lib/docusign_esign/models/user_information.rb @@ -92,6 +92,9 @@ class UserInformation # attr_accessor :license_type + # + attr_accessor :license_types + # Shows the current status of the user's password. Possible values are: * password_reset * password_active * password_expired * password_locked * password_reset_failed attr_accessor :login_status @@ -187,6 +190,7 @@ def self.attribute_map :'last_name' => :'lastName', :'license_status' => :'licenseStatus', :'license_type' => :'licenseType', + :'license_types' => :'licenseTypes', :'login_status' => :'loginStatus', :'middle_name' => :'middleName', :'password' => :'password', @@ -241,6 +245,7 @@ def self.swagger_types :'last_name' => :'String', :'license_status' => :'String', :'license_type' => :'String', + :'license_types' => :'Array', :'login_status' => :'String', :'middle_name' => :'String', :'password' => :'String', @@ -384,6 +389,12 @@ def initialize(attributes = {}) self.license_type = attributes[:'licenseType'] end + if attributes.has_key?(:'licenseTypes') + if (value = attributes[:'licenseTypes']).is_a?(Array) + self.license_types = value + end + end + if attributes.has_key?(:'loginStatus') self.login_status = attributes[:'loginStatus'] end @@ -517,6 +528,7 @@ def ==(o) last_name == o.last_name && license_status == o.license_status && license_type == o.license_type && + license_types == o.license_types && login_status == o.login_status && middle_name == o.middle_name && password == o.password && @@ -550,7 +562,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [activation_access_code, company, connect_configurations, country_code, created_date_time, custom_settings, default_account_id, email, enable_connect_for_user, error_details, first_name, forgotten_password_info, group_list, has_remote_notary, home_address, initials_image_uri, is_admin, is_alternate_admin, is_managed_by_scim, is_membership_managed_by_scim, is_nar_enabled, job_title, last_login, last_name, license_status, license_type, login_status, middle_name, password, password_expiration, permission_profile_id, permission_profile_name, profile_image_uri, send_activation_email, send_activation_on_invalid_login, signature_image_uri, subscribe, suffix_name, title, uri, user_added_to_account_date_time, user_id, user_name, user_profile_last_modified_date, user_settings, user_status, user_type, work_address].hash + [activation_access_code, company, connect_configurations, country_code, created_date_time, custom_settings, default_account_id, email, enable_connect_for_user, error_details, first_name, forgotten_password_info, group_list, has_remote_notary, home_address, initials_image_uri, is_admin, is_alternate_admin, is_managed_by_scim, is_membership_managed_by_scim, is_nar_enabled, job_title, last_login, last_name, license_status, license_type, license_types, login_status, middle_name, password, password_expiration, permission_profile_id, permission_profile_name, profile_image_uri, send_activation_email, send_activation_on_invalid_login, signature_image_uri, subscribe, suffix_name, title, uri, user_added_to_account_date_time, user_id, user_name, user_profile_last_modified_date, user_settings, user_status, user_type, work_address].hash end # Builds the object from hash diff --git a/lib/docusign_esign/models/user_settings_information.rb b/lib/docusign_esign/models/user_settings_information.rb index 414908a1..16ead1a9 100644 --- a/lib/docusign_esign/models/user_settings_information.rb +++ b/lib/docusign_esign/models/user_settings_information.rb @@ -290,6 +290,18 @@ class UserSettingsInformation # attr_accessor :is_membership_managed_by_scim_metadata + # + attr_accessor :is_membership_redacted + + # + attr_accessor :is_membership_redacted_metadata + + # + attr_accessor :is_user_redacted + + # + attr_accessor :is_user_redacted_metadata + # attr_accessor :locale @@ -341,6 +353,12 @@ class UserSettingsInformation # Metadata about the `recipientViewedNotification` property. attr_accessor :recipient_viewed_notification_metadata + # + attr_accessor :redact_at_metadata + + # + attr_accessor :redact_membership_at + # attr_accessor :seal_identifiers @@ -556,6 +574,10 @@ def self.attribute_map :'is_managed_by_scim_metadata' => :'isManagedByScimMetadata', :'is_membership_managed_by_scim' => :'isMembershipManagedByScim', :'is_membership_managed_by_scim_metadata' => :'isMembershipManagedByScimMetadata', + :'is_membership_redacted' => :'isMembershipRedacted', + :'is_membership_redacted_metadata' => :'isMembershipRedactedMetadata', + :'is_user_redacted' => :'isUserRedacted', + :'is_user_redacted_metadata' => :'isUserRedactedMetadata', :'locale' => :'locale', :'locale_metadata' => :'localeMetadata', :'locale_policy' => :'localePolicy', @@ -573,6 +595,8 @@ def self.attribute_map :'power_form_mode_metadata' => :'powerFormModeMetadata', :'recipient_viewed_notification' => :'recipientViewedNotification', :'recipient_viewed_notification_metadata' => :'recipientViewedNotificationMetadata', + :'redact_at_metadata' => :'redactAtMetadata', + :'redact_membership_at' => :'redactMembershipAt', :'seal_identifiers' => :'sealIdentifiers', :'self_signed_recipient_email_document' => :'selfSignedRecipientEmailDocument', :'self_signed_recipient_email_document_metadata' => :'selfSignedRecipientEmailDocumentMetadata', @@ -711,6 +735,10 @@ def self.swagger_types :'is_managed_by_scim_metadata' => :'SettingsMetadata', :'is_membership_managed_by_scim' => :'String', :'is_membership_managed_by_scim_metadata' => :'SettingsMetadata', + :'is_membership_redacted' => :'String', + :'is_membership_redacted_metadata' => :'SettingsMetadata', + :'is_user_redacted' => :'String', + :'is_user_redacted_metadata' => :'SettingsMetadata', :'locale' => :'String', :'locale_metadata' => :'SettingsMetadata', :'locale_policy' => :'LocalePolicy', @@ -728,6 +756,8 @@ def self.swagger_types :'power_form_mode_metadata' => :'SettingsMetadata', :'recipient_viewed_notification' => :'String', :'recipient_viewed_notification_metadata' => :'SettingsMetadata', + :'redact_at_metadata' => :'SettingsMetadata', + :'redact_membership_at' => :'String', :'seal_identifiers' => :'Array', :'self_signed_recipient_email_document' => :'String', :'self_signed_recipient_email_document_metadata' => :'SettingsMetadata', @@ -1147,6 +1177,22 @@ def initialize(attributes = {}) self.is_membership_managed_by_scim_metadata = attributes[:'isMembershipManagedByScimMetadata'] end + if attributes.has_key?(:'isMembershipRedacted') + self.is_membership_redacted = attributes[:'isMembershipRedacted'] + end + + if attributes.has_key?(:'isMembershipRedactedMetadata') + self.is_membership_redacted_metadata = attributes[:'isMembershipRedactedMetadata'] + end + + if attributes.has_key?(:'isUserRedacted') + self.is_user_redacted = attributes[:'isUserRedacted'] + end + + if attributes.has_key?(:'isUserRedactedMetadata') + self.is_user_redacted_metadata = attributes[:'isUserRedactedMetadata'] + end + if attributes.has_key?(:'locale') self.locale = attributes[:'locale'] end @@ -1215,6 +1261,14 @@ def initialize(attributes = {}) self.recipient_viewed_notification_metadata = attributes[:'recipientViewedNotificationMetadata'] end + if attributes.has_key?(:'redactAtMetadata') + self.redact_at_metadata = attributes[:'redactAtMetadata'] + end + + if attributes.has_key?(:'redactMembershipAt') + self.redact_membership_at = attributes[:'redactMembershipAt'] + end + if attributes.has_key?(:'sealIdentifiers') if (value = attributes[:'sealIdentifiers']).is_a?(Array) self.seal_identifiers = value @@ -1488,6 +1542,10 @@ def ==(o) is_managed_by_scim_metadata == o.is_managed_by_scim_metadata && is_membership_managed_by_scim == o.is_membership_managed_by_scim && is_membership_managed_by_scim_metadata == o.is_membership_managed_by_scim_metadata && + is_membership_redacted == o.is_membership_redacted && + is_membership_redacted_metadata == o.is_membership_redacted_metadata && + is_user_redacted == o.is_user_redacted && + is_user_redacted_metadata == o.is_user_redacted_metadata && locale == o.locale && locale_metadata == o.locale_metadata && locale_policy == o.locale_policy && @@ -1505,6 +1563,8 @@ def ==(o) power_form_mode_metadata == o.power_form_mode_metadata && recipient_viewed_notification == o.recipient_viewed_notification && recipient_viewed_notification_metadata == o.recipient_viewed_notification_metadata && + redact_at_metadata == o.redact_at_metadata && + redact_membership_at == o.redact_membership_at && seal_identifiers == o.seal_identifiers && self_signed_recipient_email_document == o.self_signed_recipient_email_document && self_signed_recipient_email_document_metadata == o.self_signed_recipient_email_document_metadata && @@ -1556,7 +1616,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [account_agreements_access_type, account_agreements_access_type_metadata, account_management_granular, admin_only, admin_only_metadata, allow_access_to_all_account_agreements, allow_access_to_all_account_agreements_metadata, allow_auto_tagging, allowed_document_template_library_access, allowed_document_template_library_access_metadata, allowed_orchestration_access, allowed_orchestration_access_metadata, allow_envelope_transfer_to, allow_envelope_transfer_to_metadata, allow_eseal_recipients, allow_eseal_recipients_metadata, allow_power_forms_admin_to_access_all_power_form_envelope, allow_power_forms_admin_to_access_all_power_form_envelope_metadata, allow_recipient_language_selection, allow_recipient_language_selection_metadata, allow_send_on_behalf_of, allow_send_on_behalf_of_metadata, allow_supplemental_documents, allow_supplemental_documents_metadata, allow_transactions, allow_transactions_metadata, anchor_tag_versioned_placement_enabled, api_account_wide_access, api_account_wide_access_metadata, api_can_export_ac, api_can_export_ac_metadata, bulk_send, bulk_send_metadata, can_bulk_upload_agreements, can_bulk_upload_agreements_metadata, can_charge_account, can_charge_account_metadata, can_create_transaction, can_create_transaction_metadata, can_delete_documents_in_transaction, can_delete_documents_in_transaction_metadata, can_delete_transaction, can_delete_transaction_metadata, can_edit_shared_addressbook, can_edit_shared_addressbook_metadata, can_lock_envelopes, can_lock_envelopes_metadata, can_manage_account, can_manage_account_metadata, can_manage_agreement_parties, can_manage_agreement_parties_metadata, can_manage_distributor, can_manage_distributor_metadata, can_manage_templates, can_manage_templates_metadata, can_send_api_requests, can_send_api_requests_metadata, can_send_envelope, can_send_envelope_metadata, can_send_envelopes_via_sms, can_send_envelopes_via_sms_metadata, can_sign_envelope, can_sign_envelope_metadata, can_use_scratchpad, can_use_scratchpad_metadata, can_use_smart_contracts, can_use_smart_contracts_metadata, disable_document_upload, disable_document_upload_metadata, disable_other_actions, disable_other_actions_metadata, enable_ds_pro, enable_ds_pro_metadata, enable_key_terms_suggestions_by_document_type, enable_key_terms_suggestions_by_document_type_metadata, enable_sequential_signing_api, enable_sequential_signing_api_metadata, enable_sequential_signing_ui, enable_sequential_signing_ui_metadata, enable_signer_attachments, enable_signer_attachments_metadata, enable_sign_on_paper_override, enable_sign_on_paper_override_metadata, enable_transaction_point, enable_transaction_point_metadata, enable_vaulting, enable_vaulting_metadata, express_send_only, is_managed_by_scim, is_managed_by_scim_metadata, is_membership_managed_by_scim, is_membership_managed_by_scim_metadata, locale, locale_metadata, locale_policy, manage_clickwraps_mode, manage_clickwraps_mode_metadata, modified_by, modified_by_metadata, modified_date, modified_date_metadata, modified_page, modified_page_metadata, new_send_ui, new_send_ui_metadata, power_form_mode, power_form_mode_metadata, recipient_viewed_notification, recipient_viewed_notification_metadata, seal_identifiers, self_signed_recipient_email_document, self_signed_recipient_email_document_metadata, sender_email_notifications, signer_email_notifications, supplemental_document_include_in_download, supplemental_documents_must_accept, supplemental_documents_must_accept_metadata, supplemental_documents_must_read, supplemental_documents_must_read_metadata, supplemental_documents_must_view, supplemental_documents_must_view_metadata, template_active_creation, template_active_creation_metadata, template_apply_notify, template_apply_notify_metadata, template_auto_matching, template_auto_matching_metadata, template_matching_sensitivity, template_matching_sensitivity_metadata, template_page_level_matching, template_page_level_matching_metadata, timezone_dst, timezone_dst_metadata, timezone_mask, timezone_mask_metadata, timezone_offset, timezone_offset_metadata, timezone_sending_pref, timezone_sending_pref_metadata, timezone_signing_pref, timezone_signing_pref_metadata, transaction_point_site_name_url, transaction_point_site_name_url_metadata, transaction_point_user_name, transaction_point_user_name_metadata, vaulting_mode, vaulting_mode_metadata, web_forms, web_forms_metadata].hash + [account_agreements_access_type, account_agreements_access_type_metadata, account_management_granular, admin_only, admin_only_metadata, allow_access_to_all_account_agreements, allow_access_to_all_account_agreements_metadata, allow_auto_tagging, allowed_document_template_library_access, allowed_document_template_library_access_metadata, allowed_orchestration_access, allowed_orchestration_access_metadata, allow_envelope_transfer_to, allow_envelope_transfer_to_metadata, allow_eseal_recipients, allow_eseal_recipients_metadata, allow_power_forms_admin_to_access_all_power_form_envelope, allow_power_forms_admin_to_access_all_power_form_envelope_metadata, allow_recipient_language_selection, allow_recipient_language_selection_metadata, allow_send_on_behalf_of, allow_send_on_behalf_of_metadata, allow_supplemental_documents, allow_supplemental_documents_metadata, allow_transactions, allow_transactions_metadata, anchor_tag_versioned_placement_enabled, api_account_wide_access, api_account_wide_access_metadata, api_can_export_ac, api_can_export_ac_metadata, bulk_send, bulk_send_metadata, can_bulk_upload_agreements, can_bulk_upload_agreements_metadata, can_charge_account, can_charge_account_metadata, can_create_transaction, can_create_transaction_metadata, can_delete_documents_in_transaction, can_delete_documents_in_transaction_metadata, can_delete_transaction, can_delete_transaction_metadata, can_edit_shared_addressbook, can_edit_shared_addressbook_metadata, can_lock_envelopes, can_lock_envelopes_metadata, can_manage_account, can_manage_account_metadata, can_manage_agreement_parties, can_manage_agreement_parties_metadata, can_manage_distributor, can_manage_distributor_metadata, can_manage_templates, can_manage_templates_metadata, can_send_api_requests, can_send_api_requests_metadata, can_send_envelope, can_send_envelope_metadata, can_send_envelopes_via_sms, can_send_envelopes_via_sms_metadata, can_sign_envelope, can_sign_envelope_metadata, can_use_scratchpad, can_use_scratchpad_metadata, can_use_smart_contracts, can_use_smart_contracts_metadata, disable_document_upload, disable_document_upload_metadata, disable_other_actions, disable_other_actions_metadata, enable_ds_pro, enable_ds_pro_metadata, enable_key_terms_suggestions_by_document_type, enable_key_terms_suggestions_by_document_type_metadata, enable_sequential_signing_api, enable_sequential_signing_api_metadata, enable_sequential_signing_ui, enable_sequential_signing_ui_metadata, enable_signer_attachments, enable_signer_attachments_metadata, enable_sign_on_paper_override, enable_sign_on_paper_override_metadata, enable_transaction_point, enable_transaction_point_metadata, enable_vaulting, enable_vaulting_metadata, express_send_only, is_managed_by_scim, is_managed_by_scim_metadata, is_membership_managed_by_scim, is_membership_managed_by_scim_metadata, is_membership_redacted, is_membership_redacted_metadata, is_user_redacted, is_user_redacted_metadata, locale, locale_metadata, locale_policy, manage_clickwraps_mode, manage_clickwraps_mode_metadata, modified_by, modified_by_metadata, modified_date, modified_date_metadata, modified_page, modified_page_metadata, new_send_ui, new_send_ui_metadata, power_form_mode, power_form_mode_metadata, recipient_viewed_notification, recipient_viewed_notification_metadata, redact_at_metadata, redact_membership_at, seal_identifiers, self_signed_recipient_email_document, self_signed_recipient_email_document_metadata, sender_email_notifications, signer_email_notifications, supplemental_document_include_in_download, supplemental_documents_must_accept, supplemental_documents_must_accept_metadata, supplemental_documents_must_read, supplemental_documents_must_read_metadata, supplemental_documents_must_view, supplemental_documents_must_view_metadata, template_active_creation, template_active_creation_metadata, template_apply_notify, template_apply_notify_metadata, template_auto_matching, template_auto_matching_metadata, template_matching_sensitivity, template_matching_sensitivity_metadata, template_page_level_matching, template_page_level_matching_metadata, timezone_dst, timezone_dst_metadata, timezone_mask, timezone_mask_metadata, timezone_offset, timezone_offset_metadata, timezone_sending_pref, timezone_sending_pref_metadata, timezone_signing_pref, timezone_signing_pref_metadata, transaction_point_site_name_url, transaction_point_site_name_url_metadata, transaction_point_user_name, transaction_point_user_name_metadata, vaulting_mode, vaulting_mode_metadata, web_forms, web_forms_metadata].hash end # Builds the object from hash diff --git a/lib/docusign_esign/version.rb b/lib/docusign_esign/version.rb index 78234e50..482d0d45 100644 --- a/lib/docusign_esign/version.rb +++ b/lib/docusign_esign/version.rb @@ -10,5 +10,5 @@ =end module DocuSign_eSign - VERSION = '7.0.0' + VERSION = '7.1.0' end