Skip to content

Commit 21104e2

Browse files
authored
Version 3.2.0-rc2 Release (#58)
* Version 3.2.0rc1 * The SDK now supports version v20.1.00 of the DocuSign eSignature API. * SDK Release Version updated. * Version 3.2.0 rc2 * Adding back tsps api * Updated Changelog and version Co-authored-by: Harsha Rahul Boggaram <HarshaRahul.Boggaram@docusign.com>
1 parent 496cad8 commit 21104e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6704
-4690
lines changed

.swagger-codegen-ignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Swagger Codegen Ignore
2+
3+
# Use this file to prevent files from being overwritten by the generator.
4+
# The patterns follow closely to .gitignore or .dockerignore.
5+
6+
# As an example, the C# client generator defines ApiClient.cs.
7+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
8+
#ApiClient.cs
9+
10+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
11+
#foo/*/qux
12+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
13+
14+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
15+
#foo/**/qux
16+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
17+
18+
# You can also negate patterns with an exclamation (!).
19+
# For example, you can ignore all files in a docs folder with the file extension .md:
20+
#docs/*.md
21+
# Then explicitly reverse the ignore rule for a single file:
22+
#!docs/README.md
23+
24+
# Swagger and Git files
25+
.swagger-codegen-ignore
26+
git_push.sh
27+
.gitignore
28+
README.md
29+
CHANGELOG.md
30+
best_practices.md
31+
32+
33+
# Project files
34+
LICENSE
35+
.travis.yml
36+
requirements.txt
37+
test-requirements.txt
38+
setup.cfg
39+
#setup.py
40+
41+
42+
# Specific src and test files
43+
tox.ini
44+
docs/
45+
test/
46+
docusign_esign/client/
47+
docusign_esign/__init__.py
48+
docusign_esign/api_client.py
49+
docusign_esign/configuration.py
50+
docusign_esign/rest.py

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
55

6+
## [3.2.0rc2] - eSignature API v2.1-20.1.00 - 2020-03-13
7+
### Changed
8+
* The SDK now supports version v20.1.00 of the DocuSign eSignature API.
9+
* SDK Release Version updated.
10+
611
## [3.1.0] - eSignature API v2.1-19.4.01 - 2020-02-10
712
### Changed
813
* Changed the way the model takes in the parameters where the size of the parameters exceeded 255 arguments, now works with python3 versions which were limiting it. (DCM-3701)

docusign_esign/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@
395395
from .apis.power_forms_api import PowerFormsApi
396396
from .apis.signing_groups_api import SigningGroupsApi
397397
from .apis.templates_api import TemplatesApi
398-
from .apis.trust_service_providers_api import TrustServiceProvidersApi
399398
from .apis.users_api import UsersApi
400399
from .apis.workspaces_api import WorkspacesApi
401400

docusign_esign/apis/accounts_api.py

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,107 +3450,6 @@ def get_provisioning_with_http_info(self, **kwargs):
34503450
_request_timeout=params.get('_request_timeout'),
34513451
collection_formats=collection_formats)
34523452

