Skip to content

Commit be4be69

Browse files
harsharahulautomation
andauthored
Version 3.4.0rc1-v2.1-20.2.00 release (#75)
Co-authored-by: automation <[email protected]>
1 parent 326351a commit be4be69

File tree

7 files changed

+240
-12
lines changed

7 files changed

+240
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
1616
### Added
1717
* 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.
1818
* Added `RecipientIdentityInputOption` and `input_options` to support Identity Verification workflows: Reserved for DocuSign.
19+
### Deleted
20+
* Deleted the GET methods for account seals providers, which returned the seals for an account.
1921

2022
## [3.2.0rc2] - eSignature API v2.1-20.1.00 - 2020-03-13
2123
### Changed
@@ -112,4 +114,4 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
112114

113115
## [1.0.0] - 2017-08-08
114116
### Added
115-
- Initial commit of the new Python SDK for DocuSign API, automatically generated from OpenAPI specification.
117+
- Initial commit of the new Python SDK for DocuSign API, automatically generated from OpenAPI specification.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The Official DocuSign Python Client
22

33
[![PyPI version][pypi-image]][pypi-url]
4-
[![PyPI downloads][downloads-image]][downloads-url]
4+
<!--[![PyPI downloads][downloads-image]][downloads-url]-->
55
[![Build status][travis-image]][travis-url]
66

77
[PyPI module](https://pypi.python.org/pypi/docusign_esign) that wraps the <a href="https://www.docusign.com">DocuSign</a> API

docusign_esign/apis/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
from .power_forms_api import PowerFormsApi
2222
from .signing_groups_api import SigningGroupsApi
2323
from .templates_api import TemplatesApi
24+
from .trust_service_providers_api import TrustServiceProvidersApi
2425
from .users_api import UsersApi
2526
from .workspaces_api import WorkspacesApi

docusign_esign/apis/bulk_envelopes_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ def update_recipients(self, account_id, envelope_id, recipient_id, bulk_recipien
12921292
:param callback function: The callback function
12931293
for asynchronous request. (optional)
12941294
:param str account_id: The external account number (int) or account ID GUID. (required)
1295-
:param str envelope_id: The envelope's GUID. Example: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec` (required)
1295+
:param str envelope_id: The envelope's GUID. Example: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec` (required)
12961296
:param str recipient_id: A local reference that senders use to map recipients to other objects, such as specific document tabs. Within an envelope, each `recipientId` must be unique, but there is no uniqueness requirement across envelopes. For example, many envelopes assign the first recipient a `recipientId` of `1`. (required)
12971297
:param str bulk_recipients_request: (required)
12981298
:return: BulkRecipientsSummaryResponse
@@ -1321,7 +1321,7 @@ def update_recipients_with_http_info(self, account_id, envelope_id, recipient_id
13211321
:param callback function: The callback function
13221322
for asynchronous request. (optional)
13231323
:param str account_id: The external account number (int) or account ID GUID. (required)
1324-
:param str envelope_id: The envelope's GUID. Example: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec` (required)
1324+
:param str envelope_id: The envelope's GUID. Example: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec` (required)
13251325
:param str recipient_id: A local reference that senders use to map recipients to other objects, such as specific document tabs. Within an envelope, each `recipientId` must be unique, but there is no uniqueness requirement across envelopes. For example, many envelopes assign the first recipient a `recipientId` of `1`. (required)
13261326
:param str bulk_recipients_request: (required)
13271327
:return: BulkRecipientsSummaryResponse
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.1
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.1/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)

docusign_esign/models/bulk_send_response.py

Lines changed: 87 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,50 @@ class BulkSendResponse(object):
3232
"""
3333
swagger_types = {
3434
'batch_id': 'str',
35+
'batch_size': 'str',
3536
'envelope_or_template_id': 'str',
3637
'error_details': 'list[str]',
37-
'errors': 'list[str]'
38+
'errors': 'list[str]',
39+
'queue_limit': 'str',
40+
'total_queued': 'str'
3841
}
3942

4043
attribute_map = {
4144
'batch_id': 'batchId',
45+
'batch_size': 'batchSize',
4246
'envelope_or_template_id': 'envelopeOrTemplateId',
4347
'error_details': 'errorDetails',
44-
'errors': 'errors'
48+
'errors': 'errors',
49+
'queue_limit': 'queueLimit',
50+
'total_queued': 'totalQueued'
4551
}
4652

47-
def __init__(self, batch_id=None, envelope_or_template_id=None, error_details=None, errors=None): # noqa: E501
53+
def __init__(self, batch_id=None, batch_size=None, envelope_or_template_id=None, error_details=None, errors=None, queue_limit=None, total_queued=None): # noqa: E501
4854
"""BulkSendResponse - a model defined in Swagger""" # noqa: E501
4955

5056
self._batch_id = None
57+
self._batch_size = None
5158
self._envelope_or_template_id = None
5259
self._error_details = None
5360
self._errors = None
61+
self._queue_limit = None
62+
self._total_queued = None
5463
self.discriminator = None
5564

5665
if batch_id is not None:
5766
self.batch_id = batch_id
67+
if batch_size is not None:
68+
self.batch_size = batch_size
5869
if envelope_or_template_id is not None:
5970
self.envelope_or_template_id = envelope_or_template_id
6071
if error_details is not None:
6172
self.error_details = error_details
6273
if errors is not None:
6374
self.errors = errors
75+
if queue_limit is not None:
76+
self.queue_limit = queue_limit
77+
if total_queued is not None:
78+
self.total_queued = total_queued
6479

6580
@property
6681
def batch_id(self):
@@ -85,6 +100,29 @@ def batch_id(self, batch_id):
85100

86101
self._batch_id = batch_id
87102

103+
@property
104+
def batch_size(self):
105+
"""Gets the batch_size of this BulkSendResponse. # noqa: E501
106+
107+
# noqa: E501
108+
109+
:return: The batch_size of this BulkSendResponse. # noqa: E501
110+
:rtype: str
111+
"""
112+
return self._batch_size
113+
114+
@batch_size.setter
115+
def batch_size(self, batch_size):
116+
"""Sets the batch_size of this BulkSendResponse.
117+
118+
# noqa: E501
119+
120+
:param batch_size: The batch_size of this BulkSendResponse. # noqa: E501
121+
:type: str
122+
"""
123+
124+
self._batch_size = batch_size
125+
88126
@property
89127
def envelope_or_template_id(self):
90128
"""Gets the envelope_or_template_id of this BulkSendResponse. # noqa: E501
@@ -154,6 +192,52 @@ def errors(self, errors):
154192

155193
self._errors = errors
156194

195+
@property
196+
def queue_limit(self):
197+
"""Gets the queue_limit of this BulkSendResponse. # noqa: E501
198+
199+
# noqa: E501
200+
201+
:return: The queue_limit of this BulkSendResponse. # noqa: E501
202+
:rtype: str
203+
"""
204+
return self._queue_limit
205+
206+
@queue_limit.setter
207+
def queue_limit(self, queue_limit):
208+
"""Sets the queue_limit of this BulkSendResponse.
209+
210+
# noqa: E501
211+
212+
:param queue_limit: The queue_limit of this BulkSendResponse. # noqa: E501
213+
:type: str
214+
"""
215+
216+
self._queue_limit = queue_limit
217+
218+
@property
219+
def total_queued(self):
220+
"""Gets the total_queued of this BulkSendResponse. # noqa: E501
221+
222+
# noqa: E501
223+
224+
:return: The total_queued of this BulkSendResponse. # noqa: E501
225+
:rtype: str
226+
"""
227+
return self._total_queued
228+
229+
@total_queued.setter
230+
def total_queued(self, total_queued):
231+
"""Sets the total_queued of this BulkSendResponse.
232+
233+
# noqa: E501
234+
235+
:param total_queued: The total_queued of this BulkSendResponse. # noqa: E501
236+
:type: str
237+
"""
238+
239+
self._total_queued = total_queued
240+
157241
def to_dict(self):
158242
"""Returns the model properties as a dict"""
159243
result = {}

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@
33
"""
44
DocuSign REST API
55
6-
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
6+
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
77
88
OpenAPI spec version: v2.1
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
1212

1313

14-
import os
15-
from setuptools import setup, find_packages, Command
14+
from setuptools import setup, find_packages, Command # noqa: H301
1615

17-
NAME = "docusign_esign"
18-
VERSION = "3.3.0"
16+
NAME = "docusign-esign"
17+
VERSION = "3.4.0rc1"
1918
# To install the library, run the following
2019
#
2120
# python setup.py install

0 commit comments

Comments
 (0)