Skip to content

Commit

Permalink
Version 3.16.0-v2.1-22.1.02.00 release (#145)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
dbbrahmbhatt and root authored May 23, 2022
1 parent 4b6bf08 commit d9ac9fc
Show file tree
Hide file tree
Showing 65 changed files with 5,620 additions and 155 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ 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.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.
- Updated the SDK release version.
- Added support for latest PyJwt versions of library.

## [v3.15.0] - eSignature API v2.1-22.1.01.00 - 2022-04-07
### Changed
- Added support for version v2.1-22.1.01.00 of the DocuSign ESignature API.
Expand Down
6 changes: 3 additions & 3 deletions docusign_esign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@
from docusign_esign.models.id_check_configuration import IdCheckConfiguration
from docusign_esign.models.id_check_information_input import IdCheckInformationInput
from docusign_esign.models.id_check_security_step import IdCheckSecurityStep
from docusign_esign.models.id_evidence_resource_token import IdEvidenceResourceToken
from docusign_esign.models.id_evidence_view_link import IdEvidenceViewLink
from docusign_esign.models.in_person_signer import InPersonSigner
from docusign_esign.models.initial_here import InitialHere
from docusign_esign.models.inline_template import InlineTemplate
Expand Down Expand Up @@ -363,6 +365,7 @@
from docusign_esign.models.page import Page
from docusign_esign.models.page_images import PageImages
from docusign_esign.models.page_request import PageRequest
from docusign_esign.models.participant import Participant
from docusign_esign.models.path_extended_element import PathExtendedElement
from docusign_esign.models.pay_pal_legacy_settings import PayPalLegacySettings
from docusign_esign.models.payment_details import PaymentDetails
Expand All @@ -389,8 +392,6 @@
from docusign_esign.models.power_forms_response import PowerFormsResponse
from docusign_esign.models.prefill_form_data import PrefillFormData
from docusign_esign.models.prefill_tabs import PrefillTabs
from docusign_esign.models.proof_service_resource_token import ProofServiceResourceToken
from docusign_esign.models.proof_service_view_link import ProofServiceViewLink
from docusign_esign.models.property_metadata import PropertyMetadata
from docusign_esign.models.province import Province
from docusign_esign.models.provisioning_information import ProvisioningInformation
Expand Down Expand Up @@ -426,7 +427,6 @@
from docusign_esign.models.recipients_update_summary import RecipientsUpdateSummary
from docusign_esign.models.referral_information import ReferralInformation
from docusign_esign.models.reminders import Reminders
from docusign_esign.models.reserved_domain_existence import ReservedDomainExistence
from docusign_esign.models.resource_information import ResourceInformation
from docusign_esign.models.return_url_request import ReturnUrlRequest
from docusign_esign.models.scheduled_sending import ScheduledSending
Expand Down
114 changes: 5 additions & 109 deletions docusign_esign/apis/accounts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4122,114 +4122,6 @@ def get_provisioning_with_http_info(self, **kwargs):
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def get_reserved_domain_existence(self, account_id, email_domain, **kwargs):
"""
Returns whether or not the specified email domain is reserved/claimed.
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.get_reserved_domain_existence(account_id, email_domain, 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 str email_domain: (required)
:return: ReservedDomainExistence
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_reserved_domain_existence_with_http_info(account_id, email_domain, **kwargs)
else:
(data) = self.get_reserved_domain_existence_with_http_info(account_id, email_domain, **kwargs)
return data

def get_reserved_domain_existence_with_http_info(self, account_id, email_domain, **kwargs):
"""
Returns whether or not the specified email domain is reserved/claimed.
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.get_reserved_domain_existence_with_http_info(account_id, email_domain, 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 str email_domain: (required)
:return: ReservedDomainExistence
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['account_id', 'email_domain']
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 get_reserved_domain_existence" % 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 `get_reserved_domain_existence`")
# verify the required parameter 'email_domain' is set
if ('email_domain' not in params) or (params['email_domain'] is None):
raise ValueError("Missing the required parameter `email_domain` when calling `get_reserved_domain_existence`")


collection_formats = {}

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

query_params = {}
if 'email_domain' in params:
query_params['email_domain'] = params['email_domain']

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# 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, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ReservedDomainExistence',
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 get_supported_languages(self, account_id, **kwargs):
"""
Gets list of supported languages for recipient language setting.
Expand Down Expand Up @@ -5976,6 +5868,7 @@ def update_brand(self, account_id, brand_id, **kwargs):
for asynchronous request. (optional)
:param str account_id: The external account number (int) or account ID Guid. (required)
:param str brand_id: The unique identifier of a brand. (required)
:param str replace_brand:
:param Brand brand:
:return: Brand
If the method is called asynchronously,
Expand Down Expand Up @@ -6003,13 +5896,14 @@ def update_brand_with_http_info(self, account_id, brand_id, **kwargs):
for asynchronous request. (optional)
:param str account_id: The external account number (int) or account ID Guid. (required)
:param str brand_id: The unique identifier of a brand. (required)
:param str replace_brand:
:param Brand brand:
:return: Brand
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['account_id', 'brand_id', 'brand']
all_params = ['account_id', 'brand_id', 'replace_brand', 'brand']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
Expand Down Expand Up @@ -6042,6 +5936,8 @@ def update_brand_with_http_info(self, account_id, brand_id, **kwargs):
path_params['brandId'] = params['brand_id']

query_params = {}
if 'replace_brand' in params:
query_params['replace_brand'] = params['replace_brand']

header_params = {}

Expand Down
12 changes: 6 additions & 6 deletions docusign_esign/apis/envelopes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ def create_recipient_proof_file_link(self, account_id, envelope_id, recipient_id
:param str account_id: The external account number (int) or account ID Guid. (required)
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
:param str recipient_id: The ID of the recipient being accessed. (required)
:return: ProofServiceViewLink
:return: IdEvidenceViewLink
If the method is called asynchronously,
returns the request thread.
"""
Expand All @@ -2268,7 +2268,7 @@ def create_recipient_proof_file_link_with_http_info(self, account_id, envelope_i
:param str account_id: The external account number (int) or account ID Guid. (required)
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
:param str recipient_id: The ID of the recipient being accessed. (required)
:return: ProofServiceViewLink
:return: IdEvidenceViewLink
If the method is called asynchronously,
returns the request thread.
"""
Expand Down Expand Up @@ -2332,7 +2332,7 @@ def create_recipient_proof_file_link_with_http_info(self, account_id, envelope_i
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ProofServiceViewLink',
response_type='IdEvidenceViewLink',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
Expand All @@ -2357,7 +2357,7 @@ def create_recipient_proof_file_resource_token(self, account_id, envelope_id, re
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
:param str recipient_id: The ID of the recipient being accessed. (required)
:param str token_scopes: (required)
:return: ProofServiceResourceToken
:return: IdEvidenceResourceToken
If the method is called asynchronously,
returns the request thread.
"""
Expand Down Expand Up @@ -2385,7 +2385,7 @@ def create_recipient_proof_file_resource_token_with_http_info(self, account_id,
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
:param str recipient_id: The ID of the recipient being accessed. (required)
:param str token_scopes: (required)
:return: ProofServiceResourceToken
:return: IdEvidenceResourceToken
If the method is called asynchronously,
returns the request thread.
"""
Expand Down Expand Up @@ -2454,7 +2454,7 @@ def create_recipient_proof_file_resource_token_with_http_info(self, account_id,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ProofServiceResourceToken',
response_type='IdEvidenceResourceToken',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
Expand Down
2 changes: 1 addition & 1 deletion docusign_esign/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def request_jwt_user_token(self, client_id, user_id, oauth_host_name, private_ke
later = now + (expires_in * 1)
claim = {"iss": client_id, "sub": user_id, "aud": oauth_host_name, "iat": now, "exp": later,
"scope": " ".join(scopes)}
token = jwt.encode(payload=claim, key=private_key_bytes, algorithm='RS256').decode("utf-8")
token = jwt.encode(payload=claim, key=private_key_bytes, algorithm='RS256')
response = self.request("POST", "https://" + oauth_host_name + "/oauth/token",
headers=self.sanitize_for_serialization(
{"Content-Type": "application/x-www-form-urlencoded"}),
Expand Down
6 changes: 3 additions & 3 deletions docusign_esign/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@
from docusign_esign.models.id_check_configuration import IdCheckConfiguration
from docusign_esign.models.id_check_information_input import IdCheckInformationInput
from docusign_esign.models.id_check_security_step import IdCheckSecurityStep
from docusign_esign.models.id_evidence_resource_token import IdEvidenceResourceToken
from docusign_esign.models.id_evidence_view_link import IdEvidenceViewLink
from docusign_esign.models.in_person_signer import InPersonSigner
from docusign_esign.models.initial_here import InitialHere
from docusign_esign.models.inline_template import InlineTemplate
Expand Down Expand Up @@ -327,6 +329,7 @@
from docusign_esign.models.page import Page
from docusign_esign.models.page_images import PageImages
from docusign_esign.models.page_request import PageRequest
from docusign_esign.models.participant import Participant
from docusign_esign.models.path_extended_element import PathExtendedElement
from docusign_esign.models.pay_pal_legacy_settings import PayPalLegacySettings
from docusign_esign.models.payment_details import PaymentDetails
Expand All @@ -353,8 +356,6 @@
from docusign_esign.models.power_forms_response import PowerFormsResponse
from docusign_esign.models.prefill_form_data import PrefillFormData
from docusign_esign.models.prefill_tabs import PrefillTabs
from docusign_esign.models.proof_service_resource_token import ProofServiceResourceToken
from docusign_esign.models.proof_service_view_link import ProofServiceViewLink
from docusign_esign.models.property_metadata import PropertyMetadata
from docusign_esign.models.province import Province
from docusign_esign.models.provisioning_information import ProvisioningInformation
Expand Down Expand Up @@ -390,7 +391,6 @@
from docusign_esign.models.recipients_update_summary import RecipientsUpdateSummary
from docusign_esign.models.referral_information import ReferralInformation
from docusign_esign.models.reminders import Reminders
from docusign_esign.models.reserved_domain_existence import ReservedDomainExistence
from docusign_esign.models.resource_information import ResourceInformation
from docusign_esign.models.return_url_request import ReturnUrlRequest
from docusign_esign.models.scheduled_sending import ScheduledSending
Expand Down
Loading

0 comments on commit d9ac9fc

Please sign in to comment.