Skip to content

Commit d9ac9fc

Browse files
dbbrahmbhattroot
andauthored
Version 3.16.0-v2.1-22.1.02.00 release (#145)
Co-authored-by: root <[email protected]>
1 parent 4b6bf08 commit d9ac9fc

Some content is hidden

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

65 files changed

+5620
-155
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ 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+
## [v3.16.0] - eSignature API v2.1-22.1.02.00 - 2022-05-18
7+
### Changed
8+
- Added support for version v2.1-22.1.02.00 of the DocuSign ESignature API.
9+
- Updated the SDK release version.
10+
- Added support for latest PyJwt versions of library.
11+
612
## [v3.15.0] - eSignature API v2.1-22.1.01.00 - 2022-04-07
713
### Changed
814
- Added support for version v2.1-22.1.01.00 of the DocuSign ESignature API.

docusign_esign/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@
309309
from docusign_esign.models.id_check_configuration import IdCheckConfiguration
310310
from docusign_esign.models.id_check_information_input import IdCheckInformationInput
311311
from docusign_esign.models.id_check_security_step import IdCheckSecurityStep
312+
from docusign_esign.models.id_evidence_resource_token import IdEvidenceResourceToken
313+
from docusign_esign.models.id_evidence_view_link import IdEvidenceViewLink
312314
from docusign_esign.models.in_person_signer import InPersonSigner
313315
from docusign_esign.models.initial_here import InitialHere
314316
from docusign_esign.models.inline_template import InlineTemplate
@@ -363,6 +365,7 @@
363365
from docusign_esign.models.page import Page
364366
from docusign_esign.models.page_images import PageImages
365367
from docusign_esign.models.page_request import PageRequest
368+
from docusign_esign.models.participant import Participant
366369
from docusign_esign.models.path_extended_element import PathExtendedElement
367370
from docusign_esign.models.pay_pal_legacy_settings import PayPalLegacySettings
368371
from docusign_esign.models.payment_details import PaymentDetails
@@ -389,8 +392,6 @@
389392
from docusign_esign.models.power_forms_response import PowerFormsResponse
390393
from docusign_esign.models.prefill_form_data import PrefillFormData
391394
from docusign_esign.models.prefill_tabs import PrefillTabs
392-
from docusign_esign.models.proof_service_resource_token import ProofServiceResourceToken
393-
from docusign_esign.models.proof_service_view_link import ProofServiceViewLink
394395
from docusign_esign.models.property_metadata import PropertyMetadata
395396
from docusign_esign.models.province import Province
396397
from docusign_esign.models.provisioning_information import ProvisioningInformation
@@ -426,7 +427,6 @@
426427
from docusign_esign.models.recipients_update_summary import RecipientsUpdateSummary
427428
from docusign_esign.models.referral_information import ReferralInformation
428429
from docusign_esign.models.reminders import Reminders
429-
from docusign_esign.models.reserved_domain_existence import ReservedDomainExistence
430430
from docusign_esign.models.resource_information import ResourceInformation
431431
from docusign_esign.models.return_url_request import ReturnUrlRequest
432432
from docusign_esign.models.scheduled_sending import ScheduledSending

docusign_esign/apis/accounts_api.py

Lines changed: 5 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -4122,114 +4122,6 @@ def get_provisioning_with_http_info(self, **kwargs):
41224122
_request_timeout=params.get('_request_timeout'),
41234123
collection_formats=collection_formats)
41244124

