Skip to content

Commit 226406e

Browse files
authored
2.1.0rc1 Major Release (#38)
1 parent c06e0a1 commit 226406e

21 files changed

+865
-297
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
33

44
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
55

6+
## [2.1.0rc1] - eSignature API v2-19.2.02 - 2019-08-28
7+
### Changed
8+
* Updated the way the models and classes are initialized. Now using constructor parameters to initialize the classes. Updates to unit tests.
9+
### Fixed
10+
* A bug in model mapping where instead of mapping to custom DocuSign `Date` class, was mapping to python `date` class. Causing the functions such as `envelope_api.list_tabs()` to raise exception. (DCM-1788)
11+
612
## [2.0.1] - 2019-06-24
713
### Removed
814
* Removed harcoded test config values from the test cases. Now getting test config values from the environment variables.

docusign_esign/apis/bulk_envelopes_api.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def list_with_http_info(self, account_id, **kwargs):
519519
_request_timeout=params.get('_request_timeout'),
520520
collection_formats=collection_formats)
521521

522-
def update_recipients(self, account_id, envelope_id, recipient_id, **kwargs):
522+
def update_recipients(self, account_id, envelope_id, recipient_id, bulk_recipients_request, **kwargs):
523523
"""
524524
Adds or replaces envelope bulk recipients.
525525
Updates the bulk recipients in a draft envelope using a file upload. The Content-Type supported for uploading a bulk recipient file is CSV (text/csv). The REST API does not support modifying individual rows or values in the bulk recipients file. It only allows the entire file to be added or replaced with a new file.
@@ -529,26 +529,26 @@ def update_recipients(self, account_id, envelope_id, recipient_id, **kwargs):
529529
>>> def callback_function(response):
530530
>>> pprint(response)
531531
>>>
532-
>>> thread = api.update_recipients(account_id, envelope_id, recipient_id, callback=callback_function)
532+
>>> thread = api.update_recipients(account_id, envelope_id, recipient_id, bulk_recipients_request, callback=callback_function)
533533
534534
:param callback function: The callback function
535535
for asynchronous request. (optional)
536536
:param str account_id: The external account number (int) or account ID Guid. (required)
537-
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
538-
:param str recipient_id: The ID of the recipient being accessed. (required)
539-
:param BulkRecipientsRequest bulk_recipients_request:
537+
:param str envelope_id: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec (required)
538+
:param str recipient_id: The `recipientId` used when the envelope or template was created. (required)
539+
:param str bulk_recipients_request: (required)
540540
:return: BulkRecipientsSummaryResponse
541541
If the method is called asynchronously,
542542
returns the request thread.
543543
"""
544544
kwargs['_return_http_data_only'] = True
545545
if kwargs.get('callback'):
546-
return self.update_recipients_with_http_info(account_id, envelope_id, recipient_id, **kwargs)
546+
return self.update_recipients_with_http_info(account_id, envelope_id, recipient_id, bulk_recipients_request, **kwargs)
547547
else:
548-
(data) = self.update_recipients_with_http_info(account_id, envelope_id, recipient_id, **kwargs)
548+
(data) = self.update_recipients_with_http_info(account_id, envelope_id, recipient_id, bulk_recipients_request, **kwargs)
549549
return data
550550

