Skip to content

Commit

Permalink
Version 3.17.0-v2.1-22.2.00.00 release (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
harsharahul and root authored Jun 18, 2022
1 parent d9ac9fc commit 214ea8a
Show file tree
Hide file tree
Showing 24 changed files with 1,661 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## [v3.17.0] - eSignature API v2.1-22.2.00.00 - 2022-06-17
### Changed
- Added support for version v2.1-22.2.00.00 of the DocuSign ESignature API.
- Updated the SDK release version.

## [v3.16.0] - eSignature API v2.1-22.1.02.00 - 2022-05-18
### Changed
- Added support for version v2.1-22.1.02.00 of the DocuSign ESignature API.
Expand Down
4 changes: 4 additions & 0 deletions docusign_esign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,14 @@
from docusign_esign.models.connect_failure_filter import ConnectFailureFilter
from docusign_esign.models.connect_failure_result import ConnectFailureResult
from docusign_esign.models.connect_failure_results import ConnectFailureResults
from docusign_esign.models.connect_historical_envelope_republish import ConnectHistoricalEnvelopeRepublish
from docusign_esign.models.connect_log import ConnectLog
from docusign_esign.models.connect_logs import ConnectLogs
from docusign_esign.models.connect_salesforce_field import ConnectSalesforceField
from docusign_esign.models.connect_salesforce_object import ConnectSalesforceObject
from docusign_esign.models.connect_user_info import ConnectUserInfo
from docusign_esign.models.connect_user_object import ConnectUserObject
from docusign_esign.models.consent_details import ConsentDetails
from docusign_esign.models.console_view_request import ConsoleViewRequest
from docusign_esign.models.consumer_disclosure import ConsumerDisclosure
from docusign_esign.models.contact import Contact
Expand Down Expand Up @@ -265,6 +267,8 @@
from docusign_esign.models.envelope_ids_request import EnvelopeIdsRequest
from docusign_esign.models.envelope_metadata import EnvelopeMetadata
from docusign_esign.models.envelope_notification_request import EnvelopeNotificationRequest
from docusign_esign.models.envelope_publish_transaction import EnvelopePublishTransaction
from docusign_esign.models.envelope_publish_transaction_error_rollup import EnvelopePublishTransactionErrorRollup
from docusign_esign.models.envelope_purge_configuration import EnvelopePurgeConfiguration
from docusign_esign.models.envelope_summary import EnvelopeSummary
from docusign_esign.models.envelope_template import EnvelopeTemplate
Expand Down
105 changes: 105 additions & 0 deletions docusign_esign/apis/envelopes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,111 @@ def create_envelope_transfer_rules_with_http_info(self, account_id, **kwargs):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def create_historical_envelope_publish_transaction(self, account_id, **kwargs):
"""
Submits a batch of historical envelopes for republish to an adhoc config.
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.create_historical_envelope_publish_transaction(account_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 ConnectHistoricalEnvelopeRepublish connect_historical_envelope_republish:
:return: EnvelopePublishTransaction
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_historical_envelope_publish_transaction_with_http_info(account_id, **kwargs)
else:
(data) = self.create_historical_envelope_publish_transaction_with_http_info(account_id, **kwargs)
return data

def create_historical_envelope_publish_transaction_with_http_info(self, account_id, **kwargs):
"""
Submits a batch of historical envelopes for republish to an adhoc config.
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.create_historical_envelope_publish_transaction_with_http_info(account_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 ConnectHistoricalEnvelopeRepublish connect_historical_envelope_republish:
:return: EnvelopePublishTransaction
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['account_id', 'connect_historical_envelope_republish']
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 create_historical_envelope_publish_transaction" % 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 `create_historical_envelope_publish_transaction`")


collection_formats = {}

resource_path = '/v2.1/accounts/{accountId}/connect/envelopes/publish/historical'.replace('{format}', 'json')
path_params = {}
if 'account_id' in params:
path_params['accountId'] = params['account_id']

query_params = {}

header_params = {}

form_params = []
local_var_files = {}

body_params = None
if 'connect_historical_envelope_republish' in params:
body_params = params['connect_historical_envelope_republish']
# 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, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EnvelopePublishTransaction',
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 create_lock(self, account_id, envelope_id, **kwargs):
"""
Lock an envelope.
Expand Down
10 changes: 9 additions & 1 deletion docusign_esign/apis/power_forms_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,8 @@ def list_power_forms(self, account_id, **kwargs):
:param str from_date:
:param str order:
:param str order_by:
:param str search_fields:
:param str search_text:
:param str to_date:
:return: PowerFormsResponse
If the method is called asynchronously,
Expand Down Expand Up @@ -737,13 +739,15 @@ def list_power_forms_with_http_info(self, account_id, **kwargs):
:param str from_date:
:param str order:
:param str order_by:
:param str search_fields:
:param str search_text:
:param str to_date:
:return: PowerFormsResponse
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['account_id', 'from_date', 'order', 'order_by', 'to_date']
all_params = ['account_id', 'from_date', 'order', 'order_by', 'search_fields', 'search_text', 'to_date']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
Expand Down Expand Up @@ -777,6 +781,10 @@ def list_power_forms_with_http_info(self, account_id, **kwargs):
query_params['order'] = params['order']
if 'order_by' in params:
query_params['order_by'] = params['order_by']
if 'search_fields' in params:
query_params['search_fields'] = params['search_fields']
if 'search_text' in params:
query_params['search_text'] = params['search_text']
if 'to_date' in params:
query_params['to_date'] = params['to_date']

Expand Down
4 changes: 4 additions & 0 deletions docusign_esign/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,14 @@
from docusign_esign.models.connect_failure_filter import ConnectFailureFilter
from docusign_esign.models.connect_failure_result import ConnectFailureResult
from docusign_esign.models.connect_failure_results import ConnectFailureResults
from docusign_esign.models.connect_historical_envelope_republish import ConnectHistoricalEnvelopeRepublish
from docusign_esign.models.connect_log import ConnectLog
from docusign_esign.models.connect_logs import ConnectLogs
from docusign_esign.models.connect_salesforce_field import ConnectSalesforceField
from docusign_esign.models.connect_salesforce_object import ConnectSalesforceObject
from docusign_esign.models.connect_user_info import ConnectUserInfo
from docusign_esign.models.connect_user_object import ConnectUserObject
from docusign_esign.models.consent_details import ConsentDetails
from docusign_esign.models.console_view_request import ConsoleViewRequest
from docusign_esign.models.consumer_disclosure import ConsumerDisclosure
from docusign_esign.models.contact import Contact
Expand Down Expand Up @@ -229,6 +231,8 @@
from docusign_esign.models.envelope_ids_request import EnvelopeIdsRequest
from docusign_esign.models.envelope_metadata import EnvelopeMetadata
from docusign_esign.models.envelope_notification_request import EnvelopeNotificationRequest
from docusign_esign.models.envelope_publish_transaction import EnvelopePublishTransaction
from docusign_esign.models.envelope_publish_transaction_error_rollup import EnvelopePublishTransactionErrorRollup
from docusign_esign.models.envelope_purge_configuration import EnvelopePurgeConfiguration
from docusign_esign.models.envelope_summary import EnvelopeSummary
from docusign_esign.models.envelope_template import EnvelopeTemplate
Expand Down
25 changes: 25 additions & 0 deletions docusign_esign/models/account_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class AccountInformation(object):
'billing_period_envelopes_sent': 'str',
'billing_period_start_date': 'str',
'billing_profile': 'str',
'brands': 'BrandsResponse',
'can_upgrade': 'str',
'connect_permission': 'str',
'created_date': 'str',
Expand Down Expand Up @@ -83,6 +84,7 @@ class AccountInformation(object):
'billing_period_envelopes_sent': 'billingPeriodEnvelopesSent',
'billing_period_start_date': 'billingPeriodStartDate',
'billing_profile': 'billingProfile',
'brands': 'brands',
'can_upgrade': 'canUpgrade',
'connect_permission': 'connectPermission',
'created_date': 'createdDate',
Expand Down Expand Up @@ -128,6 +130,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501
self._billing_period_envelopes_sent = None
self._billing_period_start_date = None
self._billing_profile = None
self._brands = None
self._can_upgrade = None
self._connect_permission = None
self._created_date = None
Expand Down Expand Up @@ -167,6 +170,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501
setattr(self, "_{}".format('billing_period_envelopes_sent'), kwargs.get('billing_period_envelopes_sent', None))
setattr(self, "_{}".format('billing_period_start_date'), kwargs.get('billing_period_start_date', None))
setattr(self, "_{}".format('billing_profile'), kwargs.get('billing_profile', None))
setattr(self, "_{}".format('brands'), kwargs.get('brands', None))
setattr(self, "_{}".format('can_upgrade'), kwargs.get('can_upgrade', None))
setattr(self, "_{}".format('connect_permission'), kwargs.get('connect_permission', None))
setattr(self, "_{}".format('created_date'), kwargs.get('created_date', None))
Expand Down Expand Up @@ -423,6 +427,27 @@ def billing_profile(self, billing_profile):

self._billing_profile = billing_profile

@property
def brands(self):
"""Gets the brands of this AccountInformation. # noqa: E501
:return: The brands of this AccountInformation. # noqa: E501
:rtype: BrandsResponse
"""
return self._brands

@brands.setter
def brands(self, brands):
"""Sets the brands of this AccountInformation.
:param brands: The brands of this AccountInformation. # noqa: E501
:type: BrandsResponse
"""

self._brands = brands

@property
def can_upgrade(self):
"""Gets the can_upgrade of this AccountInformation. # noqa: E501
Expand Down
Loading

0 comments on commit 214ea8a

Please sign in to comment.