Skip to content

Commit c46e7a9

Browse files
Version 3.11.0rc1-v2.1-21.2.00.00 release (#116)
Co-authored-by: DevCenter-DocuSign <dcdev@docusign.com>
1 parent 98d99b5 commit c46e7a9

31 files changed

+6549
-28
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ 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+
## [3.11.0rc1] - eSignature API v2.1-21.2.00.00 - 2021-07-13
7+
### Changed
8+
- Added support for version v2.1-21.2.00.00 of the DocuSign eSignature API.
9+
- Updated the SDK release version.
10+
611
## [3.10.0] - eSignature API v2.1-21.1.02.00 - 2021-06-08
712
### Breaking
813
- Removed methods `get_account_settings_export`,`get_seal_providers` from Accounts.

docusign_esign/client/api_exception.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def __init__(self, status=None, reason=None, http_resp=None):
2121
self.reason = http_resp.reason
2222
self.body = http_resp.data
2323
self.headers = http_resp.getheaders()
24+
self.trace_token = http_resp.getheader('X-DocuSign-TraceToken')
25+
self.timestamp = http_resp.getheader('date')
26+
self.response = http_resp
2427
else:
2528
self.status = status
2629
self.reason = reason
@@ -31,8 +34,10 @@ def __str__(self):
3134
"""
3235
Custom error messages for exception
3336
"""
34-
error_message = "({0})\n"\
35-
"Reason: {1}\n".format(self.status, self.reason)
37+
error_message = "({0})\n" \
38+
"Reason: {1}\n" \
39+
"Trace-Token: {2}\n" \
40+
"Timestamp: {3}\n".format(self.status, self.reason, self.trace_token, self.timestamp)
3641
if self.headers:
3742
error_message += "HTTP response headers: {0}\n".format(self.headers)
3843

docusign_esign/client/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def __init__(self):
9090
self.key_file = None
9191

9292
if PY3:
93-
self.user_agent = 'Swagger-Codegen/v2.1/3.10.0/python3'
93+
self.user_agent = 'Swagger-Codegen/v2.1/3.11.0rc1/python3'
9494
else:
95-
self.user_agent = 'Swagger-Codegen/v2.1/3.10.0/python2'
95+
self.user_agent = 'Swagger-Codegen/v2.1/3.11.0rc1/python2'
9696

9797
@property
9898
def logger_file(self):

docusign_esign/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,3 +473,4 @@
473473
from docusign_esign.models.workspace_user import WorkspaceUser
474474
from docusign_esign.models.workspace_user_authorization import WorkspaceUserAuthorization
475475
from docusign_esign.models.zip import Zip
476+
from docusign_esign.models.prefill_form_data import PrefillFormData

docusign_esign/models/account_billing_plan.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class AccountBillingPlan(object):
5151
'plan_feature_sets': 'list[FeatureSet]',
5252
'plan_id': 'str',
5353
'plan_name': 'str',
54+
'plan_start_date': 'str',
55+
'renewal_date': 'str',
5456
'renewal_status': 'str',
5557
'seat_discounts': 'list[SeatDiscount]',
5658
'support_incident_fee': 'str',
@@ -78,13 +80,15 @@ class AccountBillingPlan(object):
7880
'plan_feature_sets': 'planFeatureSets',
7981
'plan_id': 'planId',
8082
'plan_name': 'planName',
83+
'plan_start_date': 'planStartDate',
84+
'renewal_date': 'renewalDate',
8185
'renewal_status': 'renewalStatus',
8286
'seat_discounts': 'seatDiscounts',
8387
'support_incident_fee': 'supportIncidentFee',
8488
'support_plan_fee': 'supportPlanFee'
8589
}
8690