551-
def update_recipients_with_http_info(self, account_id, envelope_id, recipient_id, **kwargs):
551+
def update_recipients_with_http_info(self, account_id, envelope_id, recipient_id, bulk_recipients_request, **kwargs):
552552
"""
553553
Adds or replaces envelope bulk recipients.
554554
Updates the bulk recipients in a draft envelope using a file upload. The Content-Type supported for uploading a bulk recipient file is CSV (text/csv). The REST API does not support modifying individual rows or values in the bulk recipients file. It only allows the entire file to be added or replaced with a new file.
@@ -558,14 +558,14 @@ def update_recipients_with_http_info(self, account_id, envelope_id, recipient_id
558558
>>> def callback_function(response):
559559
>>> pprint(response)
560560
>>>
561-
>>> thread = api.update_recipients_with_http_info(account_id, envelope_id, recipient_id, callback=callback_function)
561+
>>> thread = api.update_recipients_with_http_info(account_id, envelope_id, recipient_id, bulk_recipients_request, callback=callback_function)
562562
563563
:param callback function: The callback function
564564
for asynchronous request. (optional)
565565
:param str account_id: The external account number (int) or account ID Guid. (required)
566-
:param str envelope_id: The envelopeId Guid of the envelope being accessed. (required)
567-
:param str recipient_id: The ID of the recipient being accessed. (required)
568-
:param BulkRecipientsRequest bulk_recipients_request:
566+
:param str envelope_id: The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec (required)
567+
:param str recipient_id: The `recipientId` used when the envelope or template was created. (required)
568+
:param str bulk_recipients_request: (required)
569569
:return: BulkRecipientsSummaryResponse
570570
If the method is called asynchronously,
571571
returns the request thread.
@@ -595,6 +595,9 @@ def update_recipients_with_http_info(self, account_id, envelope_id, recipient_id
595595
# verify the required parameter 'recipient_id' is set
596596
if ('recipient_id' not in params) or (params['recipient_id'] is None):
597597
raise ValueError("Missing the required parameter `recipient_id` when calling `update_recipients`")
598+
# verify the required parameter 'bulk_recipients_request' is set
599+
if ('bulk_recipients_request' not in params) or (params['bulk_recipients_request'] is None):
600+
raise ValueError("Missing the required parameter `bulk_recipients_request` when calling `update_recipients`")
598601

599602

600603
collection_formats = {}

docusign_esign/apis/envelopes_api.py

Lines changed: 9 additions & 5 deletions
Large diffs are not rendered by default.

docusign_esign/models/__init__.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
from .cloud_storage_providers import CloudStorageProviders
103103
from .company import Company
104104
from .complete_sign_hash_response import CompleteSignHashResponse
105-
from .complete_sign_request import CompleteSignRequest
106105
from .composite_template import CompositeTemplate
107106
from .connect_config_results import ConnectConfigResults
108107
from .connect_custom_configuration import ConnectCustomConfiguration
@@ -121,7 +120,6 @@
121120
from .contact_update_response import ContactUpdateResponse
122121
from .correct_view_request import CorrectViewRequest
123122
from .country import Country
124-
from .credential import Credential
125123
from .credit_card_information import CreditCardInformation
126124
from .credit_card_types import CreditCardTypes
127125
from .currency_feature_set_price import CurrencyFeatureSetPrice
@@ -146,10 +144,8 @@
146144
from .document_html_definitions import DocumentHtmlDefinitions
147145
from .document_html_display_anchor import DocumentHtmlDisplayAnchor
148146
from .document_html_display_settings import DocumentHtmlDisplaySettings
149-
from .document_security_store import DocumentSecurityStore
150147
from .document_template import DocumentTemplate
151148
from .document_template_list import DocumentTemplateList
152-
from .document_update_info import DocumentUpdateInfo
153149
from .document_visibility import DocumentVisibility
154150
from .document_visibility_list import DocumentVisibilityList
155151
from .e_note_configuration import ENoteConfiguration
@@ -271,6 +267,7 @@
271267
from .recipient_email_notification import RecipientEmailNotification
272268
from .recipient_event import RecipientEvent
273269
from .recipient_form_data import RecipientFormData
270+
from .recipient_identity_verification import RecipientIdentityVerification
274271
from .recipient_names_response import RecipientNamesResponse
275272
from .recipient_phone_authentication import RecipientPhoneAuthentication
276273
from .recipient_saml_authentication import RecipientSAMLAuthentication
@@ -286,24 +283,18 @@
286283
from .reminders import Reminders
287284
from .resource_information import ResourceInformation
288285
from .return_url_request import ReturnUrlRequest
289-
from .revision import Revision
290286
from .saml_assertion_attribute import SamlAssertionAttribute
291287
from .seal import Seal
292288
from .seal_identifier import SealIdentifier
293289
from .seal_sign import SealSign
294290
from .seat_discount import SeatDiscount
295-
from .sender import Sender
296291
from .sender_email_notifications import SenderEmailNotifications
297292
from .server_template import ServerTemplate
298293
from .service_information import ServiceInformation
299294
from .service_version import ServiceVersion
300295
from .settings_metadata import SettingsMetadata
301296
from .shared_item import SharedItem
302-
from .sign_hash_document import SignHashDocument
303-
from .sign_hash_session_info_response import SignHashSessionInfoResponse
304297
from .sign_here import SignHere
305-
from .sign_session_info_request import SignSessionInfoRequest
306-
from .signature_data_info import SignatureDataInfo
307298
from .signature_provider_required_option import SignatureProviderRequiredOption
308299
from .signature_type import SignatureType
309300
from .signer import Signer
@@ -341,18 +332,11 @@
341332
from .template_update_summary import TemplateUpdateSummary
342333
from .text import Text
343334
from .text_custom_field import TextCustomField
344-
from .time_stamp_field import TimeStampField
345335
from .title import Title
346-
from .tsp_health_check_request import TspHealthCheckRequest
347-
from .tsp_health_check_status_description import TspHealthCheckStatusDescription
348-
from .update_transaction_request import UpdateTransactionRequest
349-
from .update_transaction_response import UpdateTransactionResponse
350336
from .usage_history import UsageHistory
351-
from .user import User
352337
from .user_account_management_granular_information import UserAccountManagementGranularInformation
353338
from .user_info import UserInfo
354339
from .user_info_list import UserInfoList
355-
from .user_info_response import UserInfoResponse
356340
from .user_information import UserInformation
357341
from .user_information_list import UserInformationList
358342
from .user_password_information import UserPasswordInformation

docusign_esign/models/account_role_settings.py

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AccountRoleSettings(object):
2121
NOTE: This class is auto generated by the swagger code generator program.
2222
Do not edit the class manually.
2323
"""
24-
def __init__(self, allow_account_management=None, allow_account_management_metadata=None, allow_api_access=None, allow_api_access_metadata=None, allow_api_access_to_account=None, allow_api_access_to_account_metadata=None, allow_api_sending_on_behalf_of_others=None, allow_api_sending_on_behalf_of_others_metadata=None, allow_api_sequential_signing=None, allow_api_sequential_signing_metadata=None, allow_bulk_sending=None, allow_bulk_sending_metadata=None, allow_docu_sign_desktop_client=None, allow_docu_sign_desktop_client_metadata=None, allowed_address_book_access=None, allowed_address_book_access_metadata=None, allowed_template_access=None, allowed_template_access_metadata=None, allowed_to_be_envelope_transfer_recipient=None, allowed_to_be_envelope_transfer_recipient_metadata=None, allow_envelope_sending=None, allow_envelope_sending_metadata=None, allow_e_seal_recipients=None, allow_e_seal_recipients_metadata=None, allow_power_forms_admin_to_access_all_power_form_envelopes=None, allow_power_forms_admin_to_access_all_power_form_envelopes_metadata=None, allow_senders_to_set_recipient_email_language=None, allow_senders_to_set_recipient_email_language_metadata=None, allow_signer_attachments=None, allow_signer_attachments_metadata=None, allow_supplemental_documents=None, allow_supplemental_documents_metadata=None, allow_tagging_in_send_and_correct=None, allow_tagging_in_send_and_correct_metadata=None, allow_vaulting=None, allow_vaulting_metadata=None, allow_wet_signing_override=None, allow_wet_signing_override_metadata=None, can_create_workspaces=None, can_create_workspaces_metadata=None, disable_document_upload=None, disable_document_upload_metadata=None, disable_other_actions=None, disable_other_actions_metadata=None, enable_api_request_logging=None, enable_api_request_logging_metadata=None, enable_recipient_viewing_notifications=None, enable_recipient_viewing_notifications_metadata=None, enable_sequential_signing_interface=None, enable_sequential_signing_interface_metadata=None, enable_transaction_point_integration=None, enable_transaction_point_integration_metadata=None, power_form_role=None, power_form_role_metadata=None, receive_completed_self_signed_documents_as_email_links=None, receive_completed_self_signed_documents_as_email_links_metadata=None, supplemental_documents_must_accept=None, supplemental_documents_must_accept_metadata=None, supplemental_documents_must_read=None, supplemental_documents_must_read_metadata=None, supplemental_documents_must_view=None, supplemental_documents_must_view_metadata=None, use_new_docu_sign_experience_interface=None, use_new_docu_sign_experience_interface_metadata=None, use_new_sending_interface=None, use_new_sending_interface_metadata=None, vaulting_mode=None, vaulting_mode_metadata=None):
24+
def __init__(self, allow_account_management=None, allow_account_management_metadata=None, allow_api_access=None, allow_api_access_metadata=None, allow_api_access_to_account=None, allow_api_access_to_account_metadata=None, allow_api_sending_on_behalf_of_others=None, allow_api_sending_on_behalf_of_others_metadata=None, allow_api_sequential_signing=None, allow_api_sequential_signing_metadata=None, allow_auto_tagging=None, allow_auto_tagging_metadata=None, allow_bulk_sending=None, allow_bulk_sending_metadata=None, allow_docu_sign_desktop_client=None, allow_docu_sign_desktop_client_metadata=None, allowed_address_book_access=None, allowed_address_book_access_metadata=None, allowed_template_access=None, allowed_template_access_metadata=None, allowed_to_be_envelope_transfer_recipient=None, allowed_to_be_envelope_transfer_recipient_metadata=None, allow_envelope_sending=None, allow_envelope_sending_metadata=None, allow_e_seal_recipients=None, allow_e_seal_recipients_metadata=None, allow_power_forms_admin_to_access_all_power_form_envelopes=None, allow_power_forms_admin_to_access_all_power_form_envelopes_metadata=None, allow_senders_to_set_recipient_email_language=None, allow_senders_to_set_recipient_email_language_metadata=None, allow_signer_attachments=None, allow_signer_attachments_metadata=None, allow_supplemental_documents=None, allow_supplemental_documents_metadata=None, allow_tagging_in_send_and_correct=None, allow_tagging_in_send_and_correct_metadata=None, allow_vaulting=None, allow_vaulting_metadata=None, allow_wet_signing_override=None, allow_wet_signing_override_metadata=None, can_create_workspaces=None, can_create_workspaces_metadata=None, disable_document_upload=None, disable_document_upload_metadata=None, disable_other_actions=None, disable_other_actions_metadata=None, enable_api_request_logging=None, enable_api_request_logging_metadata=None, enable_recipient_viewing_notifications=None, enable_recipient_viewing_notifications_metadata=None, enable_sequential_signing_interface=None, enable_sequential_signing_interface_metadata=None, enable_transaction_point_integration=None, enable_transaction_point_integration_metadata=None, power_form_role=None, power_form_role_metadata=None, receive_completed_self_signed_documents_as_email_links=None, receive_completed_self_signed_documents_as_email_links_metadata=None, supplemental_documents_must_accept=None, supplemental_documents_must_accept_metadata=None, supplemental_documents_must_read=None, supplemental_documents_must_read_metadata=None, supplemental_documents_must_view=None, supplemental_documents_must_view_metadata=None, use_new_docu_sign_experience_interface=None, use_new_docu_sign_experience_interface_metadata=None, use_new_sending_interface=None, use_new_sending_interface_metadata=None, vaulting_mode=None, vaulting_mode_metadata=None):
2525
"""
2626
AccountRoleSettings - a model defined in Swagger
2727
@@ -41,6 +41,8 @@ def __init__(self, allow_account_management=None, allow_account_management_metad
4141
'allow_api_sending_on_behalf_of_others_metadata': 'SettingsMetadata',
4242
'allow_api_sequential_signing': 'str',
4343
'allow_api_sequential_signing_metadata': 'SettingsMetadata',
44+
'allow_auto_tagging': 'str',
45+
'allow_auto_tagging_metadata': 'SettingsMetadata',
4446
'allow_bulk_sending': 'str',
4547
'allow_bulk_sending_metadata': 'SettingsMetadata',
4648
'allow_docu_sign_desktop_client': 'str',
@@ -112,6 +114,8 @@ def __init__(self, allow_account_management=None, allow_account_management_metad
112114
'allow_api_sending_on_behalf_of_others_metadata': 'allowApiSendingOnBehalfOfOthersMetadata',
113115
'allow_api_sequential_signing': 'allowApiSequentialSigning',
114116
'allow_api_sequential_signing_metadata': 'allowApiSequentialSigningMetadata',
117+
'allow_auto_tagging': 'allowAutoTagging',
118+
'allow_auto_tagging_metadata': 'allowAutoTaggingMetadata',
115119
'allow_bulk_sending': 'allowBulkSending',
116120
'allow_bulk_sending_metadata': 'allowBulkSendingMetadata',
117121
'allow_docu_sign_desktop_client': 'allowDocuSignDesktopClient',
@@ -182,6 +186,8 @@ def __init__(self, allow_account_management=None, allow_account_management_metad
182186
self._allow_api_sending_on_behalf_of_others_metadata = allow_api_sending_on_behalf_of_others_metadata
183187
self._allow_api_sequential_signing = allow_api_sequential_signing
184188
self._allow_api_sequential_signing_metadata = allow_api_sequential_signing_metadata
189+
self._allow_auto_tagging = allow_auto_tagging
190+
self._allow_auto_tagging_metadata = allow_auto_tagging_metadata
185191
self._allow_bulk_sending = allow_bulk_sending
186192
self._allow_bulk_sending_metadata = allow_bulk_sending_metadata
187193
self._allow_docu_sign_desktop_client = allow_docu_sign_desktop_client
@@ -461,6 +467,50 @@ def allow_api_sequential_signing_metadata(self, allow_api_sequential_signing_met
461467

462468
self._allow_api_sequential_signing_metadata = allow_api_sequential_signing_metadata
463469

470+
@property
471+
def allow_auto_tagging(self):
472+
"""
473+
Gets the allow_auto_tagging of this AccountRoleSettings.
474+
475+
476+
:return: The allow_auto_tagging of this AccountRoleSettings.
477+
:rtype: str
478+
"""
479+
return self._allow_auto_tagging
480+
481+
@allow_auto_tagging.setter
482+
def allow_auto_tagging(self, allow_auto_tagging):
483+
"""
484+
Sets the allow_auto_tagging of this AccountRoleSettings.
485+
486+
487+
:param allow_auto_tagging: The allow_auto_tagging of this AccountRoleSettings.
488+
:type: str
489+
"""
490+
491+
self._allow_auto_tagging = allow_auto_tagging
492+
493+
@property
494+
def allow_auto_tagging_metadata(self):
495+
"""
496+
Gets the allow_auto_tagging_metadata of this AccountRoleSettings.
497+
498+
:return: The allow_auto_tagging_metadata of this AccountRoleSettings.
499+
:rtype: SettingsMetadata
500+
"""
501+
return self._allow_auto_tagging_metadata
502+
503+
@allow_auto_tagging_metadata.setter
504+
def allow_auto_tagging_metadata(self, allow_auto_tagging_metadata):
505+
"""
506+
Sets the allow_auto_tagging_metadata of this AccountRoleSettings.
507+
508+
:param allow_auto_tagging_metadata: The allow_auto_tagging_metadata of this AccountRoleSettings.
509+
:type: SettingsMetadata
510+
"""
511+
512+
self._allow_auto_tagging_metadata = allow_auto_tagging_metadata
513+
464514
@property
465515
def allow_bulk_sending(self):
466516
"""

0 commit comments

Comments
 (0)