From 4707c982c721881adda36ffbe0bff7182672378c Mon Sep 17 00:00:00 2001 From: Harsha Rahul Boggaram Date: Wed, 1 Jul 2020 15:12:23 -0700 Subject: [PATCH] Version 2.5.0rc1-v2-20.2.00 release (#76) Co-authored-by: automation --- CHANGELOG.md | 8 +- docusign_esign/apis/__init__.py | 1 + .../apis/trust_service_providers_api.py | 142 ++++++++++++++++++ setup.py | 2 +- 4 files changed, 149 insertions(+), 4 deletions(-) create mode 100644 docusign_esign/apis/trust_service_providers_api.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a916e50..49128712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for ### Added * 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. * Added `RecipientIdentityInputOption` and `input_options` to support Identity Verification workflows: Reserved for DocuSign. +### Deleted +* Deleted the GET methods for account seals providers, which returned the seals for an account. ## [2.3.0rc1] - eSignature API v2-20.1.00 - 2020-03-13 ### Changed @@ -33,9 +35,9 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for ## [2.1.0] - eSignature API v2-19.2.02 - 2019-10-09 ### Changed -* Updated the way the models and classes are initialized. Now using constructor parameters to initialize the classes. Updates to unit tests. +* Updated the way the models and classes are initialized. Now using constructor parameters to initialize the classes. Updates to unit tests. (DCM-1788) ### Fixed -* 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) +* 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) ## [2.1.0rc1] - eSignature API v2-19.2.02 - 2019-08-28 ### Changed @@ -99,4 +101,4 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for ## [1.0.0] - 2017-08-08 ### Added -- Initial commit of the new Python SDK for DocuSign API, automatically generated from OpenAPI specification. +- Initial commit of the new Python SDK for DocuSign API, automatically generated from OpenAPI specification. \ No newline at end of file diff --git a/docusign_esign/apis/__init__.py b/docusign_esign/apis/__init__.py index 04e18c62..7ed8cd0e 100644 --- a/docusign_esign/apis/__init__.py +++ b/docusign_esign/apis/__init__.py @@ -19,5 +19,6 @@ from .power_forms_api import PowerFormsApi from .signing_groups_api import SigningGroupsApi from .templates_api import TemplatesApi +from .trust_service_providers_api import TrustServiceProvidersApi from .users_api import UsersApi from .workspaces_api import WorkspacesApi diff --git a/docusign_esign/apis/trust_service_providers_api.py b/docusign_esign/apis/trust_service_providers_api.py new file mode 100644 index 00000000..c524c428 --- /dev/null +++ b/docusign_esign/apis/trust_service_providers_api.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + DocuSign REST API + + The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 + + OpenAPI spec version: v2 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..client.configuration import Configuration +from ..client.api_client import ApiClient + + +class TrustServiceProvidersApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_seal_providers(self, account_id, **kwargs): + """ + Returns Account available seals for specified account. + 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_seal_providers(account_id, 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) + :return: AccountSeals + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_seal_providers_with_http_info(account_id, **kwargs) + else: + (data) = self.get_seal_providers_with_http_info(account_id, **kwargs) + return data + + def get_seal_providers_with_http_info(self, account_id, **kwargs): + """ + Returns Account available seals for specified account. + 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_seal_providers_with_http_info(account_id, 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) + :return: AccountSeals + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id'] + 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_seal_providers" % 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_seal_providers`") + + + collection_formats = {} + + resource_path = '/v2/accounts/{accountId}/seals'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + + query_params = {} + + 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='AccountSeals', + 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) diff --git a/setup.py b/setup.py index 75810c5f..e1b5e812 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "docusign_esign" -VERSION = "2.4.0" +VERSION = "2.5.0rc1" # To install the library, run the following # # python setup.py install