87-
def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_store_receipt_purchase_date=None, can_cancel_renewal=None, can_upgrade=None, currency_code=None, downgrade_plan_information=None, enable_support=None, included_seats=None, incremental_seats=None, is_downgrade=None, notification_type=None, other_discount_percent=None, payment_cycle=None, payment_method=None, per_seat_price=None, plan_classification=None, plan_feature_sets=None, plan_id=None, plan_name=None, renewal_status=None, seat_discounts=None, support_incident_fee=None, support_plan_fee=None): # noqa: E501
91+
def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_store_receipt_purchase_date=None, can_cancel_renewal=None, can_upgrade=None, currency_code=None, downgrade_plan_information=None, enable_support=None, included_seats=None, incremental_seats=None, is_downgrade=None, notification_type=None, other_discount_percent=None, payment_cycle=None, payment_method=None, per_seat_price=None, plan_classification=None, plan_feature_sets=None, plan_id=None, plan_name=None, plan_start_date=None, renewal_date=None, renewal_status=None, seat_discounts=None, support_incident_fee=None, support_plan_fee=None): # noqa: E501
8892
"""AccountBillingPlan - a model defined in Swagger""" # noqa: E501
8993

9094
self._add_ons = None
@@ -107,6 +111,8 @@ def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_sto
107111
self._plan_feature_sets = None
108112
self._plan_id = None
109113
self._plan_name = None
114+
self._plan_start_date = None
115+
self._renewal_date = None
110116
self._renewal_status = None
111117
self._seat_discounts = None
112118
self._support_incident_fee = None
@@ -153,6 +159,10 @@ def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_sto
153159
self.plan_id = plan_id
154160
if plan_name is not None:
155161
self.plan_name = plan_name
162+
if plan_start_date is not None:
163+
self.plan_start_date = plan_start_date
164+
if renewal_date is not None:
165+
self.renewal_date = renewal_date
156166
if renewal_status is not None:
157167
self.renewal_status = renewal_status
158168
if seat_discounts is not None:
@@ -620,6 +630,52 @@ def plan_name(self, plan_name):
620630

621631
self._plan_name = plan_name
622632