3453-
def get_seal_providers(self, account_id, **kwargs):
3454-
"""
3455-
Returns Account available seals for specified account.
3456-
This method makes a synchronous HTTP request by default. To make an
3457-
asynchronous HTTP request, please define a `callback` function
3458-
to be invoked when receiving the response.
3459-
>>> def callback_function(response):
3460-
>>> pprint(response)
3461-
>>>
3462-
>>> thread = api.get_seal_providers(account_id, callback=callback_function)
3463-
3464-
:param callback function: The callback function
3465-
for asynchronous request. (optional)
3466-
:param str account_id: The external account number (int) or account ID Guid. (required)
3467-
:return: AccountSeals
3468-
If the method is called asynchronously,
3469-
returns the request thread.
3470-
"""
3471-
kwargs['_return_http_data_only'] = True
3472-
if kwargs.get('callback'):
3473-
return self.get_seal_providers_with_http_info(account_id, **kwargs)
3474-
else:
3475-
(data) = self.get_seal_providers_with_http_info(account_id, **kwargs)
3476-
return data
3477-
3478-
def get_seal_providers_with_http_info(self, account_id, **kwargs):
3479-
"""
3480-
Returns Account available seals for specified account.
3481-
This method makes a synchronous HTTP request by default. To make an
3482-
asynchronous HTTP request, please define a `callback` function
3483-
to be invoked when receiving the response.
3484-
>>> def callback_function(response):
3485-
>>> pprint(response)
3486-
>>>
3487-
>>> thread = api.get_seal_providers_with_http_info(account_id, callback=callback_function)
3488-
3489-
:param callback function: The callback function
3490-
for asynchronous request. (optional)
3491-
:param str account_id: The external account number (int) or account ID Guid. (required)
3492-
:return: AccountSeals
3493-
If the method is called asynchronously,
3494-
returns the request thread.
3495-
"""
3496-
3497-
all_params = ['account_id']
3498-
all_params.append('callback')
3499-
all_params.append('_return_http_data_only')
3500-
all_params.append('_preload_content')
3501-
all_params.append('_request_timeout')
3502-
3503-
params = locals()
3504-
for key, val in iteritems(params['kwargs']):
3505-
if key not in all_params:
3506-
raise TypeError(
3507-
"Got an unexpected keyword argument '%s'"
3508-
" to method get_seal_providers" % key
3509-
)
3510-
params[key] = val
3511-
del params['kwargs']
3512-
# verify the required parameter 'account_id' is set
3513-
if ('account_id' not in params) or (params['account_id'] is None):
3514-
raise ValueError("Missing the required parameter `account_id` when calling `get_seal_providers`")
3515-
3516-
3517-
collection_formats = {}
3518-
3519-
resource_path = '/v2.1/accounts/{accountId}/seals'.replace('{format}', 'json')
3520-
path_params = {}
3521-
if 'account_id' in params:
3522-
path_params['accountId'] = params['account_id']
3523-
3524-
query_params = {}
3525-
3526-
header_params = {}
3527-
3528-
form_params = []
3529-
local_var_files = {}
3530-
3531-
body_params = None
3532-
# HTTP header `Accept`
3533-
header_params['Accept'] = self.api_client.\
3534-
select_header_accept(['application/json'])
3535-
3536-
# Authentication setting
3537-
auth_settings = []
3538-
3539-
return self.api_client.call_api(resource_path, 'GET',
3540-
path_params,
3541-
query_params,
3542-
header_params,
3543-
body=body_params,
3544-
post_params=form_params,
3545-
files=local_var_files,
3546-
response_type='AccountSeals',
3547-
auth_settings=auth_settings,
3548-
callback=params.get('callback'),
3549-
_return_http_data_only=params.get('_return_http_data_only'),
3550-
_preload_content=params.get('_preload_content', True),
3551-
_request_timeout=params.get('_request_timeout'),
3552-
collection_formats=collection_formats)
3553-
35543453
def get_supported_languages(self, account_id, **kwargs):
35553454
"""
35563455
Gets list of supported languages for recipient language setting.

docusign_esign/apis/billing_api.py

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,111 @@ def purchase_envelopes_with_http_info(self, account_id, **kwargs):
12131213
_request_timeout=params.get('_request_timeout'),
12141214
collection_formats=collection_formats)
12151215

1216+
def update_downgrade_account_billing_plan(self, account_id, **kwargs):
1217+
"""
1218+
Queues downgrade billing plan request for an account.
1219+
This method makes a synchronous HTTP request by default. To make an
1220+
asynchronous HTTP request, please define a `callback` function
1221+
to be invoked when receiving the response.
1222+
>>> def callback_function(response):
1223+
>>> pprint(response)
1224+
>>>
1225+
>>> thread = api.update_downgrade_account_billing_plan(account_id, callback=callback_function)
1226+
1227+
:param callback function: The callback function
1228+
for asynchronous request. (optional)
1229+
:param str account_id: The external account number (int) or account ID Guid. (required)
1230+
:param DowngradeBillingPlanInformation downgrade_billing_plan_information:
1231+
:return: DowngradePlanUpdateResponse
1232+
If the method is called asynchronously,
1233+
returns the request thread.
1234+
"""
1235+
kwargs['_return_http_data_only'] = True
1236+
if kwargs.get('callback'):
1237+
return self.update_downgrade_account_billing_plan_with_http_info(account_id, **kwargs)
1238+
else:
1239+
(data) = self.update_downgrade_account_billing_plan_with_http_info(account_id, **kwargs)
1240+
return data
1241+
1242+
def update_downgrade_account_billing_plan_with_http_info(self, account_id, **kwargs):
1243+
"""
1244+
Queues downgrade billing plan request for an account.
1245+
This method makes a synchronous HTTP request by default. To make an
1246+
asynchronous HTTP request, please define a `callback` function
1247+
to be invoked when receiving the response.
1248+
>>> def callback_function(response):
1249+
>>> pprint(response)
1250+
>>>
1251+
>>> thread = api.update_downgrade_account_billing_plan_with_http_info(account_id, callback=callback_function)
1252+
1253+
:param callback function: The callback function
1254+
for asynchronous request. (optional)
1255+
:param str account_id: The external account number (int) or account ID Guid. (required)
1256+
:param DowngradeBillingPlanInformation downgrade_billing_plan_information:
1257+
:return: DowngradePlanUpdateResponse
1258+
If the method is called asynchronously,
1259+
returns the request thread.
1260+
"""
1261+
1262+
all_params = ['account_id', 'downgrade_billing_plan_information']
1263+
all_params.append('callback')
1264+
all_params.append('_return_http_data_only')
1265+
all_params.append('_preload_content')
1266+
all_params.append('_request_timeout')
1267+
1268+
params = locals()
1269+
for key, val in iteritems(params['kwargs']):
1270+
if key not in all_params:
1271+
raise TypeError(
1272+
"Got an unexpected keyword argument '%s'"
1273+
" to method update_downgrade_account_billing_plan" % key
1274+
)
1275+
params[key] = val
1276+
del params['kwargs']
1277+
# verify the required parameter 'account_id' is set
1278+
if ('account_id' not in params) or (params['account_id'] is None):
1279+
raise ValueError("Missing the required parameter `account_id` when calling `update_downgrade_account_billing_plan`")
1280+
1281+
1282+
collection_formats = {}
1283+
1284+
resource_path = '/v2.1/accounts/{accountId}/billing_plan/downgrade'.replace('{format}', 'json')
1285+
path_params = {}
1286+
if 'account_id' in params:
1287+
path_params['accountId'] = params['account_id']
1288+
1289+
query_params = {}
1290+
1291+
header_params = {}
1292+
1293+
form_params = []
1294+
local_var_files = {}
1295+
1296+
body_params = None
1297+
if 'downgrade_billing_plan_information' in params:
1298+
body_params = params['downgrade_billing_plan_information']
1299+
# HTTP header `Accept`
1300+
header_params['Accept'] = self.api_client.\
1301+
select_header_accept(['application/json'])
1302+
1303+
# Authentication setting
1304+
auth_settings = []
1305+
1306+
return self.api_client.call_api(resource_path, 'PUT',
1307+
path_params,
1308+
query_params,
1309+
header_params,
1310+
body=body_params,
1311+
post_params=form_params,
1312+
files=local_var_files,
1313+
response_type='DowngradePlanUpdateResponse',
1314+
auth_settings=auth_settings,
1315+
callback=params.get('callback'),
1316+
_return_http_data_only=params.get('_return_http_data_only'),
1317+
_preload_content=params.get('_preload_content', True),
1318+
_request_timeout=params.get('_request_timeout'),
1319+
collection_formats=collection_formats)
1320+
12161321
def update_plan(self, account_id, **kwargs):
12171322
"""
12181323
Updates the account billing plan.

