Skip to content

Commit 4707c98

Browse files
harsharahulautomation
andauthored
Version 2.5.0rc1-v2-20.2.00 release (#76)
Co-authored-by: automation <[email protected]>
1 parent ac47068 commit 4707c98

File tree

4 files changed

+149
-4
lines changed

4 files changed

+149
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
1515
### Added
1616
* Added the new property `copy_recipient_data` to envelopes. When set to **true**, the information that recipients enter is retained when you clone an envelope. For example, if you resend an envelope that was declined or voided after one or more recipients entered data, that data is retained. Note that this functionality must be enabled for the account.
1717
* Added `RecipientIdentityInputOption` and `input_options` to support Identity Verification workflows: Reserved for DocuSign.
18+
### Deleted
19+
* Deleted the GET methods for account seals providers, which returned the seals for an account.
1820

1921
## [2.3.0rc1] - eSignature API v2-20.1.00 - 2020-03-13
2022
### Changed
@@ -33,9 +35,9 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
3335

3436
## [2.1.0] - eSignature API v2-19.2.02 - 2019-10-09
3537
### Changed
36-
* Updated the way the models and classes are initialized. Now using constructor parameters to initialize the classes. Updates to unit tests.
38+
* Updated the way the models and classes are initialized. Now using constructor parameters to initialize the classes. Updates to unit tests. (DCM-1788)
3739
### Fixed
38-
* A bug in model mapping where instead of mapping to custom DocuSign `Date` class, was mapping to python `date` class. Causing the functions such as `envelope_api.list_tabs()` to raise exception. (DCM-1788)
40+
* A bug in model mapping where instead of mapping to custom DocuSign `Date` class, was mapping to python `date` class. Causing the functions such as `envelope_api.list_tabs()` to raise exception. (DCM-3102)
3941

4042
## [2.1.0rc1] - eSignature API v2-19.2.02 - 2019-08-28
4143
### Changed
@@ -99,4 +101,4 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
99101

100102
## [1.0.0] - 2017-08-08
101103
### Added
102-
- Initial commit of the new Python SDK for DocuSign API, automatically generated from OpenAPI specification.
104+
- Initial commit of the new Python SDK for DocuSign API, automatically generated from OpenAPI specification.

docusign_esign/apis/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
from .power_forms_api import PowerFormsApi
2020
from .signing_groups_api import SigningGroupsApi
2121
from .templates_api import TemplatesApi
22+
from .trust_service_providers_api import TrustServiceProvidersApi
2223
from .users_api import UsersApi
2324
from .workspaces_api import WorkspacesApi
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# coding: utf-8
2+
3+
"""
4+
DocuSign REST API
5+
6+
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import sys
17+
import os
18+
import re
19+
20+
# python 2 and python 3 compatibility library
21+
from six import iteritems
22+
23+
from ..client.configuration import Configuration
24+
from ..client.api_client import ApiClient
25+
26+
27+
class TrustServiceProvidersApi(object):
28+
"""
29+
NOTE: This class is auto generated by the swagger code generator program.
30+
Do not edit the class manually.
31+
Ref: https://github.com/swagger-api/swagger-codegen
32+
"""
33+
34+
def __init__(self, api_client=None):
35+
config = Configuration()
36+
if api_client:
37+
self.api_client = api_client
38+
else:
39+
if not config.api_client:
40+
config.api_client = ApiClient()
41+
self.api_client = config.api_client
42+
43+
def get_seal_providers(self, account_id, **kwargs):
44+
"""
45+
Returns Account available seals for specified account.
46+
This method makes a synchronous HTTP request by default. To make an
47+
asynchronous HTTP request, please define a `callback` function
48+
to be invoked when receiving the response.
49+
>>> def callback_function(response):
50+
>>> pprint(response)
51+
>>>
52+
>>> thread = api.get_seal_providers(account_id, callback=callback_function)
53+
54+
:param callback function: The callback function
55+
for asynchronous request. (optional)
56+
:param str account_id: The external account number (int) or account ID Guid. (required)
57+
:return: AccountSeals
58+
If the method is called asynchronously,
59+
returns the request thread.
60+
"""
61+
kwargs['_return_http_data_only'] = True
62+
if kwargs.get('callback'):
63+
return self.get_seal_providers_with_http_info(account_id, **kwargs)
64+
else:
65+
(data) = self.get_seal_providers_with_http_info(account_id, **kwargs)
66+
return data
67+
68+
def get_seal_providers_with_http_info(self, account_id, **kwargs):
69+
"""
70+
Returns Account available seals for specified account.
71+
This method makes a synchronous HTTP request by default. To make an
72+
asynchronous HTTP request, please define a `callback` function
73+
to be invoked when receiving the response.
74+
>>> def callback_function(response):
75+
>>> pprint(response)
76+
>>>
77+
>>> thread = api.get_seal_providers_with_http_info(account_id, callback=callback_function)
78+
79+
:param callback function: The callback function
80+
for asynchronous request. (optional)
81+
:param str account_id: The external account number (int) or account ID Guid. (required)
82+
:return: AccountSeals
83+
If the method is called asynchronously,
84+
returns the request thread.
85+
"""
86+
87+
all_params = ['account_id']
88+
all_params.append('callback')
89+
all_params.append('_return_http_data_only')
90+
all_params.append('_preload_content')
91+
all_params.append('_request_timeout')
92+
93+
params = locals()
94+
for key, val in iteritems(params['kwargs']):
95+
if key not in all_params:
96+
raise TypeError(
97+
"Got an unexpected keyword argument '%s'"
98+
" to method get_seal_providers" % key
99+
)
100+
params[key] = val
101+
del params['kwargs']
102+
# verify the required parameter 'account_id' is set
103+
if ('account_id' not in params) or (params['account_id'] is None):
104+
raise ValueError("Missing the required parameter `account_id` when calling `get_seal_providers`")
105+
106+
107+
collection_formats = {}
108+
109+
resource_path = '/v2/accounts/{accountId}/seals'.replace('{format}', 'json')
110+
path_params = {}
111+
if 'account_id' in params:
112+
path_params['accountId'] = params['account_id']
113+
114+
query_params = {}
115+
116+
header_params = {}
117+
118+
form_params = []
119+
local_var_files = {}
120+
121+
body_params = None
122+
# HTTP header `Accept`
123+
header_params['Accept'] = self.api_client.\
124+
select_header_accept(['application/json'])
125+
126+
# Authentication setting
127+
auth_settings = []
128+
129+
return self.api_client.call_api(resource_path, 'GET',
130+
path_params,
131+
query_params,
132+
header_params,
133+
body=body_params,
134+
post_params=form_params,
135+
files=local_var_files,
136+
response_type='AccountSeals',
137+
auth_settings=auth_settings,
138+
callback=params.get('callback'),
139+
_return_http_data_only=params.get('_return_http_data_only'),
140+
_preload_content=params.get('_preload_content', True),
141+
_request_timeout=params.get('_request_timeout'),
142+
collection_formats=collection_formats)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages
1616

1717
NAME = "docusign_esign"
18-
VERSION = "2.4.0"
18+
VERSION = "2.5.0rc1"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

0 commit comments

Comments
 (0)