633+
@property
634+
def plan_start_date(self):
635+
"""Gets the plan_start_date of this AccountBillingPlan. # noqa: E501
636+
637+
# noqa: E501
638+
639+
:return: The plan_start_date of this AccountBillingPlan. # noqa: E501
640+
:rtype: str
641+
"""
642+
return self._plan_start_date
643+
644+
@plan_start_date.setter
645+
def plan_start_date(self, plan_start_date):
646+
"""Sets the plan_start_date of this AccountBillingPlan.
647+
648+
# noqa: E501
649+
650+
:param plan_start_date: The plan_start_date of this AccountBillingPlan. # noqa: E501
651+
:type: str
652+
"""
653+
654+
self._plan_start_date = plan_start_date
655+
656+
@property
657+
def renewal_date(self):
658+
"""Gets the renewal_date of this AccountBillingPlan. # noqa: E501
659+
660+
# noqa: E501
661+
662+
:return: The renewal_date of this AccountBillingPlan. # noqa: E501
663+
:rtype: str
664+
"""
665+
return self._renewal_date
666+
667+
@renewal_date.setter
668+
def renewal_date(self, renewal_date):
669+
"""Sets the renewal_date of this AccountBillingPlan.
670+
671+
# noqa: E501
672+
673+
:param renewal_date: The renewal_date of this AccountBillingPlan. # noqa: E501
674+
:type: str
675+
"""
676+
677+
self._renewal_date = renewal_date
678+
623679
@property
624680
def renewal_status(self):
625681
"""Gets the renewal_status of this AccountBillingPlan. # noqa: E501

docusign_esign/models/agent.py

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Agent(object):
3636
'add_access_code_to_email': 'str',
3737
'additional_notifications': 'list[RecipientAdditionalNotification]',
3838
'allow_system_override_for_locked_recipient': 'str',
39+
'auto_responded_reason': 'str',
3940
'client_user_id': 'str',
4041
'completed_count': 'str',
4142
'custom_fields': 'list[str]',
@@ -73,6 +74,8 @@ class Agent(object):
7374
'note': 'str',
7475
'note_metadata': 'PropertyMetadata',
7576
'phone_authentication': 'RecipientPhoneAuthentication',
77+
'phone_number': 'RecipientPhoneNumber',
78+
'phone_number_metadata': 'PropertyMetadata',
7679
'recipient_attachments': 'list[RecipientAttachment]',
7780
'recipient_authentication_status': 'AuthenticationStatus',
7881
'recipient_feature_metadata': 'list[FeatureAvailableMetadata]',
@@ -108,6 +111,7 @@ class Agent(object):
108111
'add_access_code_to_email': 'addAccessCodeToEmail',
109112
'additional_notifications': 'additionalNotifications',
110113
'allow_system_override_for_locked_recipient': 'allowSystemOverrideForLockedRecipient',
114+
'auto_responded_reason': 'autoRespondedReason',
111115
'client_user_id': 'clientUserId',
112116
'completed_count': 'completedCount',
113117
'custom_fields': 'customFields',
@@ -145,6 +149,8 @@ class Agent(object):
145149
'note': 'note',
146150
'note_metadata': 'noteMetadata',
147151
'phone_authentication': 'phoneAuthentication',
152+
'phone_number': 'phoneNumber',
153+
'phone_number_metadata': 'phoneNumberMetadata',
148154
'recipient_attachments': 'recipientAttachments',
149155
'recipient_authentication_status': 'recipientAuthenticationStatus',
150156
'recipient_feature_metadata': 'recipientFeatureMetadata',
@@ -174,14 +180,15 @@ class Agent(object):
174180
'user_id': 'userId'
175181
}
176182

177-
def __init__(self, access_code=None, access_code_metadata=None, add_access_code_to_email=None, additional_notifications=None, allow_system_override_for_locked_recipient=None, client_user_id=None, completed_count=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, delivery_method_metadata=None, designator_id=None, designator_id_guid=None, document_visibility=None, email=None, email_metadata=None, email_notification=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, fax_number_metadata=None, first_name=None, first_name_metadata=None, full_name=None, full_name_metadata=None, id_check_configuration_name=None, id_check_configuration_name_metadata=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, last_name_metadata=None, locked_recipient_phone_auth_editable=None, locked_recipient_sms_editable=None, name=None, name_metadata=None, note=None, note_metadata=None, phone_authentication=None, recipient_attachments=None, recipient_authentication_status=None, recipient_feature_metadata=None, recipient_id=None, recipient_id_guid=None, recipient_type=None, recipient_type_metadata=None, require_id_lookup=None, require_id_lookup_metadata=None, role_name=None, routing_order=None, routing_order_metadata=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_id_metadata=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, status_code=None, suppress_emails=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501
183+
def __init__(self, access_code=None, access_code_metadata=None, add_access_code_to_email=None, additional_notifications=None, allow_system_override_for_locked_recipient=None, auto_responded_reason=None, client_user_id=None, completed_count=None, custom_fields=None, declined_date_time=None, declined_reason=None, delivered_date_time=None, delivery_method=None, delivery_method_metadata=None, designator_id=None, designator_id_guid=None, document_visibility=None, email=None, email_metadata=None, email_notification=None, embedded_recipient_start_url=None, error_details=None, excluded_documents=None, fax_number=None, fax_number_metadata=None, first_name=None, first_name_metadata=None, full_name=None, full_name_metadata=None, id_check_configuration_name=None, id_check_configuration_name_metadata=None, id_check_information_input=None, identity_verification=None, inherit_email_notification_configuration=None, last_name=None, last_name_metadata=None, locked_recipient_phone_auth_editable=None, locked_recipient_sms_editable=None, name=None, name_metadata=None, note=None, note_metadata=None, phone_authentication=None, phone_number=None, phone_number_metadata=None, recipient_attachments=None, recipient_authentication_status=None, recipient_feature_metadata=None, recipient_id=None, recipient_id_guid=None, recipient_type=None, recipient_type_metadata=None, require_id_lookup=None, require_id_lookup_metadata=None, role_name=None, routing_order=None, routing_order_metadata=None, sent_date_time=None, signed_date_time=None, signing_group_id=None, signing_group_id_metadata=None, signing_group_name=None, signing_group_users=None, sms_authentication=None, social_authentications=None, status=None, status_code=None, suppress_emails=None, template_locked=None, template_required=None, total_tab_count=None, user_id=None): # noqa: E501
178184
"""Agent - a model defined in Swagger""" # noqa: E501
179185

180186
self._access_code = None
181187
self._access_code_metadata = None
182188
self._add_access_code_to_email = None
183189
self._additional_notifications = None
184190
self._allow_system_override_for_locked_recipient = None
191+
self._auto_responded_reason = None
185192
self._client_user_id = None
186193
self._completed_count = None
187194
self._custom_fields = None
@@ -219,6 +226,8 @@ def __init__(self, access_code=None, access_code_metadata=None, add_access_code_
219226
self._note = None
220227
self._note_metadata = None
221228
self._phone_authentication = None
229+
self._phone_number = None
230+
self._phone_number_metadata = None
222231
self._recipient_attachments = None
223232
self._recipient_authentication_status = None
224233
self._recipient_feature_metadata = None
@@ -258,6 +267,8 @@ def __init__(self, access_code=None, access_code_metadata=None, add_access_code_
258267
self.additional_notifications = additional_notifications
259268
if allow_system_override_for_locked_recipient is not None:
260269
self.allow_system_override_for_locked_recipient = allow_system_override_for_locked_recipient
270+
if auto_responded_reason is not None:
271+
self.auto_responded_reason = auto_responded_reason
261272
if client_user_id is not None:
262273
self.client_user_id = client_user_id
263274
if completed_count is not None:
@@ -332,6 +343,10 @@ def __init__(self, access_code=None, access_code_metadata=None, add_access_code_
332343
self.note_metadata = note_metadata
333344
if phone_authentication is not None:
334345
self.phone_authentication = phone_authentication
346+
if phone_number is not None:
347+
self.phone_number = phone_number
348+
if phone_number_metadata is not None:
349+
self.phone_number_metadata = phone_number_metadata
335350
if recipient_attachments is not None:
336351
self.recipient_attachments = recipient_attachments
337352
if recipient_authentication_status is not None:
@@ -500,6 +515,29 @@ def allow_system_override_for_locked_recipient(self, allow_system_override_for_l
500515

501516
self._allow_system_override_for_locked_recipient = allow_system_override_for_locked_recipient
502517

518+
@property
519+
def auto_responded_reason(self):
520+
"""Gets the auto_responded_reason of this Agent. # noqa: E501
521+
522+
# noqa: E501
523+
524+
:return: The auto_responded_reason of this Agent. # noqa: E501
525+
:rtype: str
526+
"""
527+
return self._auto_responded_reason
528+
529+
@auto_responded_reason.setter
530+
def auto_responded_reason(self, auto_responded_reason):
531+
"""Sets the auto_responded_reason of this Agent.
532+
533+
# noqa: E501
534+
535+
:param auto_responded_reason: The auto_responded_reason of this Agent. # noqa: E501
536+
:type: str
537+
"""
538+
539+
self._auto_responded_reason = auto_responded_reason
540+
503541
@property
504542
def client_user_id(self):
505543
"""Gets the client_user_id of this Agent. # noqa: E501
@@ -1323,6 +1361,48 @@ def phone_authentication(self, phone_authentication):
13231361

