diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cba17e6..6654f0ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ 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.14.0rc1] - eSignature API v2.1-21.4.01.00 - 2022-01-06 +### Changed +- Added support for version v2.1-21.4.01.00 of the DocuSign ESignature API. +- Updated the SDK release version. + ## [3.13.0] - ESignature API v2.1-21.4.00.00 - 2021-12-13 ### Changed - Added support for version v2.1-21.4.00.00 of the DocuSign ESignature API. diff --git a/docusign_esign/__init__.py b/docusign_esign/__init__.py index 9f09c548..4947605f 100644 --- a/docusign_esign/__init__.py +++ b/docusign_esign/__init__.py @@ -20,6 +20,8 @@ from .apis.authentication_api import AuthenticationApi from .apis.billing_api import BillingApi from .apis.bulk_envelopes_api import BulkEnvelopesApi +from .apis.bulk_process_data_api import BulkProcessDataApi +from .apis.bulk_process_data_send_api import BulkProcessDataSendApi from .apis.cloud_storage_api import CloudStorageApi from .apis.connect_api import ConnectApi from .apis.custom_tabs_api import CustomTabsApi @@ -130,6 +132,12 @@ from docusign_esign.models.brands_response import BrandsResponse from docusign_esign.models.bulk_envelope import BulkEnvelope from docusign_esign.models.bulk_envelope_status import BulkEnvelopeStatus +from docusign_esign.models.bulk_process_request import BulkProcessRequest +from docusign_esign.models.bulk_process_response import BulkProcessResponse +from docusign_esign.models.bulk_process_result import BulkProcessResult +from docusign_esign.models.bulk_processing_list_summaries import BulkProcessingListSummaries +from docusign_esign.models.bulk_processing_list_summary import BulkProcessingListSummary +from docusign_esign.models.bulk_processing_lists import BulkProcessingLists from docusign_esign.models.bulk_recipient import BulkRecipient from docusign_esign.models.bulk_recipient_signature_provider import BulkRecipientSignatureProvider from docusign_esign.models.bulk_recipient_tab_label import BulkRecipientTabLabel @@ -137,6 +145,7 @@ from docusign_esign.models.bulk_recipients_response import BulkRecipientsResponse from docusign_esign.models.bulk_recipients_summary_response import BulkRecipientsSummaryResponse from docusign_esign.models.bulk_recipients_update_response import BulkRecipientsUpdateResponse +from docusign_esign.models.bulk_send_batch_error import BulkSendBatchError from docusign_esign.models.bulk_send_batch_request import BulkSendBatchRequest from docusign_esign.models.bulk_send_batch_status import BulkSendBatchStatus from docusign_esign.models.bulk_send_batch_summaries import BulkSendBatchSummaries @@ -246,6 +255,7 @@ from docusign_esign.models.envelope_attachments_result import EnvelopeAttachmentsResult from docusign_esign.models.envelope_audit_event import EnvelopeAuditEvent from docusign_esign.models.envelope_audit_event_response import EnvelopeAuditEventResponse +from docusign_esign.models.envelope_custom_metadata import EnvelopeCustomMetadata from docusign_esign.models.envelope_definition import EnvelopeDefinition from docusign_esign.models.envelope_delay_rule_api_model import EnvelopeDelayRuleApiModel from docusign_esign.models.envelope_document import EnvelopeDocument diff --git a/docusign_esign/apis/__init__.py b/docusign_esign/apis/__init__.py index ac33fd4c..53585e54 100644 --- a/docusign_esign/apis/__init__.py +++ b/docusign_esign/apis/__init__.py @@ -7,6 +7,8 @@ from .authentication_api import AuthenticationApi from .billing_api import BillingApi from .bulk_envelopes_api import BulkEnvelopesApi +from .bulk_process_data_api import BulkProcessDataApi +from .bulk_process_data_send_api import BulkProcessDataSendApi from .cloud_storage_api import CloudStorageApi from .connect_api import ConnectApi from .custom_tabs_api import CustomTabsApi diff --git a/docusign_esign/apis/billing_api.py b/docusign_esign/apis/billing_api.py index eedf3025..8c861be5 100644 --- a/docusign_esign/apis/billing_api.py +++ b/docusign_esign/apis/billing_api.py @@ -584,6 +584,7 @@ def get_plan(self, account_id, **kwargs): :param str include_downgrade_information: :param str include_metadata: When set to **true**, the `canUpgrade` and `renewalStatus` properities are included the response and an array of `supportedCountries` property is added to the `billingAddress` information. :param str include_successor_plans: When set to **true**, excludes successor information from the response. + :param str include_tax_exempt_id: :return: AccountBillingPlanResponse If the method is called asynchronously, returns the request thread. @@ -614,12 +615,13 @@ def get_plan_with_http_info(self, account_id, **kwargs): :param str include_downgrade_information: :param str include_metadata: When set to **true**, the `canUpgrade` and `renewalStatus` properities are included the response and an array of `supportedCountries` property is added to the `billingAddress` information. :param str include_successor_plans: When set to **true**, excludes successor information from the response. + :param str include_tax_exempt_id: :return: AccountBillingPlanResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['account_id', 'include_credit_card_information', 'include_downgrade_information', 'include_metadata', 'include_successor_plans'] + all_params = ['account_id', 'include_credit_card_information', 'include_downgrade_information', 'include_metadata', 'include_successor_plans', 'include_tax_exempt_id'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -655,6 +657,8 @@ def get_plan_with_http_info(self, account_id, **kwargs): query_params['include_metadata'] = params['include_metadata'] if 'include_successor_plans' in params: query_params['include_successor_plans'] = params['include_successor_plans'] + if 'include_tax_exempt_id' in params: + query_params['include_tax_exempt_id'] = params['include_tax_exempt_id'] header_params = {} diff --git a/docusign_esign/apis/bulk_process_data_api.py b/docusign_esign/apis/bulk_process_data_api.py new file mode 100644 index 00000000..6957b40e --- /dev/null +++ b/docusign_esign/apis/bulk_process_data_api.py @@ -0,0 +1,833 @@ +# 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.1 + 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 BulkProcessDataApi(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 create_bulk_process_request(self, account_id, process_action, **kwargs): + """ + Uses the specified bulk envelopes list to update the envelopes specified in the payload + 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.create_bulk_process_request(account_id, process_action, 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 process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_bulk_process_request_with_http_info(account_id, process_action, **kwargs) + else: + (data) = self.create_bulk_process_request_with_http_info(account_id, process_action, **kwargs) + return data + + def create_bulk_process_request_with_http_info(self, account_id, process_action, **kwargs): + """ + Uses the specified bulk envelopes list to update the envelopes specified in the payload + 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.create_bulk_process_request_with_http_info(account_id, process_action, 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 process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'process_action'] + 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 create_bulk_process_request" % 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 `create_bulk_process_request`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `create_bulk_process_request`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + 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 create_bulk_process_request_to_queue(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Uses the specified bulk envelopes list to update the envelopes specified in the payload + 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.create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :param BulkProcessRequest bulk_process_request: + :return: BulkProcessResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def create_bulk_process_request_to_queue_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Uses the specified bulk envelopes list to update the envelopes specified in the payload + 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.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :param BulkProcessRequest bulk_process_request: + :return: BulkProcessResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action', 'bulk_process_request'] + 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 create_bulk_process_request_to_queue" % 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 `create_bulk_process_request_to_queue`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `create_bulk_process_request_to_queue`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `create_bulk_process_request_to_queue`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'bulk_process_request' in params: + body_params = params['bulk_process_request'] + # 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, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BulkProcessResponse', + 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 delete_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Deletes a specific bulk process list + 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.delete_bulk_process_list(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: BulkProcessResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def delete_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Deletes a specific bulk process list + 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.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: BulkProcessResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action'] + 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 delete_bulk_process_list" % 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 `delete_bulk_process_list`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `delete_bulk_process_list`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `delete_bulk_process_list`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BulkProcessResult', + 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 delete_bulk_process_lists(self, account_id, process_action, **kwargs): + """ + Deletes a specific bulk process list + 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.delete_bulk_process_lists(account_id, process_action, 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 process_action: (required) + :param BulkProcessingLists bulk_processing_lists: + :return: BulkProcessResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_bulk_process_lists_with_http_info(account_id, process_action, **kwargs) + else: + (data) = self.delete_bulk_process_lists_with_http_info(account_id, process_action, **kwargs) + return data + + def delete_bulk_process_lists_with_http_info(self, account_id, process_action, **kwargs): + """ + Deletes a specific bulk process list + 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.delete_bulk_process_lists_with_http_info(account_id, process_action, 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 process_action: (required) + :param BulkProcessingLists bulk_processing_lists: + :return: BulkProcessResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'process_action', 'bulk_processing_lists'] + 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 delete_bulk_process_lists" % 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 `delete_bulk_process_lists`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `delete_bulk_process_lists`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'bulk_processing_lists' in params: + body_params = params['bulk_processing_lists'] + # 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, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BulkProcessResult', + 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_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Gets a specific bulk process list + 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_bulk_process_list(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def get_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Gets a specific bulk process list + 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_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action'] + 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_bulk_process_list" % 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_bulk_process_list`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `get_bulk_process_list`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `get_bulk_process_list`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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=None, + 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_bulk_process_lists(self, account_id, process_action, **kwargs): + """ + Lists top-level details for all bulk process lists visible to the current user + 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_bulk_process_lists(account_id, process_action, 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 process_action: (required) + :return: BulkProcessingListSummaries + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_bulk_process_lists_with_http_info(account_id, process_action, **kwargs) + else: + (data) = self.get_bulk_process_lists_with_http_info(account_id, process_action, **kwargs) + return data + + def get_bulk_process_lists_with_http_info(self, account_id, process_action, **kwargs): + """ + Lists top-level details for all bulk process lists visible to the current user + 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_bulk_process_lists_with_http_info(account_id, process_action, 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 process_action: (required) + :return: BulkProcessingListSummaries + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'process_action'] + 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_bulk_process_lists" % 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_bulk_process_lists`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `get_bulk_process_lists`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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='BulkProcessingListSummaries', + 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 update_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Updates a specific bulk process list + 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.update_bulk_process_list(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def update_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Updates a specific bulk process list + 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.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action'] + 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 update_bulk_process_list" % 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 `update_bulk_process_list`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `update_bulk_process_list`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `update_bulk_process_list`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + 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/docusign_esign/apis/bulk_process_data_send_api.py b/docusign_esign/apis/bulk_process_data_send_api.py new file mode 100644 index 00000000..140edeab --- /dev/null +++ b/docusign_esign/apis/bulk_process_data_send_api.py @@ -0,0 +1,505 @@ +# 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.1 + 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 BulkProcessDataSendApi(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 create_bulk_process_request_to_queue(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Uses the specified bulk envelopes list to update the envelopes specified in the payload + 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.create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :param BulkProcessRequest bulk_process_request: + :return: BulkProcessResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def create_bulk_process_request_to_queue_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Uses the specified bulk envelopes list to update the envelopes specified in the payload + 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.create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :param BulkProcessRequest bulk_process_request: + :return: BulkProcessResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action', 'bulk_process_request'] + 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 create_bulk_process_request_to_queue" % 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 `create_bulk_process_request_to_queue`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `create_bulk_process_request_to_queue`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `create_bulk_process_request_to_queue`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'bulk_process_request' in params: + body_params = params['bulk_process_request'] + # 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, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BulkProcessResponse', + 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 delete_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Deletes a specific bulk process list + 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.delete_bulk_process_list(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: BulkProcessResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def delete_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Deletes a specific bulk process list + 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.delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: BulkProcessResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action'] + 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 delete_bulk_process_list" % 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 `delete_bulk_process_list`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `delete_bulk_process_list`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `delete_bulk_process_list`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BulkProcessResult', + 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_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Gets a specific bulk process list + 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_bulk_process_list(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def get_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Gets a specific bulk process list + 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_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action'] + 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_bulk_process_list" % 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_bulk_process_list`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `get_bulk_process_list`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `get_bulk_process_list`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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=None, + 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 update_bulk_process_list(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Updates a specific bulk process list + 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.update_bulk_process_list(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + else: + (data) = self.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, **kwargs) + return data + + def update_bulk_process_list_with_http_info(self, account_id, bulk_process_list_id, process_action, **kwargs): + """ + Updates a specific bulk process list + 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.update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action, 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 bulk_process_list_id: (required) + :param str process_action: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['account_id', 'bulk_process_list_id', 'process_action'] + 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 update_bulk_process_list" % 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 `update_bulk_process_list`") + # verify the required parameter 'bulk_process_list_id' is set + if ('bulk_process_list_id' not in params) or (params['bulk_process_list_id'] is None): + raise ValueError("Missing the required parameter `bulk_process_list_id` when calling `update_bulk_process_list`") + # verify the required parameter 'process_action' is set + if ('process_action' not in params) or (params['process_action'] is None): + raise ValueError("Missing the required parameter `process_action` when calling `update_bulk_process_list`") + + + collection_formats = {} + + resource_path = '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send'.replace('{format}', 'json') + path_params = {} + if 'account_id' in params: + path_params['accountId'] = params['account_id'] + if 'bulk_process_list_id' in params: + path_params['bulkProcessListId'] = params['bulk_process_list_id'] + if 'process_action' in params: + path_params['processAction'] = params['process_action'] + + 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, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + 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/docusign_esign/models/__init__.py b/docusign_esign/models/__init__.py index 0dba5797..dcc2b340 100644 --- a/docusign_esign/models/__init__.py +++ b/docusign_esign/models/__init__.py @@ -96,6 +96,12 @@ from docusign_esign.models.brands_response import BrandsResponse from docusign_esign.models.bulk_envelope import BulkEnvelope from docusign_esign.models.bulk_envelope_status import BulkEnvelopeStatus +from docusign_esign.models.bulk_process_request import BulkProcessRequest +from docusign_esign.models.bulk_process_response import BulkProcessResponse +from docusign_esign.models.bulk_process_result import BulkProcessResult +from docusign_esign.models.bulk_processing_list_summaries import BulkProcessingListSummaries +from docusign_esign.models.bulk_processing_list_summary import BulkProcessingListSummary +from docusign_esign.models.bulk_processing_lists import BulkProcessingLists from docusign_esign.models.bulk_recipient import BulkRecipient from docusign_esign.models.bulk_recipient_signature_provider import BulkRecipientSignatureProvider from docusign_esign.models.bulk_recipient_tab_label import BulkRecipientTabLabel @@ -103,6 +109,7 @@ from docusign_esign.models.bulk_recipients_response import BulkRecipientsResponse from docusign_esign.models.bulk_recipients_summary_response import BulkRecipientsSummaryResponse from docusign_esign.models.bulk_recipients_update_response import BulkRecipientsUpdateResponse +from docusign_esign.models.bulk_send_batch_error import BulkSendBatchError from docusign_esign.models.bulk_send_batch_request import BulkSendBatchRequest from docusign_esign.models.bulk_send_batch_status import BulkSendBatchStatus from docusign_esign.models.bulk_send_batch_summaries import BulkSendBatchSummaries @@ -212,6 +219,7 @@ from docusign_esign.models.envelope_attachments_result import EnvelopeAttachmentsResult from docusign_esign.models.envelope_audit_event import EnvelopeAuditEvent from docusign_esign.models.envelope_audit_event_response import EnvelopeAuditEventResponse +from docusign_esign.models.envelope_custom_metadata import EnvelopeCustomMetadata from docusign_esign.models.envelope_definition import EnvelopeDefinition from docusign_esign.models.envelope_delay_rule_api_model import EnvelopeDelayRuleApiModel from docusign_esign.models.envelope_document import EnvelopeDocument diff --git a/docusign_esign/models/account_billing_plan.py b/docusign_esign/models/account_billing_plan.py index 3199e3eb..a567fd4a 100644 --- a/docusign_esign/models/account_billing_plan.py +++ b/docusign_esign/models/account_billing_plan.py @@ -60,7 +60,8 @@ class AccountBillingPlan(object): 'seat_discounts': 'list[SeatDiscount]', 'subscription_start_date': 'str', 'support_incident_fee': 'str', - 'support_plan_fee': 'str' + 'support_plan_fee': 'str', + 'tax_exempt_id': 'str' } attribute_map = { @@ -91,7 +92,8 @@ class AccountBillingPlan(object): 'seat_discounts': 'seatDiscounts', 'subscription_start_date': 'subscriptionStartDate', 'support_incident_fee': 'supportIncidentFee', - 'support_plan_fee': 'supportPlanFee' + 'support_plan_fee': 'supportPlanFee', + 'tax_exempt_id': 'taxExemptId' } def __init__(self, _configuration=None, **kwargs): # noqa: E501 @@ -128,6 +130,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._subscription_start_date = None self._support_incident_fee = None self._support_plan_fee = None + self._tax_exempt_id = None self.discriminator = None setattr(self, "_{}".format('add_ons'), kwargs.get('add_ons', None)) @@ -158,6 +161,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('subscription_start_date'), kwargs.get('subscription_start_date', None)) setattr(self, "_{}".format('support_incident_fee'), kwargs.get('support_incident_fee', None)) setattr(self, "_{}".format('support_plan_fee'), kwargs.get('support_plan_fee', None)) + setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) @property def add_ons(self): @@ -801,6 +805,29 @@ def support_plan_fee(self, support_plan_fee): self._support_plan_fee = support_plan_fee + @property + def tax_exempt_id(self): + """Gets the tax_exempt_id of this AccountBillingPlan. # noqa: E501 + + # noqa: E501 + + :return: The tax_exempt_id of this AccountBillingPlan. # noqa: E501 + :rtype: str + """ + return self._tax_exempt_id + + @tax_exempt_id.setter + def tax_exempt_id(self, tax_exempt_id): + """Sets the tax_exempt_id of this AccountBillingPlan. + + # noqa: E501 + + :param tax_exempt_id: The tax_exempt_id of this AccountBillingPlan. # noqa: E501 + :type: str + """ + + self._tax_exempt_id = tax_exempt_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/docusign_esign/models/account_billing_plan_response.py b/docusign_esign/models/account_billing_plan_response.py index e0e00af9..e58b4dfe 100644 --- a/docusign_esign/models/account_billing_plan_response.py +++ b/docusign_esign/models/account_billing_plan_response.py @@ -44,7 +44,8 @@ class AccountBillingPlanResponse(object): 'payment_method': 'str', 'payment_processor_information': 'PaymentProcessorInformation', 'referral_information': 'ReferralInformation', - 'successor_plans': 'list[BillingPlan]' + 'successor_plans': 'list[BillingPlan]', + 'tax_exempt_id': 'str' } attribute_map = { @@ -59,7 +60,8 @@ class AccountBillingPlanResponse(object): 'payment_method': 'paymentMethod', 'payment_processor_information': 'paymentProcessorInformation', 'referral_information': 'referralInformation', - 'successor_plans': 'successorPlans' + 'successor_plans': 'successorPlans', + 'tax_exempt_id': 'taxExemptId' } def __init__(self, _configuration=None, **kwargs): # noqa: E501 @@ -80,6 +82,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._payment_processor_information = None self._referral_information = None self._successor_plans = None + self._tax_exempt_id = None self.discriminator = None setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None)) @@ -94,6 +97,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None)) + setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) @property def billing_address(self): @@ -353,6 +357,29 @@ def successor_plans(self, successor_plans): self._successor_plans = successor_plans + @property + def tax_exempt_id(self): + """Gets the tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 + + # noqa: E501 + + :return: The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 + :rtype: str + """ + return self._tax_exempt_id + + @tax_exempt_id.setter + def tax_exempt_id(self, tax_exempt_id): + """Sets the tax_exempt_id of this AccountBillingPlanResponse. + + # noqa: E501 + + :param tax_exempt_id: The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 + :type: str + """ + + self._tax_exempt_id = tax_exempt_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/docusign_esign/models/account_settings_information.py b/docusign_esign/models/account_settings_information.py index a0a7954d..90a56248 100644 --- a/docusign_esign/models/account_settings_information.py +++ b/docusign_esign/models/account_settings_information.py @@ -74,6 +74,8 @@ class AccountSettingsInformation(object): 'allow_consumer_disclosure_override_metadata': 'SettingsMetadata', 'allow_data_download': 'str', 'allow_data_download_metadata': 'SettingsMetadata', + 'allow_delayed_routing': 'str', + 'allow_delayed_routing_metadata': 'SettingsMetadata', 'allow_delegated_signing': 'str', 'allow_delegated_signing_metadata': 'SettingsMetadata', 'allow_document_disclosures': 'str', @@ -166,6 +168,8 @@ class AccountSettingsInformation(object): 'allow_resource_file_branding_metadata': 'SettingsMetadata', 'allow_safe_bio_pharma_signer_certificate': 'str', 'allow_safe_bio_pharma_signer_certificate_metadata': 'SettingsMetadata', + 'allow_scheduled_sending': 'str', + 'allow_scheduled_sending_metadata': 'SettingsMetadata', 'allow_security_appliance': 'str', 'allow_security_appliance_metadata': 'SettingsMetadata', 'allow_send_to_certified_delivery': 'str', @@ -661,6 +665,8 @@ class AccountSettingsInformation(object): 'allow_consumer_disclosure_override_metadata': 'allowConsumerDisclosureOverrideMetadata', 'allow_data_download': 'allowDataDownload', 'allow_data_download_metadata': 'allowDataDownloadMetadata', + 'allow_delayed_routing': 'allowDelayedRouting', + 'allow_delayed_routing_metadata': 'allowDelayedRoutingMetadata', 'allow_delegated_signing': 'allowDelegatedSigning', 'allow_delegated_signing_metadata': 'allowDelegatedSigningMetadata', 'allow_document_disclosures': 'allowDocumentDisclosures', @@ -753,6 +759,8 @@ class AccountSettingsInformation(object): 'allow_resource_file_branding_metadata': 'allowResourceFileBrandingMetadata', 'allow_safe_bio_pharma_signer_certificate': 'allowSafeBioPharmaSignerCertificate', 'allow_safe_bio_pharma_signer_certificate_metadata': 'allowSafeBioPharmaSignerCertificateMetadata', + 'allow_scheduled_sending': 'allowScheduledSending', + 'allow_scheduled_sending_metadata': 'allowScheduledSendingMetadata', 'allow_security_appliance': 'allowSecurityAppliance', 'allow_security_appliance_metadata': 'allowSecurityApplianceMetadata', 'allow_send_to_certified_delivery': 'allowSendToCertifiedDelivery', @@ -1253,6 +1261,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._allow_consumer_disclosure_override_metadata = None self._allow_data_download = None self._allow_data_download_metadata = None + self._allow_delayed_routing = None + self._allow_delayed_routing_metadata = None self._allow_delegated_signing = None self._allow_delegated_signing_metadata = None self._allow_document_disclosures = None @@ -1345,6 +1355,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._allow_resource_file_branding_metadata = None self._allow_safe_bio_pharma_signer_certificate = None self._allow_safe_bio_pharma_signer_certificate_metadata = None + self._allow_scheduled_sending = None + self._allow_scheduled_sending_metadata = None self._allow_security_appliance = None self._allow_security_appliance_metadata = None self._allow_send_to_certified_delivery = None @@ -1839,6 +1851,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('allow_consumer_disclosure_override_metadata'), kwargs.get('allow_consumer_disclosure_override_metadata', None)) setattr(self, "_{}".format('allow_data_download'), kwargs.get('allow_data_download', None)) setattr(self, "_{}".format('allow_data_download_metadata'), kwargs.get('allow_data_download_metadata', None)) + setattr(self, "_{}".format('allow_delayed_routing'), kwargs.get('allow_delayed_routing', None)) + setattr(self, "_{}".format('allow_delayed_routing_metadata'), kwargs.get('allow_delayed_routing_metadata', None)) setattr(self, "_{}".format('allow_delegated_signing'), kwargs.get('allow_delegated_signing', None)) setattr(self, "_{}".format('allow_delegated_signing_metadata'), kwargs.get('allow_delegated_signing_metadata', None)) setattr(self, "_{}".format('allow_document_disclosures'), kwargs.get('allow_document_disclosures', None)) @@ -1931,6 +1945,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('allow_resource_file_branding_metadata'), kwargs.get('allow_resource_file_branding_metadata', None)) setattr(self, "_{}".format('allow_safe_bio_pharma_signer_certificate'), kwargs.get('allow_safe_bio_pharma_signer_certificate', None)) setattr(self, "_{}".format('allow_safe_bio_pharma_signer_certificate_metadata'), kwargs.get('allow_safe_bio_pharma_signer_certificate_metadata', None)) + setattr(self, "_{}".format('allow_scheduled_sending'), kwargs.get('allow_scheduled_sending', None)) + setattr(self, "_{}".format('allow_scheduled_sending_metadata'), kwargs.get('allow_scheduled_sending_metadata', None)) setattr(self, "_{}".format('allow_security_appliance'), kwargs.get('allow_security_appliance', None)) setattr(self, "_{}".format('allow_security_appliance_metadata'), kwargs.get('allow_security_appliance_metadata', None)) setattr(self, "_{}".format('allow_send_to_certified_delivery'), kwargs.get('allow_send_to_certified_delivery', None)) @@ -3284,6 +3300,50 @@ def allow_data_download_metadata(self, allow_data_download_metadata): self._allow_data_download_metadata = allow_data_download_metadata + @property + def allow_delayed_routing(self): + """Gets the allow_delayed_routing of this AccountSettingsInformation. # noqa: E501 + + # noqa: E501 + + :return: The allow_delayed_routing of this AccountSettingsInformation. # noqa: E501 + :rtype: str + """ + return self._allow_delayed_routing + + @allow_delayed_routing.setter + def allow_delayed_routing(self, allow_delayed_routing): + """Sets the allow_delayed_routing of this AccountSettingsInformation. + + # noqa: E501 + + :param allow_delayed_routing: The allow_delayed_routing of this AccountSettingsInformation. # noqa: E501 + :type: str + """ + + self._allow_delayed_routing = allow_delayed_routing + + @property + def allow_delayed_routing_metadata(self): + """Gets the allow_delayed_routing_metadata of this AccountSettingsInformation. # noqa: E501 + + + :return: The allow_delayed_routing_metadata of this AccountSettingsInformation. # noqa: E501 + :rtype: SettingsMetadata + """ + return self._allow_delayed_routing_metadata + + @allow_delayed_routing_metadata.setter + def allow_delayed_routing_metadata(self, allow_delayed_routing_metadata): + """Sets the allow_delayed_routing_metadata of this AccountSettingsInformation. + + + :param allow_delayed_routing_metadata: The allow_delayed_routing_metadata of this AccountSettingsInformation. # noqa: E501 + :type: SettingsMetadata + """ + + self._allow_delayed_routing_metadata = allow_delayed_routing_metadata + @property def allow_delegated_signing(self): """Gets the allow_delegated_signing of this AccountSettingsInformation. # noqa: E501 @@ -5308,6 +5368,50 @@ def allow_safe_bio_pharma_signer_certificate_metadata(self, allow_safe_bio_pharm self._allow_safe_bio_pharma_signer_certificate_metadata = allow_safe_bio_pharma_signer_certificate_metadata + @property + def allow_scheduled_sending(self): + """Gets the allow_scheduled_sending of this AccountSettingsInformation. # noqa: E501 + + # noqa: E501 + + :return: The allow_scheduled_sending of this AccountSettingsInformation. # noqa: E501 + :rtype: str + """ + return self._allow_scheduled_sending + + @allow_scheduled_sending.setter + def allow_scheduled_sending(self, allow_scheduled_sending): + """Sets the allow_scheduled_sending of this AccountSettingsInformation. + + # noqa: E501 + + :param allow_scheduled_sending: The allow_scheduled_sending of this AccountSettingsInformation. # noqa: E501 + :type: str + """ + + self._allow_scheduled_sending = allow_scheduled_sending + + @property + def allow_scheduled_sending_metadata(self): + """Gets the allow_scheduled_sending_metadata of this AccountSettingsInformation. # noqa: E501 + + + :return: The allow_scheduled_sending_metadata of this AccountSettingsInformation. # noqa: E501 + :rtype: SettingsMetadata + """ + return self._allow_scheduled_sending_metadata + + @allow_scheduled_sending_metadata.setter + def allow_scheduled_sending_metadata(self, allow_scheduled_sending_metadata): + """Sets the allow_scheduled_sending_metadata of this AccountSettingsInformation. + + + :param allow_scheduled_sending_metadata: The allow_scheduled_sending_metadata of this AccountSettingsInformation. # noqa: E501 + :type: SettingsMetadata + """ + + self._allow_scheduled_sending_metadata = allow_scheduled_sending_metadata + @property def allow_security_appliance(self): """Gets the allow_security_appliance of this AccountSettingsInformation. # noqa: E501 diff --git a/docusign_esign/models/billing_plan_information.py b/docusign_esign/models/billing_plan_information.py index b4a012c2..c090643a 100644 --- a/docusign_esign/models/billing_plan_information.py +++ b/docusign_esign/models/billing_plan_information.py @@ -50,7 +50,8 @@ class BillingPlanInformation(object): 'sale_discount_fixed_amount': 'str', 'sale_discount_percent': 'str', 'sale_discount_periods': 'str', - 'sale_discount_seat_price_override': 'str' + 'sale_discount_seat_price_override': 'str', + 'tax_exempt_id': 'str' } attribute_map = { @@ -71,7 +72,8 @@ class BillingPlanInformation(object): 'sale_discount_fixed_amount': 'saleDiscountFixedAmount', 'sale_discount_percent': 'saleDiscountPercent', 'sale_discount_periods': 'saleDiscountPeriods', - 'sale_discount_seat_price_override': 'saleDiscountSeatPriceOverride' + 'sale_discount_seat_price_override': 'saleDiscountSeatPriceOverride', + 'tax_exempt_id': 'taxExemptId' } def __init__(self, _configuration=None, **kwargs): # noqa: E501 @@ -98,6 +100,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._sale_discount_percent = None self._sale_discount_periods = None self._sale_discount_seat_price_override = None + self._tax_exempt_id = None self.discriminator = None setattr(self, "_{}".format('app_store_receipt'), kwargs.get('app_store_receipt', None)) @@ -118,6 +121,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('sale_discount_percent'), kwargs.get('sale_discount_percent', None)) setattr(self, "_{}".format('sale_discount_periods'), kwargs.get('sale_discount_periods', None)) setattr(self, "_{}".format('sale_discount_seat_price_override'), kwargs.get('sale_discount_seat_price_override', None)) + setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) @property def app_store_receipt(self): @@ -519,6 +523,29 @@ def sale_discount_seat_price_override(self, sale_discount_seat_price_override): self._sale_discount_seat_price_override = sale_discount_seat_price_override + @property + def tax_exempt_id(self): + """Gets the tax_exempt_id of this BillingPlanInformation. # noqa: E501 + + # noqa: E501 + + :return: The tax_exempt_id of this BillingPlanInformation. # noqa: E501 + :rtype: str + """ + return self._tax_exempt_id + + @tax_exempt_id.setter + def tax_exempt_id(self, tax_exempt_id): + """Sets the tax_exempt_id of this BillingPlanInformation. + + # noqa: E501 + + :param tax_exempt_id: The tax_exempt_id of this BillingPlanInformation. # noqa: E501 + :type: str + """ + + self._tax_exempt_id = tax_exempt_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/docusign_esign/models/bulk_process_request.py b/docusign_esign/models/bulk_process_request.py new file mode 100644 index 00000000..41f98dde --- /dev/null +++ b/docusign_esign/models/bulk_process_request.py @@ -0,0 +1,151 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkProcessRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'batch_name': 'str', + 'envelope_or_template_id': 'str' + } + + attribute_map = { + 'batch_name': 'batchName', + 'envelope_or_template_id': 'envelopeOrTemplateId' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkProcessRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._batch_name = None + self._envelope_or_template_id = None + self.discriminator = None + + setattr(self, "_{}".format('batch_name'), kwargs.get('batch_name', None)) + setattr(self, "_{}".format('envelope_or_template_id'), kwargs.get('envelope_or_template_id', None)) + + @property + def batch_name(self): + """Gets the batch_name of this BulkProcessRequest. # noqa: E501 + + # noqa: E501 + + :return: The batch_name of this BulkProcessRequest. # noqa: E501 + :rtype: str + """ + return self._batch_name + + @batch_name.setter + def batch_name(self, batch_name): + """Sets the batch_name of this BulkProcessRequest. + + # noqa: E501 + + :param batch_name: The batch_name of this BulkProcessRequest. # noqa: E501 + :type: str + """ + + self._batch_name = batch_name + + @property + def envelope_or_template_id(self): + """Gets the envelope_or_template_id of this BulkProcessRequest. # noqa: E501 + + # noqa: E501 + + :return: The envelope_or_template_id of this BulkProcessRequest. # noqa: E501 + :rtype: str + """ + return self._envelope_or_template_id + + @envelope_or_template_id.setter + def envelope_or_template_id(self, envelope_or_template_id): + """Sets the envelope_or_template_id of this BulkProcessRequest. + + # noqa: E501 + + :param envelope_or_template_id: The envelope_or_template_id of this BulkProcessRequest. # noqa: E501 + :type: str + """ + + self._envelope_or_template_id = envelope_or_template_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkProcessRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkProcessRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkProcessRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_process_response.py b/docusign_esign/models/bulk_process_response.py new file mode 100644 index 00000000..49b28d0c --- /dev/null +++ b/docusign_esign/models/bulk_process_response.py @@ -0,0 +1,286 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkProcessResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'batch_id': 'str', + 'batch_name': 'str', + 'batch_size': 'str', + 'error_details': 'list[str]', + 'errors': 'list[str]', + 'queue_limit': 'str', + 'total_queued': 'str' + } + + attribute_map = { + 'batch_id': 'batchId', + 'batch_name': 'batchName', + 'batch_size': 'batchSize', + 'error_details': 'errorDetails', + 'errors': 'errors', + 'queue_limit': 'queueLimit', + 'total_queued': 'totalQueued' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkProcessResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._batch_id = None + self._batch_name = None + self._batch_size = None + self._error_details = None + self._errors = None + self._queue_limit = None + self._total_queued = None + self.discriminator = None + + setattr(self, "_{}".format('batch_id'), kwargs.get('batch_id', None)) + setattr(self, "_{}".format('batch_name'), kwargs.get('batch_name', None)) + setattr(self, "_{}".format('batch_size'), kwargs.get('batch_size', None)) + setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) + setattr(self, "_{}".format('errors'), kwargs.get('errors', None)) + setattr(self, "_{}".format('queue_limit'), kwargs.get('queue_limit', None)) + setattr(self, "_{}".format('total_queued'), kwargs.get('total_queued', None)) + + @property + def batch_id(self): + """Gets the batch_id of this BulkProcessResponse. # noqa: E501 + + # noqa: E501 + + :return: The batch_id of this BulkProcessResponse. # noqa: E501 + :rtype: str + """ + return self._batch_id + + @batch_id.setter + def batch_id(self, batch_id): + """Sets the batch_id of this BulkProcessResponse. + + # noqa: E501 + + :param batch_id: The batch_id of this BulkProcessResponse. # noqa: E501 + :type: str + """ + + self._batch_id = batch_id + + @property + def batch_name(self): + """Gets the batch_name of this BulkProcessResponse. # noqa: E501 + + # noqa: E501 + + :return: The batch_name of this BulkProcessResponse. # noqa: E501 + :rtype: str + """ + return self._batch_name + + @batch_name.setter + def batch_name(self, batch_name): + """Sets the batch_name of this BulkProcessResponse. + + # noqa: E501 + + :param batch_name: The batch_name of this BulkProcessResponse. # noqa: E501 + :type: str + """ + + self._batch_name = batch_name + + @property + def batch_size(self): + """Gets the batch_size of this BulkProcessResponse. # noqa: E501 + + # noqa: E501 + + :return: The batch_size of this BulkProcessResponse. # noqa: E501 + :rtype: str + """ + return self._batch_size + + @batch_size.setter + def batch_size(self, batch_size): + """Sets the batch_size of this BulkProcessResponse. + + # noqa: E501 + + :param batch_size: The batch_size of this BulkProcessResponse. # noqa: E501 + :type: str + """ + + self._batch_size = batch_size + + @property + def error_details(self): + """Gets the error_details of this BulkProcessResponse. # noqa: E501 + + Array or errors. # noqa: E501 + + :return: The error_details of this BulkProcessResponse. # noqa: E501 + :rtype: list[str] + """ + return self._error_details + + @error_details.setter + def error_details(self, error_details): + """Sets the error_details of this BulkProcessResponse. + + Array or errors. # noqa: E501 + + :param error_details: The error_details of this BulkProcessResponse. # noqa: E501 + :type: list[str] + """ + + self._error_details = error_details + + @property + def errors(self): + """Gets the errors of this BulkProcessResponse. # noqa: E501 + + # noqa: E501 + + :return: The errors of this BulkProcessResponse. # noqa: E501 + :rtype: list[str] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this BulkProcessResponse. + + # noqa: E501 + + :param errors: The errors of this BulkProcessResponse. # noqa: E501 + :type: list[str] + """ + + self._errors = errors + + @property + def queue_limit(self): + """Gets the queue_limit of this BulkProcessResponse. # noqa: E501 + + # noqa: E501 + + :return: The queue_limit of this BulkProcessResponse. # noqa: E501 + :rtype: str + """ + return self._queue_limit + + @queue_limit.setter + def queue_limit(self, queue_limit): + """Sets the queue_limit of this BulkProcessResponse. + + # noqa: E501 + + :param queue_limit: The queue_limit of this BulkProcessResponse. # noqa: E501 + :type: str + """ + + self._queue_limit = queue_limit + + @property + def total_queued(self): + """Gets the total_queued of this BulkProcessResponse. # noqa: E501 + + # noqa: E501 + + :return: The total_queued of this BulkProcessResponse. # noqa: E501 + :rtype: str + """ + return self._total_queued + + @total_queued.setter + def total_queued(self, total_queued): + """Sets the total_queued of this BulkProcessResponse. + + # noqa: E501 + + :param total_queued: The total_queued of this BulkProcessResponse. # noqa: E501 + :type: str + """ + + self._total_queued = total_queued + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkProcessResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkProcessResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkProcessResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_process_result.py b/docusign_esign/models/bulk_process_result.py new file mode 100644 index 00000000..70392a20 --- /dev/null +++ b/docusign_esign/models/bulk_process_result.py @@ -0,0 +1,178 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkProcessResult(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'errors': 'list[BulkSendBatchError]', + 'list_id': 'str', + 'success': 'str' + } + + attribute_map = { + 'errors': 'errors', + 'list_id': 'listId', + 'success': 'success' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkProcessResult - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._errors = None + self._list_id = None + self._success = None + self.discriminator = None + + setattr(self, "_{}".format('errors'), kwargs.get('errors', None)) + setattr(self, "_{}".format('list_id'), kwargs.get('list_id', None)) + setattr(self, "_{}".format('success'), kwargs.get('success', None)) + + @property + def errors(self): + """Gets the errors of this BulkProcessResult. # noqa: E501 + + # noqa: E501 + + :return: The errors of this BulkProcessResult. # noqa: E501 + :rtype: list[BulkSendBatchError] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this BulkProcessResult. + + # noqa: E501 + + :param errors: The errors of this BulkProcessResult. # noqa: E501 + :type: list[BulkSendBatchError] + """ + + self._errors = errors + + @property + def list_id(self): + """Gets the list_id of this BulkProcessResult. # noqa: E501 + + # noqa: E501 + + :return: The list_id of this BulkProcessResult. # noqa: E501 + :rtype: str + """ + return self._list_id + + @list_id.setter + def list_id(self, list_id): + """Sets the list_id of this BulkProcessResult. + + # noqa: E501 + + :param list_id: The list_id of this BulkProcessResult. # noqa: E501 + :type: str + """ + + self._list_id = list_id + + @property + def success(self): + """Gets the success of this BulkProcessResult. # noqa: E501 + + # noqa: E501 + + :return: The success of this BulkProcessResult. # noqa: E501 + :rtype: str + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this BulkProcessResult. + + # noqa: E501 + + :param success: The success of this BulkProcessResult. # noqa: E501 + :type: str + """ + + self._success = success + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkProcessResult, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkProcessResult): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkProcessResult): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_processing_list_summaries.py b/docusign_esign/models/bulk_processing_list_summaries.py new file mode 100644 index 00000000..71f757c5 --- /dev/null +++ b/docusign_esign/models/bulk_processing_list_summaries.py @@ -0,0 +1,124 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkProcessingListSummaries(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bulk_list_summaries': 'list[BulkProcessingListSummary]' + } + + attribute_map = { + 'bulk_list_summaries': 'bulkListSummaries' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkProcessingListSummaries - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._bulk_list_summaries = None + self.discriminator = None + + setattr(self, "_{}".format('bulk_list_summaries'), kwargs.get('bulk_list_summaries', None)) + + @property + def bulk_list_summaries(self): + """Gets the bulk_list_summaries of this BulkProcessingListSummaries. # noqa: E501 + + # noqa: E501 + + :return: The bulk_list_summaries of this BulkProcessingListSummaries. # noqa: E501 + :rtype: list[BulkProcessingListSummary] + """ + return self._bulk_list_summaries + + @bulk_list_summaries.setter + def bulk_list_summaries(self, bulk_list_summaries): + """Sets the bulk_list_summaries of this BulkProcessingListSummaries. + + # noqa: E501 + + :param bulk_list_summaries: The bulk_list_summaries of this BulkProcessingListSummaries. # noqa: E501 + :type: list[BulkProcessingListSummary] + """ + + self._bulk_list_summaries = bulk_list_summaries + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkProcessingListSummaries, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkProcessingListSummaries): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkProcessingListSummaries): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_processing_list_summary.py b/docusign_esign/models/bulk_processing_list_summary.py new file mode 100644 index 00000000..ed7619fe --- /dev/null +++ b/docusign_esign/models/bulk_processing_list_summary.py @@ -0,0 +1,205 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkProcessingListSummary(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bulk_process_list_id': 'str', + 'created_by_user': 'str', + 'created_date': 'str', + 'name': 'str' + } + + attribute_map = { + 'bulk_process_list_id': 'bulkProcessListId', + 'created_by_user': 'createdByUser', + 'created_date': 'createdDate', + 'name': 'name' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkProcessingListSummary - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._bulk_process_list_id = None + self._created_by_user = None + self._created_date = None + self._name = None + self.discriminator = None + + setattr(self, "_{}".format('bulk_process_list_id'), kwargs.get('bulk_process_list_id', None)) + setattr(self, "_{}".format('created_by_user'), kwargs.get('created_by_user', None)) + setattr(self, "_{}".format('created_date'), kwargs.get('created_date', None)) + setattr(self, "_{}".format('name'), kwargs.get('name', None)) + + @property + def bulk_process_list_id(self): + """Gets the bulk_process_list_id of this BulkProcessingListSummary. # noqa: E501 + + # noqa: E501 + + :return: The bulk_process_list_id of this BulkProcessingListSummary. # noqa: E501 + :rtype: str + """ + return self._bulk_process_list_id + + @bulk_process_list_id.setter + def bulk_process_list_id(self, bulk_process_list_id): + """Sets the bulk_process_list_id of this BulkProcessingListSummary. + + # noqa: E501 + + :param bulk_process_list_id: The bulk_process_list_id of this BulkProcessingListSummary. # noqa: E501 + :type: str + """ + + self._bulk_process_list_id = bulk_process_list_id + + @property + def created_by_user(self): + """Gets the created_by_user of this BulkProcessingListSummary. # noqa: E501 + + # noqa: E501 + + :return: The created_by_user of this BulkProcessingListSummary. # noqa: E501 + :rtype: str + """ + return self._created_by_user + + @created_by_user.setter + def created_by_user(self, created_by_user): + """Sets the created_by_user of this BulkProcessingListSummary. + + # noqa: E501 + + :param created_by_user: The created_by_user of this BulkProcessingListSummary. # noqa: E501 + :type: str + """ + + self._created_by_user = created_by_user + + @property + def created_date(self): + """Gets the created_date of this BulkProcessingListSummary. # noqa: E501 + + # noqa: E501 + + :return: The created_date of this BulkProcessingListSummary. # noqa: E501 + :rtype: str + """ + return self._created_date + + @created_date.setter + def created_date(self, created_date): + """Sets the created_date of this BulkProcessingListSummary. + + # noqa: E501 + + :param created_date: The created_date of this BulkProcessingListSummary. # noqa: E501 + :type: str + """ + + self._created_date = created_date + + @property + def name(self): + """Gets the name of this BulkProcessingListSummary. # noqa: E501 + + # noqa: E501 + + :return: The name of this BulkProcessingListSummary. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BulkProcessingListSummary. + + # noqa: E501 + + :param name: The name of this BulkProcessingListSummary. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkProcessingListSummary, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkProcessingListSummary): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkProcessingListSummary): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_processing_lists.py b/docusign_esign/models/bulk_processing_lists.py new file mode 100644 index 00000000..83c5eca7 --- /dev/null +++ b/docusign_esign/models/bulk_processing_lists.py @@ -0,0 +1,124 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkProcessingLists(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bulk_process_list_ids': 'list[str]' + } + + attribute_map = { + 'bulk_process_list_ids': 'bulkProcessListIds' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkProcessingLists - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._bulk_process_list_ids = None + self.discriminator = None + + setattr(self, "_{}".format('bulk_process_list_ids'), kwargs.get('bulk_process_list_ids', None)) + + @property + def bulk_process_list_ids(self): + """Gets the bulk_process_list_ids of this BulkProcessingLists. # noqa: E501 + + # noqa: E501 + + :return: The bulk_process_list_ids of this BulkProcessingLists. # noqa: E501 + :rtype: list[str] + """ + return self._bulk_process_list_ids + + @bulk_process_list_ids.setter + def bulk_process_list_ids(self, bulk_process_list_ids): + """Sets the bulk_process_list_ids of this BulkProcessingLists. + + # noqa: E501 + + :param bulk_process_list_ids: The bulk_process_list_ids of this BulkProcessingLists. # noqa: E501 + :type: list[str] + """ + + self._bulk_process_list_ids = bulk_process_list_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkProcessingLists, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkProcessingLists): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkProcessingLists): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_send_batch_error.py b/docusign_esign/models/bulk_send_batch_error.py new file mode 100644 index 00000000..67086d9c --- /dev/null +++ b/docusign_esign/models/bulk_send_batch_error.py @@ -0,0 +1,151 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class BulkSendBatchError(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'error': 'str', + 'error_detail': 'str' + } + + attribute_map = { + 'error': 'error', + 'error_detail': 'errorDetail' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """BulkSendBatchError - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._error = None + self._error_detail = None + self.discriminator = None + + setattr(self, "_{}".format('error'), kwargs.get('error', None)) + setattr(self, "_{}".format('error_detail'), kwargs.get('error_detail', None)) + + @property + def error(self): + """Gets the error of this BulkSendBatchError. # noqa: E501 + + # noqa: E501 + + :return: The error of this BulkSendBatchError. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this BulkSendBatchError. + + # noqa: E501 + + :param error: The error of this BulkSendBatchError. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def error_detail(self): + """Gets the error_detail of this BulkSendBatchError. # noqa: E501 + + # noqa: E501 + + :return: The error_detail of this BulkSendBatchError. # noqa: E501 + :rtype: str + """ + return self._error_detail + + @error_detail.setter + def error_detail(self, error_detail): + """Sets the error_detail of this BulkSendBatchError. + + # noqa: E501 + + :param error_detail: The error_detail of this BulkSendBatchError. # noqa: E501 + :type: str + """ + + self._error_detail = error_detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BulkSendBatchError, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BulkSendBatchError): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BulkSendBatchError): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/bulk_send_batch_summaries.py b/docusign_esign/models/bulk_send_batch_summaries.py index 0db1fb3f..680e629b 100644 --- a/docusign_esign/models/bulk_send_batch_summaries.py +++ b/docusign_esign/models/bulk_send_batch_summaries.py @@ -35,6 +35,8 @@ class BulkSendBatchSummaries(object): swagger_types = { 'batch_size_limit': 'str', 'bulk_batch_summaries': 'list[BulkSendBatchSummary]', + 'bulk_process_queue_limit': 'str', + 'bulk_process_total_queued': 'str', 'end_position': 'str', 'next_uri': 'str', 'previous_uri': 'str', @@ -48,6 +50,8 @@ class BulkSendBatchSummaries(object): attribute_map = { 'batch_size_limit': 'batchSizeLimit', 'bulk_batch_summaries': 'bulkBatchSummaries', + 'bulk_process_queue_limit': 'bulkProcessQueueLimit', + 'bulk_process_total_queued': 'bulkProcessTotalQueued', 'end_position': 'endPosition', 'next_uri': 'nextUri', 'previous_uri': 'previousUri', @@ -66,6 +70,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._batch_size_limit = None self._bulk_batch_summaries = None + self._bulk_process_queue_limit = None + self._bulk_process_total_queued = None self._end_position = None self._next_uri = None self._previous_uri = None @@ -78,6 +84,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('batch_size_limit'), kwargs.get('batch_size_limit', None)) setattr(self, "_{}".format('bulk_batch_summaries'), kwargs.get('bulk_batch_summaries', None)) + setattr(self, "_{}".format('bulk_process_queue_limit'), kwargs.get('bulk_process_queue_limit', None)) + setattr(self, "_{}".format('bulk_process_total_queued'), kwargs.get('bulk_process_total_queued', None)) setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) @@ -133,6 +141,52 @@ def bulk_batch_summaries(self, bulk_batch_summaries): self._bulk_batch_summaries = bulk_batch_summaries + @property + def bulk_process_queue_limit(self): + """Gets the bulk_process_queue_limit of this BulkSendBatchSummaries. # noqa: E501 + + # noqa: E501 + + :return: The bulk_process_queue_limit of this BulkSendBatchSummaries. # noqa: E501 + :rtype: str + """ + return self._bulk_process_queue_limit + + @bulk_process_queue_limit.setter + def bulk_process_queue_limit(self, bulk_process_queue_limit): + """Sets the bulk_process_queue_limit of this BulkSendBatchSummaries. + + # noqa: E501 + + :param bulk_process_queue_limit: The bulk_process_queue_limit of this BulkSendBatchSummaries. # noqa: E501 + :type: str + """ + + self._bulk_process_queue_limit = bulk_process_queue_limit + + @property + def bulk_process_total_queued(self): + """Gets the bulk_process_total_queued of this BulkSendBatchSummaries. # noqa: E501 + + # noqa: E501 + + :return: The bulk_process_total_queued of this BulkSendBatchSummaries. # noqa: E501 + :rtype: str + """ + return self._bulk_process_total_queued + + @bulk_process_total_queued.setter + def bulk_process_total_queued(self, bulk_process_total_queued): + """Sets the bulk_process_total_queued of this BulkSendBatchSummaries. + + # noqa: E501 + + :param bulk_process_total_queued: The bulk_process_total_queued of this BulkSendBatchSummaries. # noqa: E501 + :type: str + """ + + self._bulk_process_total_queued = bulk_process_total_queued + @property def end_position(self): """Gets the end_position of this BulkSendBatchSummaries. # noqa: E501 diff --git a/docusign_esign/models/currency.py b/docusign_esign/models/currency.py index 0b3e25cf..30195c57 100644 --- a/docusign_esign/models/currency.py +++ b/docusign_esign/models/currency.py @@ -89,8 +89,10 @@ class Currency(object): 'locked_metadata': 'PropertyMetadata', 'max_length': 'str', 'max_length_metadata': 'PropertyMetadata', + 'max_numerical_value': 'str', 'merge_field': 'MergeField', 'merge_field_xml': 'str', + 'min_numerical_value': 'str', 'name': 'str', 'name_metadata': 'PropertyMetadata', 'numerical_value': 'str', @@ -201,8 +203,10 @@ class Currency(object): 'locked_metadata': 'lockedMetadata', 'max_length': 'maxLength', 'max_length_metadata': 'maxLengthMetadata', + 'max_numerical_value': 'maxNumericalValue', 'merge_field': 'mergeField', 'merge_field_xml': 'mergeFieldXml', + 'min_numerical_value': 'minNumericalValue', 'name': 'name', 'name_metadata': 'nameMetadata', 'numerical_value': 'numericalValue', @@ -318,8 +322,10 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._locked_metadata = None self._max_length = None self._max_length_metadata = None + self._max_numerical_value = None self._merge_field = None self._merge_field_xml = None + self._min_numerical_value = None self._name = None self._name_metadata = None self._numerical_value = None @@ -429,8 +435,10 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('locked_metadata'), kwargs.get('locked_metadata', None)) setattr(self, "_{}".format('max_length'), kwargs.get('max_length', None)) setattr(self, "_{}".format('max_length_metadata'), kwargs.get('max_length_metadata', None)) + setattr(self, "_{}".format('max_numerical_value'), kwargs.get('max_numerical_value', None)) setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) setattr(self, "_{}".format('merge_field_xml'), kwargs.get('merge_field_xml', None)) + setattr(self, "_{}".format('min_numerical_value'), kwargs.get('min_numerical_value', None)) setattr(self, "_{}".format('name'), kwargs.get('name', None)) setattr(self, "_{}".format('name_metadata'), kwargs.get('name_metadata', None)) setattr(self, "_{}".format('numerical_value'), kwargs.get('numerical_value', None)) @@ -1713,6 +1721,29 @@ def max_length_metadata(self, max_length_metadata): self._max_length_metadata = max_length_metadata + @property + def max_numerical_value(self): + """Gets the max_numerical_value of this Currency. # noqa: E501 + + # noqa: E501 + + :return: The max_numerical_value of this Currency. # noqa: E501 + :rtype: str + """ + return self._max_numerical_value + + @max_numerical_value.setter + def max_numerical_value(self, max_numerical_value): + """Sets the max_numerical_value of this Currency. + + # noqa: E501 + + :param max_numerical_value: The max_numerical_value of this Currency. # noqa: E501 + :type: str + """ + + self._max_numerical_value = max_numerical_value + @property def merge_field(self): """Gets the merge_field of this Currency. # noqa: E501 @@ -1757,6 +1788,29 @@ def merge_field_xml(self, merge_field_xml): self._merge_field_xml = merge_field_xml + @property + def min_numerical_value(self): + """Gets the min_numerical_value of this Currency. # noqa: E501 + + # noqa: E501 + + :return: The min_numerical_value of this Currency. # noqa: E501 + :rtype: str + """ + return self._min_numerical_value + + @min_numerical_value.setter + def min_numerical_value(self, min_numerical_value): + """Sets the min_numerical_value of this Currency. + + # noqa: E501 + + :param min_numerical_value: The min_numerical_value of this Currency. # noqa: E501 + :type: str + """ + + self._min_numerical_value = min_numerical_value + @property def name(self): """Gets the name of this Currency. # noqa: E501 diff --git a/docusign_esign/models/envelope.py b/docusign_esign/models/envelope.py index fb16c191..cb0c328a 100644 --- a/docusign_esign/models/envelope.py +++ b/docusign_esign/models/envelope.py @@ -65,6 +65,7 @@ class Envelope(object): 'enable_wet_sign': 'str', 'enforce_signer_visibility': 'str', 'envelope_attachments': 'list[Attachment]', + 'envelope_custom_metadata': 'EnvelopeCustomMetadata', 'envelope_documents': 'list[EnvelopeDocument]', 'envelope_id': 'str', 'envelope_id_stamping': 'str', @@ -145,6 +146,7 @@ class Envelope(object): 'enable_wet_sign': 'enableWetSign', 'enforce_signer_visibility': 'enforceSignerVisibility', 'envelope_attachments': 'envelopeAttachments', + 'envelope_custom_metadata': 'envelopeCustomMetadata', 'envelope_documents': 'envelopeDocuments', 'envelope_id': 'envelopeId', 'envelope_id_stamping': 'envelopeIdStamping', @@ -230,6 +232,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._enable_wet_sign = None self._enforce_signer_visibility = None self._envelope_attachments = None + self._envelope_custom_metadata = None self._envelope_documents = None self._envelope_id = None self._envelope_id_stamping = None @@ -309,6 +312,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) setattr(self, "_{}".format('envelope_attachments'), kwargs.get('envelope_attachments', None)) + setattr(self, "_{}".format('envelope_custom_metadata'), kwargs.get('envelope_custom_metadata', None)) setattr(self, "_{}".format('envelope_documents'), kwargs.get('envelope_documents', None)) setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) @@ -1087,6 +1091,27 @@ def envelope_attachments(self, envelope_attachments): self._envelope_attachments = envelope_attachments + @property + def envelope_custom_metadata(self): + """Gets the envelope_custom_metadata of this Envelope. # noqa: E501 + + + :return: The envelope_custom_metadata of this Envelope. # noqa: E501 + :rtype: EnvelopeCustomMetadata + """ + return self._envelope_custom_metadata + + @envelope_custom_metadata.setter + def envelope_custom_metadata(self, envelope_custom_metadata): + """Sets the envelope_custom_metadata of this Envelope. + + + :param envelope_custom_metadata: The envelope_custom_metadata of this Envelope. # noqa: E501 + :type: EnvelopeCustomMetadata + """ + + self._envelope_custom_metadata = envelope_custom_metadata + @property def envelope_documents(self): """Gets the envelope_documents of this Envelope. # noqa: E501 diff --git a/docusign_esign/models/envelope_custom_metadata.py b/docusign_esign/models/envelope_custom_metadata.py new file mode 100644 index 00000000..19a143d6 --- /dev/null +++ b/docusign_esign/models/envelope_custom_metadata.py @@ -0,0 +1,124 @@ +# 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.1 + Contact: devcenter@docusign.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from docusign_esign.client.configuration import Configuration + + +class EnvelopeCustomMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'envelope_custom_metadata_details': 'list[NameValue]' + } + + attribute_map = { + 'envelope_custom_metadata_details': 'envelopeCustomMetadataDetails' + } + + def __init__(self, _configuration=None, **kwargs): # noqa: E501 + """EnvelopeCustomMetadata - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._envelope_custom_metadata_details = None + self.discriminator = None + + setattr(self, "_{}".format('envelope_custom_metadata_details'), kwargs.get('envelope_custom_metadata_details', None)) + + @property + def envelope_custom_metadata_details(self): + """Gets the envelope_custom_metadata_details of this EnvelopeCustomMetadata. # noqa: E501 + + # noqa: E501 + + :return: The envelope_custom_metadata_details of this EnvelopeCustomMetadata. # noqa: E501 + :rtype: list[NameValue] + """ + return self._envelope_custom_metadata_details + + @envelope_custom_metadata_details.setter + def envelope_custom_metadata_details(self, envelope_custom_metadata_details): + """Sets the envelope_custom_metadata_details of this EnvelopeCustomMetadata. + + # noqa: E501 + + :param envelope_custom_metadata_details: The envelope_custom_metadata_details of this EnvelopeCustomMetadata. # noqa: E501 + :type: list[NameValue] + """ + + self._envelope_custom_metadata_details = envelope_custom_metadata_details + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EnvelopeCustomMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnvelopeCustomMetadata): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, EnvelopeCustomMetadata): + return True + + return self.to_dict() != other.to_dict() diff --git a/docusign_esign/models/envelope_definition.py b/docusign_esign/models/envelope_definition.py index c344427e..39d64536 100644 --- a/docusign_esign/models/envelope_definition.py +++ b/docusign_esign/models/envelope_definition.py @@ -70,6 +70,7 @@ class EnvelopeDefinition(object): 'enable_wet_sign': 'str', 'enforce_signer_visibility': 'str', 'envelope_attachments': 'list[Attachment]', + 'envelope_custom_metadata': 'EnvelopeCustomMetadata', 'envelope_documents': 'list[EnvelopeDocument]', 'envelope_id': 'str', 'envelope_id_stamping': 'str', @@ -161,6 +162,7 @@ class EnvelopeDefinition(object): 'enable_wet_sign': 'enableWetSign', 'enforce_signer_visibility': 'enforceSignerVisibility', 'envelope_attachments': 'envelopeAttachments', + 'envelope_custom_metadata': 'envelopeCustomMetadata', 'envelope_documents': 'envelopeDocuments', 'envelope_id': 'envelopeId', 'envelope_id_stamping': 'envelopeIdStamping', @@ -257,6 +259,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._enable_wet_sign = None self._enforce_signer_visibility = None self._envelope_attachments = None + self._envelope_custom_metadata = None self._envelope_documents = None self._envelope_id = None self._envelope_id_stamping = None @@ -347,6 +350,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) setattr(self, "_{}".format('envelope_attachments'), kwargs.get('envelope_attachments', None)) + setattr(self, "_{}".format('envelope_custom_metadata'), kwargs.get('envelope_custom_metadata', None)) setattr(self, "_{}".format('envelope_documents'), kwargs.get('envelope_documents', None)) setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) @@ -1246,6 +1250,27 @@ def envelope_attachments(self, envelope_attachments): self._envelope_attachments = envelope_attachments + @property + def envelope_custom_metadata(self): + """Gets the envelope_custom_metadata of this EnvelopeDefinition. # noqa: E501 + + + :return: The envelope_custom_metadata of this EnvelopeDefinition. # noqa: E501 + :rtype: EnvelopeCustomMetadata + """ + return self._envelope_custom_metadata + + @envelope_custom_metadata.setter + def envelope_custom_metadata(self, envelope_custom_metadata): + """Sets the envelope_custom_metadata of this EnvelopeDefinition. + + + :param envelope_custom_metadata: The envelope_custom_metadata of this EnvelopeDefinition. # noqa: E501 + :type: EnvelopeCustomMetadata + """ + + self._envelope_custom_metadata = envelope_custom_metadata + @property def envelope_documents(self): """Gets the envelope_documents of this EnvelopeDefinition. # noqa: E501 diff --git a/docusign_esign/models/envelope_template.py b/docusign_esign/models/envelope_template.py index 49845bbf..8460abae 100644 --- a/docusign_esign/models/envelope_template.py +++ b/docusign_esign/models/envelope_template.py @@ -70,6 +70,7 @@ class EnvelopeTemplate(object): 'enable_wet_sign': 'str', 'enforce_signer_visibility': 'str', 'envelope_attachments': 'list[Attachment]', + 'envelope_custom_metadata': 'EnvelopeCustomMetadata', 'envelope_documents': 'list[EnvelopeDocument]', 'envelope_id': 'str', 'envelope_id_stamping': 'str', @@ -172,6 +173,7 @@ class EnvelopeTemplate(object): 'enable_wet_sign': 'enableWetSign', 'enforce_signer_visibility': 'enforceSignerVisibility', 'envelope_attachments': 'envelopeAttachments', + 'envelope_custom_metadata': 'envelopeCustomMetadata', 'envelope_documents': 'envelopeDocuments', 'envelope_id': 'envelopeId', 'envelope_id_stamping': 'envelopeIdStamping', @@ -279,6 +281,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._enable_wet_sign = None self._enforce_signer_visibility = None self._envelope_attachments = None + self._envelope_custom_metadata = None self._envelope_documents = None self._envelope_id = None self._envelope_id_stamping = None @@ -380,6 +383,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('enable_wet_sign'), kwargs.get('enable_wet_sign', None)) setattr(self, "_{}".format('enforce_signer_visibility'), kwargs.get('enforce_signer_visibility', None)) setattr(self, "_{}".format('envelope_attachments'), kwargs.get('envelope_attachments', None)) + setattr(self, "_{}".format('envelope_custom_metadata'), kwargs.get('envelope_custom_metadata', None)) setattr(self, "_{}".format('envelope_documents'), kwargs.get('envelope_documents', None)) setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) setattr(self, "_{}".format('envelope_id_stamping'), kwargs.get('envelope_id_stamping', None)) @@ -1290,6 +1294,27 @@ def envelope_attachments(self, envelope_attachments): self._envelope_attachments = envelope_attachments + @property + def envelope_custom_metadata(self): + """Gets the envelope_custom_metadata of this EnvelopeTemplate. # noqa: E501 + + + :return: The envelope_custom_metadata of this EnvelopeTemplate. # noqa: E501 + :rtype: EnvelopeCustomMetadata + """ + return self._envelope_custom_metadata + + @envelope_custom_metadata.setter + def envelope_custom_metadata(self, envelope_custom_metadata): + """Sets the envelope_custom_metadata of this EnvelopeTemplate. + + + :param envelope_custom_metadata: The envelope_custom_metadata of this EnvelopeTemplate. # noqa: E501 + :type: EnvelopeCustomMetadata + """ + + self._envelope_custom_metadata = envelope_custom_metadata + @property def envelope_documents(self): """Gets the envelope_documents of this EnvelopeTemplate. # noqa: E501 diff --git a/docusign_esign/models/group.py b/docusign_esign/models/group.py index f8381a47..bb2bce0a 100644 --- a/docusign_esign/models/group.py +++ b/docusign_esign/models/group.py @@ -33,6 +33,7 @@ class Group(object): and the value is json key in definition. """ swagger_types = { + 'ds_group_id': 'str', 'error_details': 'ErrorDetails', 'group_id': 'str', 'group_name': 'str', @@ -43,6 +44,7 @@ class Group(object): } attribute_map = { + 'ds_group_id': 'dsGroupId', 'error_details': 'errorDetails', 'group_id': 'groupId', 'group_name': 'groupName', @@ -58,6 +60,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 _configuration = Configuration() self._configuration = _configuration + self._ds_group_id = None self._error_details = None self._group_id = None self._group_name = None @@ -67,6 +70,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._users_count = None self.discriminator = None + setattr(self, "_{}".format('ds_group_id'), kwargs.get('ds_group_id', None)) setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) setattr(self, "_{}".format('group_id'), kwargs.get('group_id', None)) setattr(self, "_{}".format('group_name'), kwargs.get('group_name', None)) @@ -75,6 +79,29 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('users'), kwargs.get('users', None)) setattr(self, "_{}".format('users_count'), kwargs.get('users_count', None)) + @property + def ds_group_id(self): + """Gets the ds_group_id of this Group. # noqa: E501 + + # noqa: E501 + + :return: The ds_group_id of this Group. # noqa: E501 + :rtype: str + """ + return self._ds_group_id + + @ds_group_id.setter + def ds_group_id(self, ds_group_id): + """Sets the ds_group_id of this Group. + + # noqa: E501 + + :param ds_group_id: The ds_group_id of this Group. # noqa: E501 + :type: str + """ + + self._ds_group_id = ds_group_id + @property def error_details(self): """Gets the error_details of this Group. # noqa: E501 diff --git a/docusign_esign/models/new_account_definition.py b/docusign_esign/models/new_account_definition.py index 67e11243..a05d069b 100644 --- a/docusign_esign/models/new_account_definition.py +++ b/docusign_esign/models/new_account_definition.py @@ -46,7 +46,8 @@ class NewAccountDefinition(object): 'payment_processor_information': 'PaymentProcessorInformation', 'plan_information': 'PlanInformation', 'referral_information': 'ReferralInformation', - 'social_account_information': 'SocialAccountInformation' + 'social_account_information': 'SocialAccountInformation', + 'tax_exempt_id': 'str' } attribute_map = { @@ -63,7 +64,8 @@ class NewAccountDefinition(object): 'payment_processor_information': 'paymentProcessorInformation', 'plan_information': 'planInformation', 'referral_information': 'referralInformation', - 'social_account_information': 'socialAccountInformation' + 'social_account_information': 'socialAccountInformation', + 'tax_exempt_id': 'taxExemptId' } def __init__(self, _configuration=None, **kwargs): # noqa: E501 @@ -86,6 +88,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._plan_information = None self._referral_information = None self._social_account_information = None + self._tax_exempt_id = None self.discriminator = None setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) @@ -102,6 +105,7 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('plan_information'), kwargs.get('plan_information', None)) setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) setattr(self, "_{}".format('social_account_information'), kwargs.get('social_account_information', None)) + setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) @property def account_name(self): @@ -407,6 +411,29 @@ def social_account_information(self, social_account_information): self._social_account_information = social_account_information + @property + def tax_exempt_id(self): + """Gets the tax_exempt_id of this NewAccountDefinition. # noqa: E501 + + # noqa: E501 + + :return: The tax_exempt_id of this NewAccountDefinition. # noqa: E501 + :rtype: str + """ + return self._tax_exempt_id + + @tax_exempt_id.setter + def tax_exempt_id(self, tax_exempt_id): + """Sets the tax_exempt_id of this NewAccountDefinition. + + # noqa: E501 + + :param tax_exempt_id: The tax_exempt_id of this NewAccountDefinition. # noqa: E501 + :type: str + """ + + self._tax_exempt_id = tax_exempt_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/docusign_esign/models/tab_metadata.py b/docusign_esign/models/tab_metadata.py index dd4f8a99..11ace70d 100644 --- a/docusign_esign/models/tab_metadata.py +++ b/docusign_esign/models/tab_metadata.py @@ -63,7 +63,9 @@ class TabMetadata(object): 'locale_policy': 'LocalePolicyTab', 'locked': 'str', 'maximum_length': 'str', + 'max_numerical_value': 'str', 'merge_field': 'MergeField', + 'min_numerical_value': 'str', 'name': 'str', 'numerical_value': 'str', 'payment_item_code': 'str', @@ -116,7 +118,9 @@ class TabMetadata(object): 'locale_policy': 'localePolicy', 'locked': 'locked', 'maximum_length': 'maximumLength', + 'max_numerical_value': 'maxNumericalValue', 'merge_field': 'mergeField', + 'min_numerical_value': 'minNumericalValue', 'name': 'name', 'numerical_value': 'numericalValue', 'payment_item_code': 'paymentItemCode', @@ -174,7 +178,9 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._locale_policy = None self._locked = None self._maximum_length = None + self._max_numerical_value = None self._merge_field = None + self._min_numerical_value = None self._name = None self._numerical_value = None self._payment_item_code = None @@ -226,7 +232,9 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('locale_policy'), kwargs.get('locale_policy', None)) setattr(self, "_{}".format('locked'), kwargs.get('locked', None)) setattr(self, "_{}".format('maximum_length'), kwargs.get('maximum_length', None)) + setattr(self, "_{}".format('max_numerical_value'), kwargs.get('max_numerical_value', None)) setattr(self, "_{}".format('merge_field'), kwargs.get('merge_field', None)) + setattr(self, "_{}".format('min_numerical_value'), kwargs.get('min_numerical_value', None)) setattr(self, "_{}".format('name'), kwargs.get('name', None)) setattr(self, "_{}".format('numerical_value'), kwargs.get('numerical_value', None)) setattr(self, "_{}".format('payment_item_code'), kwargs.get('payment_item_code', None)) @@ -935,6 +943,29 @@ def maximum_length(self, maximum_length): self._maximum_length = maximum_length + @property + def max_numerical_value(self): + """Gets the max_numerical_value of this TabMetadata. # noqa: E501 + + # noqa: E501 + + :return: The max_numerical_value of this TabMetadata. # noqa: E501 + :rtype: str + """ + return self._max_numerical_value + + @max_numerical_value.setter + def max_numerical_value(self, max_numerical_value): + """Sets the max_numerical_value of this TabMetadata. + + # noqa: E501 + + :param max_numerical_value: The max_numerical_value of this TabMetadata. # noqa: E501 + :type: str + """ + + self._max_numerical_value = max_numerical_value + @property def merge_field(self): """Gets the merge_field of this TabMetadata. # noqa: E501 @@ -956,6 +987,29 @@ def merge_field(self, merge_field): self._merge_field = merge_field + @property + def min_numerical_value(self): + """Gets the min_numerical_value of this TabMetadata. # noqa: E501 + + # noqa: E501 + + :return: The min_numerical_value of this TabMetadata. # noqa: E501 + :rtype: str + """ + return self._min_numerical_value + + @min_numerical_value.setter + def min_numerical_value(self, min_numerical_value): + """Sets the min_numerical_value of this TabMetadata. + + # noqa: E501 + + :param min_numerical_value: The min_numerical_value of this TabMetadata. # noqa: E501 + :type: str + """ + + self._min_numerical_value = min_numerical_value + @property def name(self): """Gets the name of this TabMetadata. # noqa: E501 diff --git a/docusign_esign/models/user_account_management_granular_information.py b/docusign_esign/models/user_account_management_granular_information.py index ee78c508..09e4437f 100644 --- a/docusign_esign/models/user_account_management_granular_information.py +++ b/docusign_esign/models/user_account_management_granular_information.py @@ -39,6 +39,8 @@ class UserAccountManagementGranularInformation(object): 'can_manage_account_settings_metadata': 'SettingsMetadata', 'can_manage_admins': 'str', 'can_manage_admins_metadata': 'SettingsMetadata', + 'can_manage_connect': 'str', + 'can_manage_connect_metadata': 'SettingsMetadata', 'can_manage_document_retention': 'str', 'can_manage_document_retention_metadata': 'SettingsMetadata', 'can_manage_envelope_transfer': 'str', @@ -63,6 +65,8 @@ class UserAccountManagementGranularInformation(object): 'can_manage_account_settings_metadata': 'canManageAccountSettingsMetadata', 'can_manage_admins': 'canManageAdmins', 'can_manage_admins_metadata': 'canManageAdminsMetadata', + 'can_manage_connect': 'canManageConnect', + 'can_manage_connect_metadata': 'canManageConnectMetadata', 'can_manage_document_retention': 'canManageDocumentRetention', 'can_manage_document_retention_metadata': 'canManageDocumentRetentionMetadata', 'can_manage_envelope_transfer': 'canManageEnvelopeTransfer', @@ -92,6 +96,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 self._can_manage_account_settings_metadata = None self._can_manage_admins = None self._can_manage_admins_metadata = None + self._can_manage_connect = None + self._can_manage_connect_metadata = None self._can_manage_document_retention = None self._can_manage_document_retention_metadata = None self._can_manage_envelope_transfer = None @@ -115,6 +121,8 @@ def __init__(self, _configuration=None, **kwargs): # noqa: E501 setattr(self, "_{}".format('can_manage_account_settings_metadata'), kwargs.get('can_manage_account_settings_metadata', None)) setattr(self, "_{}".format('can_manage_admins'), kwargs.get('can_manage_admins', None)) setattr(self, "_{}".format('can_manage_admins_metadata'), kwargs.get('can_manage_admins_metadata', None)) + setattr(self, "_{}".format('can_manage_connect'), kwargs.get('can_manage_connect', None)) + setattr(self, "_{}".format('can_manage_connect_metadata'), kwargs.get('can_manage_connect_metadata', None)) setattr(self, "_{}".format('can_manage_document_retention'), kwargs.get('can_manage_document_retention', None)) setattr(self, "_{}".format('can_manage_document_retention_metadata'), kwargs.get('can_manage_document_retention_metadata', None)) setattr(self, "_{}".format('can_manage_envelope_transfer'), kwargs.get('can_manage_envelope_transfer', None)) @@ -263,6 +271,50 @@ def can_manage_admins_metadata(self, can_manage_admins_metadata): self._can_manage_admins_metadata = can_manage_admins_metadata + @property + def can_manage_connect(self): + """Gets the can_manage_connect of this UserAccountManagementGranularInformation. # noqa: E501 + + # noqa: E501 + + :return: The can_manage_connect of this UserAccountManagementGranularInformation. # noqa: E501 + :rtype: str + """ + return self._can_manage_connect + + @can_manage_connect.setter + def can_manage_connect(self, can_manage_connect): + """Sets the can_manage_connect of this UserAccountManagementGranularInformation. + + # noqa: E501 + + :param can_manage_connect: The can_manage_connect of this UserAccountManagementGranularInformation. # noqa: E501 + :type: str + """ + + self._can_manage_connect = can_manage_connect + + @property + def can_manage_connect_metadata(self): + """Gets the can_manage_connect_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + + + :return: The can_manage_connect_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + :rtype: SettingsMetadata + """ + return self._can_manage_connect_metadata + + @can_manage_connect_metadata.setter + def can_manage_connect_metadata(self, can_manage_connect_metadata): + """Sets the can_manage_connect_metadata of this UserAccountManagementGranularInformation. + + + :param can_manage_connect_metadata: The can_manage_connect_metadata of this UserAccountManagementGranularInformation. # noqa: E501 + :type: SettingsMetadata + """ + + self._can_manage_connect_metadata = can_manage_connect_metadata + @property def can_manage_document_retention(self): """Gets the can_manage_document_retention of this UserAccountManagementGranularInformation. # noqa: E501 diff --git a/setup.py b/setup.py index 1dc7288b..dd6138a9 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages, Command, os # noqa: H301 NAME = "docusign-esign" -VERSION = "3.13.0" +VERSION = "3.14.0rc1" # To install the library, run the following # # python setup.py install diff --git a/test/unit_tests.py b/test/unit_tests.py index 8b8b51a4..41633e6a 100644 --- a/test/unit_tests.py +++ b/test/unit_tests.py @@ -745,7 +745,7 @@ def testListTabs(self): tabs = envelopes_api.list_tabs(account_id=self.user_info.accounts[0].account_id, envelope_id=created_envelope.envelope_id, - recipient_id=recipients.signers[0].recipient_id) + recipient_id=recipients.signers[1].recipient_id) list_tabs = tabs.list_tabs assert list_tabs is not None