docusign_esign/apis/bulk_envelopes_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def get(self, account_id, batch_id, **kwargs):
611611
:param str account_id: The external account number (int) or account ID Guid. (required)
612612
:param str batch_id: (required)
613613
:param str count: Specifies the number of entries to return.
614-
:param str include: Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=”failed,queued”) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent – This only returns entries with a sent status.
614+
:param str include: Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=\"failed,queued\") Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent - This only returns entries with a sent status.
615615
:param str start_position: Specifies the location in the list of envelopes from which to start.
616616
:return: BulkEnvelopeStatus
617617
If the method is called asynchronously,
@@ -641,7 +641,7 @@ def get_with_http_info(self, account_id, batch_id, **kwargs):
641641
:param str account_id: The external account number (int) or account ID Guid. (required)
642642
:param str batch_id: (required)
643643
:param str count: Specifies the number of entries to return.
644-
:param str include: Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=”failed,queued”) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent – This only returns entries with a sent status.
644+
:param str include: Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=\"failed,queued\") Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent - This only returns entries with a sent status.
645645
:param str start_position: Specifies the location in the list of envelopes from which to start.
646646
:return: BulkEnvelopeStatus
647647
If the method is called asynchronously,

docusign_esign/apis/envelopes_api.py

Lines changed: 1737 additions & 4343 deletions
Large diffs are not rendered by default.

docusign_esign/apis/templates_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def create_template_with_http_info(self, account_id, **kwargs):
839839
body=body_params,
840840
post_params=form_params,
841841
files=local_var_files,
842-
response_type='TemplateInformation',
842+
response_type='TemplateSummary',
843843
auth_settings=auth_settings,
844844
callback=params.get('callback'),
845845
_return_http_data_only=params.get('_return_http_data_only'),

0 commit comments

Comments
 (0)