13241362
self._phone_authentication = phone_authentication
13251363

1364+
@property
1365+
def phone_number(self):
1366+
"""Gets the phone_number of this Agent. # noqa: E501
1367+
1368+
1369+
:return: The phone_number of this Agent. # noqa: E501
1370+
:rtype: RecipientPhoneNumber
1371+
"""
1372+
return self._phone_number
1373+
1374+
@phone_number.setter
1375+
def phone_number(self, phone_number):
1376+
"""Sets the phone_number of this Agent.
1377+
1378+
1379+
:param phone_number: The phone_number of this Agent. # noqa: E501
1380+
:type: RecipientPhoneNumber
1381+
"""
1382+
1383+
self._phone_number = phone_number
1384+
1385+
@property
1386+
def phone_number_metadata(self):
1387+
"""Gets the phone_number_metadata of this Agent. # noqa: E501
1388+
1389+
1390+
:return: The phone_number_metadata of this Agent. # noqa: E501
1391+
:rtype: PropertyMetadata
1392+
"""
1393+
return self._phone_number_metadata
1394+
1395+
@phone_number_metadata.setter
1396+
def phone_number_metadata(self, phone_number_metadata):
1397+
"""Sets the phone_number_metadata of this Agent.
1398+
1399+
1400+
:param phone_number_metadata: The phone_number_metadata of this Agent. # noqa: E501
1401+
:type: PropertyMetadata
1402+
"""
1403+
1404+
self._phone_number_metadata = phone_number_metadata
1405+
13261406
@property
13271407
def recipient_attachments(self):
13281408
"""Gets the recipient_attachments of this Agent. # noqa: E501

0 commit comments

Comments
 (0)