4125-
def get_reserved_domain_existence(self, account_id, email_domain, **kwargs):
4126-
"""
4127-
Returns whether or not the specified email domain is reserved/claimed.
4128-
This method makes a synchronous HTTP request by default. To make an
4129-
asynchronous HTTP request, please define a `callback` function
4130-
to be invoked when receiving the response.
4131-
>>> def callback_function(response):
4132-
>>> pprint(response)
4133-
>>>
4134-
>>> thread = api.get_reserved_domain_existence(account_id, email_domain, callback=callback_function)
4135-
4136-
:param callback function: The callback function
4137-
for asynchronous request. (optional)
4138-
:param str account_id: The external account number (int) or account ID Guid. (required)
4139-
:param str email_domain: (required)
4140-
:return: ReservedDomainExistence
4141-
If the method is called asynchronously,
4142-
returns the request thread.
4143-
"""
4144-
kwargs['_return_http_data_only'] = True
4145-
if kwargs.get('callback'):
4146-
return self.get_reserved_domain_existence_with_http_info(account_id, email_domain, **kwargs)
4147-
else:
4148-
(data) = self.get_reserved_domain_existence_with_http_info(account_id, email_domain, **kwargs)
4149-
return data
4150-
4151-
def get_reserved_domain_existence_with_http_info(self, account_id, email_domain, **kwargs):
4152-
"""
4153-
Returns whether or not the specified email domain is reserved/claimed.
4154-
This method makes a synchronous HTTP request by default. To make an
4155-
asynchronous HTTP request, please define a `callback` function
4156-
to be invoked when receiving the response.
4157-
>>> def callback_function(response):
4158-
>>> pprint(response)
4159-
>>>
4160-
>>> thread = api.get_reserved_domain_existence_with_http_info(account_id, email_domain, callback=callback_function)
4161-
4162-
:param callback function: The callback function
4163-
for asynchronous request. (optional)
4164-
:param str account_id: The external account number (int) or account ID Guid. (required)
4165-
:param str email_domain: (required)
4166-
:return: ReservedDomainExistence
4167-
If the method is called asynchronously,
4168-
returns the request thread.
4169-
"""
4170-
4171-
all_params = ['account_id', 'email_domain']
4172-
all_params.append('callback')
4173-
all_params.append('_return_http_data_only')
4174-
all_params.append('_preload_content')
4175-
all_params.append('_request_timeout')
4176-
4177-
params = locals()
4178-
for key, val in iteritems(params['kwargs']):
4179-
if key not in all_params:
4180-
raise TypeError(
4181-
"Got an unexpected keyword argument '%s'"
4182-
" to method get_reserved_domain_existence" % key
4183-
)
4184-
params[key] = val
4185-
del params['kwargs']
4186-
# verify the required parameter 'account_id' is set
4187-
if ('account_id' not in params) or (params['account_id'] is None):
4188-
raise ValueError("Missing the required parameter `account_id` when calling `get_reserved_domain_existence`")
4189-
# verify the required parameter 'email_domain' is set
4190-
if ('email_domain' not in params) or (params['email_domain'] is None):
4191-
raise ValueError("Missing the required parameter `email_domain` when calling `get_reserved_domain_existence`")
4192-
4193-
4194-
collection_formats = {}
4195-
4196-
resource_path = '/v2.1/accounts/{accountId}/reserved_domains'.replace('{format}', 'json')
4197-
path_params = {}
4198-
if 'account_id' in params:
4199-
path_params['accountId'] = params['account_id']
4200-
4201-
query_params = {}
4202-
if 'email_domain' in params:
4203-
query_params['email_domain'] = params['email_domain']
4204-
4205-
header_params = {}
4206-
4207-
form_params = []
4208-
local_var_files = {}
4209-
4210-
body_params = None
4211-
# HTTP header `Accept`
4212-
header_params['Accept'] = self.api_client.\
4213-
select_header_accept(['application/json'])
4214-
4215-
# Authentication setting
4216-
auth_settings = []
4217-
4218-
return self.api_client.call_api(resource_path, 'GET',
4219-
path_params,
4220-
query_params,
4221-
header_params,
4222-
body=body_params,
4223-
post_params=form_params,
4224-
files=local_var_files,
4225-
response_type='ReservedDomainExistence',
4226-
auth_settings=auth_settings,
4227-
callback=params.get('callback'),
4228-
_return_http_data_only=params.get('_return_http_data_only'),
4229-
_preload_content=params.get('_preload_content', True),
4230-
_request_timeout=params.get('_request_timeout'),
4231-
collection_formats=collection_formats)
4232-
42334125
def get_supported_languages(self, account_id, **kwargs):
42344126
"""
42354127
Gets list of supported languages for recipient language setting.
@@ -5976,6 +5868,7 @@ def update_brand(self, account_id, brand_id, **kwargs):
59765868
for asynchronous request. (optional)
59775869
:param str account_id: The external account number (int) or account ID Guid. (required)
59785870
:param str brand_id: The unique identifier of a brand. (required)
5871+
:param str replace_brand:
59795872
:param Brand brand:
59805873
:return: Brand
59815874
If the method is called asynchronously,
@@ -6003,13 +5896,14 @@ def update_brand_with_http_info(self, account_id, brand_id, **kwargs):
60035896
for asynchronous request. (optional)
60045897
:param str account_id: The external account number (int) or account ID Guid. (required)
60055898
:param str brand_id: The unique identifier of a brand. (required)
5899+
:param str replace_brand:
60065900
:param Brand brand:
60075901
:return: Brand
60085902
If the method is called asynchronously,
60095903
returns the request thread.
60105904
"""
60115905

