diff --git a/docusign_esign/apis/envelopes_api.py b/docusign_esign/apis/envelopes_api.py index a58a9b8c..cfc52d0d 100644 --- a/docusign_esign/apis/envelopes_api.py +++ b/docusign_esign/apis/envelopes_api.py @@ -2918,6 +2918,118 @@ def delete_email_settings_with_http_info(self, account_id, envelope_id, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_envelope_correct_view(self, account_id, envelope_id, **kwargs): + """ + Revokes the correction view URL to the Envelope UI + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_envelope_correct_view(account_id, envelope_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str account_id: The external account number (int) or account ID Guid. (required) + :param str envelope_id: The envelopeId Guid of the envelope being accessed. (required) + :param CorrectViewRequest correct_view_request: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_envelope_correct_view_with_http_info(account_id, envelope_id, **kwargs) + else: + (data) = self.delete_envelope_correct_view_with_http_info(account_id, envelope_id, **kwargs) + return data + + def delete_envelope_correct_view_with_http_info(self, account_id, envelope_id, **kwargs): + """ + Revokes the correction view URL to the Envelope UI + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_envelope_correct_view_with_http_info(account_id, envelope_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str account_id: The external account number (int) or account ID Guid. (required) + :param str envelope_id: The envelopeId Guid of the envelope being accessed. (required) + :param CorrectViewRequest correct_view_request: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'envelope_id', 'correct_view_request'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_envelope_correct_view" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'account_id' is set + if ('account_id' not in params) or (params['account_id'] is None): + raise ValueError("Missing the required parameter `account_id` when calling `delete_envelope_correct_view`") + # verify the required parameter 'envelope_id' is set + if ('envelope_id' not in params) or (params['envelope_id'] is None): + raise ValueError("Missing the required parameter `envelope_id` when calling `delete_envelope_correct_view`") + + + collection_formats = {} + + resource_path = '/v2/accounts/{accountId}/envelopes/{envelopeId}/views/correct'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'envelope_id' in params: + path_params['envelopeId'] = params['envelope_id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'correct_view_request' in params: + body_params = params['correct_view_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_lock(self, account_id, envelope_id, **kwargs): """ Deletes an envelope lock. diff --git a/docusign_esign/models/correct_view_request.py b/docusign_esign/models/correct_view_request.py index 1b485c80..21b32f93 100644 --- a/docusign_esign/models/correct_view_request.py +++ b/docusign_esign/models/correct_view_request.py @@ -32,25 +32,30 @@ class CorrectViewRequest(object): """ swagger_types = { 'return_url': 'str', - 'suppress_navigation': 'str' + 'suppress_navigation': 'str', + 'view_url': 'str' } attribute_map = { 'return_url': 'returnUrl', - 'suppress_navigation': 'suppressNavigation' + 'suppress_navigation': 'suppressNavigation', + 'view_url': 'viewUrl' } - def __init__(self, return_url=None, suppress_navigation=None): # noqa: E501 + def __init__(self, return_url=None, suppress_navigation=None, view_url=None): # noqa: E501 """CorrectViewRequest - a model defined in Swagger""" # noqa: E501 self._return_url = None self._suppress_navigation = None + self._view_url = None self.discriminator = None if return_url is not None: self.return_url = return_url if suppress_navigation is not None: self.suppress_navigation = suppress_navigation + if view_url is not None: + self.view_url = view_url @property def return_url(self): @@ -98,6 +103,29 @@ def suppress_navigation(self, suppress_navigation): self._suppress_navigation = suppress_navigation + @property + def view_url(self): + """Gets the view_url of this CorrectViewRequest. # noqa: E501 + + # noqa: E501 + + :return: The view_url of this CorrectViewRequest. # noqa: E501 + :rtype: str + """ + return self._view_url + + @view_url.setter + def view_url(self, view_url): + """Sets the view_url of this CorrectViewRequest. + + # noqa: E501 + + :param view_url: The view_url of this CorrectViewRequest. # noqa: E501 + :type: str + """ + + self._view_url = view_url + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/docusign_esign/models/user_account_management_granular_information.py b/docusign_esign/models/user_account_management_granular_information.py index 10d95dd8..7d7e41c4 100644 --- a/docusign_esign/models/user_account_management_granular_information.py +++ b/docusign_esign/models/user_account_management_granular_information.py @@ -37,6 +37,8 @@ class UserAccountManagementGranularInformation(object): 'can_manage_account_settings_metadata': 'SettingsMetadata', 'can_manage_admins': 'str', 'can_manage_admins_metadata': 'SettingsMetadata', + 'can_manage_envelope_transfer': 'str', + 'can_manage_envelope_transfer_metadata': 'SettingsMetadata', 'can_manage_groups': 'str', 'can_manage_groups_metadata': 'SettingsMetadata', 'can_manage_reporting': 'str', @@ -58,6 +60,8 @@ class UserAccountManagementGranularInformation(object): 'can_manage_account_settings_metadata': 'canManageAccountSettingsMetadata', 'can_manage_admins': 'canManageAdmins', 'can_manage_admins_metadata': 'canManageAdminsMetadata', + 'can_manage_envelope_transfer': 'canManageEnvelopeTransfer', + 'can_manage_envelope_transfer_metadata': 'canManageEnvelopeTransferMetadata', 'can_manage_groups': 'canManageGroups', 'can_manage_groups_metadata': 'canManageGroupsMetadata', 'can_manage_reporting': 'canManageReporting', @@ -72,7 +76,7 @@ class UserAccountManagementGranularInformation(object): 'can_view_users_metadata': 'canViewUsersMetadata' } - def __init__(self, can_manage_account_security_settings=None, can_manage_account_security_settings_metadata=None, can_manage_account_settings=None, can_manage_account_settings_metadata=None, can_manage_admins=None, can_manage_admins_metadata=None, can_manage_groups=None, can_manage_groups_metadata=None, can_manage_reporting=None, can_manage_reporting_metadata=None, can_manage_sharing=None, can_manage_sharing_metadata=None, can_manage_signing_groups=None, can_manage_signing_groups_metadata=None, can_manage_users=None, can_manage_users_metadata=None, can_view_users=None, can_view_users_metadata=None): # noqa: E501 + def __init__(self, can_manage_account_security_settings=None, can_manage_account_security_settings_metadata=None, can_manage_account_settings=None, can_manage_account_settings_metadata=None, can_manage_admins=None, can_manage_admins_metadata=None, can_manage_envelope_transfer=None, can_manage_envelope_transfer_metadata=None, can_manage_groups=None, can_manage_groups_metadata=None, can_manage_reporting=None, can_manage_reporting_metadata=None, can_manage_sharing=None, can_manage_sharing_metadata=None, can_manage_signing_groups=None, can_manage_signing_groups_metadata=None, can_manage_users=None, can_manage_users_metadata=None, can_view_users=None, can_view_users_metadata=None): # noqa: E501 """UserAccountManagementGranularInformation - a model defined in Swagger""" # noqa: E501 self._can_manage_account_security_settings = None @@ -81,6 +85,8 @@ def __init__(self, can_manage_account_security_settings=None, can_manage_account self._can_manage_account_settings_metadata = None self._can_manage_admins = None self._can_manage_admins_metadata = None + self._can_manage_envelope_transfer = None + self._can_manage_envelope_transfer_metadata = None self._can_manage_groups = None self._can_manage_groups_metadata = None self._can_manage_reporting = None @@ -107,6 +113,10 @@ def __init__(self, can_manage_account_security_settings=None, can_manage_account self.can_manage_admins = can_manage_admins if can_manage_admins_metadata is not None: self.can_manage_admins_metadata = can_manage_admins_metadata + if can_manage_envelope_transfer is not None: + self.can_manage_envelope_transfer = can_manage_envelope_transfer + if can_manage_envelope_transfer_metadata is not None: + self.can_manage_envelope_transfer_metadata = can_manage_envelope_transfer_metadata if can_manage_groups is not None: self.can_manage_groups = can_manage_groups if can_manage_groups_metadata is not None: @@ -264,6 +274,50 @@ def can_manage_admins_metadata(self, can_manage_admins_metadata): self._can_manage_admins_metadata = can_manage_admins_metadata + @property + def can_manage_envelope_transfer(self): + """Gets the can_manage_envelope_transfer of this UserAccountManagementGranularInformation. # noqa: E501 + + # noqa: E501 + + :return: The can_manage_envelope_transfer of this UserAccountManagementGranularInformation. # noqa: E501 + :rtype: str + """ + return self._can_manage_envelope_transfer + + @can_manage_envelope_transfer.setter + def can_manage_envelope_transfer(self, can_manage_envelope_transfer): + """Sets the can_manage_envelope_transfer of this UserAccountManagementGranularInformation. + + # noqa: E501 + + :param can_manage_envelope_transfer: The can_manage_envelope_transfer of this UserAccountManagementGranularInformation. # noqa: E501 + :type: str + """ + + self._can_manage_envelope_transfer = can_manage_envelope_transfer + + @property + def can_manage_envelope_transfer_metadata(self): + """Gets the can_manage_envelope_transfer_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + + + :return: The can_manage_envelope_transfer_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + :rtype: SettingsMetadata + """ + return self._can_manage_envelope_transfer_metadata + + @can_manage_envelope_transfer_metadata.setter + def can_manage_envelope_transfer_metadata(self, can_manage_envelope_transfer_metadata): + """Sets the can_manage_envelope_transfer_metadata of this UserAccountManagementGranularInformation. + + + :param can_manage_envelope_transfer_metadata: The can_manage_envelope_transfer_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + :type: SettingsMetadata + """ + + self._can_manage_envelope_transfer_metadata = can_manage_envelope_transfer_metadata + @property def can_manage_groups(self): """Gets the can_manage_groups of this UserAccountManagementGranularInformation. # noqa: E501 diff --git a/setup.py b/setup.py index 68165ba0..09ec95ad 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages, Command, os # noqa: H301 NAME = "docusign_esign" -VERSION = "2.6.0" +VERSION = "2.7.0rc1" # To install the library, run the following # # python setup.py install