6012-
all_params = ['account_id', 'brand_id', 'brand']
5906+
all_params = ['account_id', 'brand_id', 'replace_brand', 'brand']
60135907
all_params.append('callback')
60145908
all_params.append('_return_http_data_only')
60155909
all_params.append('_preload_content')
@@ -6042,6 +5936,8 @@ def update_brand_with_http_info(self, account_id, brand_id, **kwargs):
60425936
path_params['brandId'] = params['brand_id']
60435937

60445938
query_params = {}
5939+
if 'replace_brand' in params:
5940+
query_params['replace_brand'] = params['replace_brand']
60455941

60465942
header_params = {}
60475943

docusign_esign/apis/envelopes_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,7 +2241,7 @@ def create_recipient_proof_file_link(self, account_id, envelope_id, recipient_id
22412241
:param str account_id: The external account number (int) or account ID Guid. (required)
22422242
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
22432243
:param str recipient_id: The ID of the recipient being accessed. (required)
2244-
:return: ProofServiceViewLink
2244+
:return: IdEvidenceViewLink
22452245
If the method is called asynchronously,
22462246
returns the request thread.
22472247
"""
@@ -2268,7 +2268,7 @@ def create_recipient_proof_file_link_with_http_info(self, account_id, envelope_i
22682268
:param str account_id: The external account number (int) or account ID Guid. (required)
22692269
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
22702270
:param str recipient_id: The ID of the recipient being accessed. (required)
2271-
:return: ProofServiceViewLink
2271+
:return: IdEvidenceViewLink
22722272
If the method is called asynchronously,
22732273
returns the request thread.
22742274
"""
@@ -2332,7 +2332,7 @@ def create_recipient_proof_file_link_with_http_info(self, account_id, envelope_i
23322332
body=body_params,
23332333
post_params=form_params,
23342334
files=local_var_files,
2335-
response_type='ProofServiceViewLink',
2335+
response_type='IdEvidenceViewLink',
23362336
auth_settings=auth_settings,
23372337
callback=params.get('callback'),
23382338
_return_http_data_only=params.get('_return_http_data_only'),
@@ -2357,7 +2357,7 @@ def create_recipient_proof_file_resource_token(self, account_id, envelope_id, re
23572357
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
23582358
:param str recipient_id: The ID of the recipient being accessed. (required)
23592359
:param str token_scopes: (required)
2360-
:return: ProofServiceResourceToken
2360+
:return: IdEvidenceResourceToken
23612361
If the method is called asynchronously,
23622362
returns the request thread.
23632363
"""
@@ -2385,7 +2385,7 @@ def create_recipient_proof_file_resource_token_with_http_info(self, account_id,
23852385
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
23862386
:param str recipient_id: The ID of the recipient being accessed. (required)
23872387
:param str token_scopes: (required)
2388-
:return: ProofServiceResourceToken
2388+
:return: IdEvidenceResourceToken
23892389
If the method is called asynchronously,
23902390
returns the request thread.
23912391
"""
@@ -2454,7 +2454,7 @@ def create_recipient_proof_file_resource_token_with_http_info(self, account_id,
24542454
body=body_params,
24552455
post_params=form_params,
24562456
files=local_var_files,
2457-
response_type='ProofServiceResourceToken',
2457+
response_type='IdEvidenceResourceToken',
24582458
auth_settings=auth_settings,
24592459
callback=params.get('callback'),
24602460
_return_http_data_only=params.get('_return_http_data_only'),

docusign_esign/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def request_jwt_user_token(self, client_id, user_id, oauth_host_name, private_ke
686686
later = now + (expires_in * 1)
687687
claim = {"iss": client_id, "sub": user_id, "aud": oauth_host_name, "iat": now, "exp": later,
688688
"scope": " ".join(scopes)}
689-
token = jwt.encode(payload=claim, key=private_key_bytes, algorithm='RS256').decode("utf-8")
689+
token = jwt.encode(payload=claim, key=private_key_bytes, algorithm='RS256')
690690
response = self.request("POST", "https://" + oauth_host_name + "/oauth/token",
691691
headers=self.sanitize_for_serialization(
692692
{"Content-Type": "application/x-www-form-urlencoded"}),

docusign_esign/models/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@
273273
from docusign_esign.models.id_check_configuration import IdCheckConfiguration
274274
from docusign_esign.models.id_check_information_input import IdCheckInformationInput
275275
from docusign_esign.models.id_check_security_step import IdCheckSecurityStep
276+
from docusign_esign.models.id_evidence_resource_token import IdEvidenceResourceToken
277+
from docusign_esign.models.id_evidence_view_link import IdEvidenceViewLink
276278
from docusign_esign.models.in_person_signer import InPersonSigner
277279
from docusign_esign.models.initial_here import InitialHere
278280
from docusign_esign.models.inline_template import InlineTemplate
@@ -327,6 +329,7 @@
327329
from docusign_esign.models.page import Page
328330
from docusign_esign.models.page_images import PageImages
329331
from docusign_esign.models.page_request import PageRequest
332+
from docusign_esign.models.participant import Participant
330333
from docusign_esign.models.path_extended_element import PathExtendedElement
331334
from docusign_esign.models.pay_pal_legacy_settings import PayPalLegacySettings
332335
from docusign_esign.models.payment_details import PaymentDetails
@@ -353,8 +356,6 @@
353356
from docusign_esign.models.power_forms_response import PowerFormsResponse
354357
from docusign_esign.models.prefill_form_data import PrefillFormData
355358
from docusign_esign.models.prefill_tabs import PrefillTabs
356-
from docusign_esign.models.proof_service_resource_token import ProofServiceResourceToken
357-
from docusign_esign.models.proof_service_view_link import ProofServiceViewLink
358359
from docusign_esign.models.property_metadata import PropertyMetadata
359360
from docusign_esign.models.province import Province
360361
from docusign_esign.models.provisioning_information import ProvisioningInformation
@@ -390,7 +391,6 @@
390391
from docusign_esign.models.recipients_update_summary import RecipientsUpdateSummary
391392
from docusign_esign.models.referral_information import ReferralInformation
392393
from docusign_esign.models.reminders import Reminders
393-
from docusign_esign.models.reserved_domain_existence import ReservedDomainExistence
394394
from docusign_esign.models.resource_information import ResourceInformation
395395
from docusign_esign.models.return_url_request import ReturnUrlRequest
396396
from docusign_esign.models.scheduled_sending import ScheduledSending

0 commit comments

Comments
 (0)