Skip to content

Commit

Permalink
Version 2.11.0rc1-v2-21.2.00.00 release (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: DevCenter-DocuSign <[email protected]>
  • Loading branch information
harsharahul and DevCenter-DocuSign authored Jul 16, 2021
1 parent 7fca138 commit d271973
Show file tree
Hide file tree
Showing 10 changed files with 313 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## [2.11.0rc1] - eSignature API v2-2.11.0rc1 - 2021-07-13
### Changed
- Added support for version v2-2.11.0rc1 of the DocuSign eSignature API.
- Updated the SDK release version.

## [2.10.0] - eSignature API v2-21.1.02.00 - 2021-06-08
### Breaking
- Removed methods `get_account_settings_export`,`get_seal_providers` from Accounts.
Expand Down
2 changes: 1 addition & 1 deletion docusign_esign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
from docusign_esign.models.envelope_documents_result import EnvelopeDocumentsResult
from docusign_esign.models.envelope_event import EnvelopeEvent
from docusign_esign.models.envelope_form_data import EnvelopeFormData
from docusign_esign.models.envelope_form_data_prefill_form_data import EnvelopeFormDataPrefillFormData
from docusign_esign.models.envelope_id import EnvelopeId
from docusign_esign.models.envelope_ids_request import EnvelopeIdsRequest
from docusign_esign.models.envelope_notification_request import EnvelopeNotificationRequest
Expand Down Expand Up @@ -280,6 +279,7 @@
from docusign_esign.models.power_forms_form_data_response import PowerFormsFormDataResponse
from docusign_esign.models.power_forms_request import PowerFormsRequest
from docusign_esign.models.power_forms_response import PowerFormsResponse
from docusign_esign.models.prefill_form_data import PrefillFormData
from docusign_esign.models.property_metadata import PropertyMetadata
from docusign_esign.models.province import Province
from docusign_esign.models.provisioning_information import ProvisioningInformation
Expand Down
9 changes: 7 additions & 2 deletions docusign_esign/client/api_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def __init__(self, status=None, reason=None, http_resp=None):
self.reason = http_resp.reason
self.body = http_resp.data
self.headers = http_resp.getheaders()
self.trace_token = http_resp.getheader('X-DocuSign-TraceToken')
self.timestamp = http_resp.getheader('date')
self.response = http_resp
else:
self.status = status
self.reason = reason
Expand All @@ -31,8 +34,10 @@ def __str__(self):
"""
Custom error messages for exception
"""
error_message = "({0})\n"\
"Reason: {1}\n".format(self.status, self.reason)
error_message = "({0})\n" \
"Reason: {1}\n" \
"Trace-Token: {2}\n" \
"Timestamp: {3}\n".format(self.status, self.reason, self.trace_token, self.timestamp)
if self.headers:
error_message += "HTTP response headers: {0}\n".format(self.headers)

Expand Down
4 changes: 2 additions & 2 deletions docusign_esign/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def __init__(self):
self.key_file = None

if PY3:
self.user_agent = 'Swagger-Codegen/v2/2.10.0/python3'
self.user_agent = 'Swagger-Codegen/v2/2.11.0rc1/python3'
else:
self.user_agent = 'Swagger-Codegen/v2/2.10.0/python2'
self.user_agent = 'Swagger-Codegen/v2/2.11.0rc1/python2'

@property
def logger_file(self):
Expand Down
2 changes: 1 addition & 1 deletion docusign_esign/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@
from docusign_esign.models.envelope_documents_result import EnvelopeDocumentsResult
from docusign_esign.models.envelope_event import EnvelopeEvent
from docusign_esign.models.envelope_form_data import EnvelopeFormData
from docusign_esign.models.envelope_form_data_prefill_form_data import EnvelopeFormDataPrefillFormData
from docusign_esign.models.envelope_id import EnvelopeId
from docusign_esign.models.envelope_ids_request import EnvelopeIdsRequest
from docusign_esign.models.envelope_notification_request import EnvelopeNotificationRequest
Expand Down Expand Up @@ -259,6 +258,7 @@
from docusign_esign.models.power_forms_form_data_response import PowerFormsFormDataResponse
from docusign_esign.models.power_forms_request import PowerFormsRequest
from docusign_esign.models.power_forms_response import PowerFormsResponse
from docusign_esign.models.prefill_form_data import PrefillFormData
from docusign_esign.models.property_metadata import PropertyMetadata
from docusign_esign.models.province import Province
from docusign_esign.models.provisioning_information import ProvisioningInformation
Expand Down
58 changes: 57 additions & 1 deletion docusign_esign/models/account_billing_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class AccountBillingPlan(object):
'plan_feature_sets': 'list[FeatureSet]',
'plan_id': 'str',
'plan_name': 'str',
'plan_start_date': 'str',
'renewal_date': 'str',
'renewal_status': 'str',
'seat_discounts': 'list[SeatDiscount]',
'support_incident_fee': 'str',
Expand All @@ -76,13 +78,15 @@ class AccountBillingPlan(object):
'plan_feature_sets': 'planFeatureSets',
'plan_id': 'planId',
'plan_name': 'planName',
'plan_start_date': 'planStartDate',
'renewal_date': 'renewalDate',
'renewal_status': 'renewalStatus',
'seat_discounts': 'seatDiscounts',
'support_incident_fee': 'supportIncidentFee',
'support_plan_fee': 'supportPlanFee'
}

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, 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
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, 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
"""AccountBillingPlan - a model defined in Swagger""" # noqa: E501

self._add_ons = None
Expand All @@ -104,6 +108,8 @@ def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_sto
self._plan_feature_sets = None
self._plan_id = None
self._plan_name = None
self._plan_start_date = None
self._renewal_date = None
self._renewal_status = None
self._seat_discounts = None
self._support_incident_fee = None
Expand Down Expand Up @@ -148,6 +154,10 @@ def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_sto
self.plan_id = plan_id
if plan_name is not None:
self.plan_name = plan_name
if plan_start_date is not None:
self.plan_start_date = plan_start_date
if renewal_date is not None:
self.renewal_date = renewal_date
if renewal_status is not None:
self.renewal_status = renewal_status
if seat_discounts is not None:
Expand Down Expand Up @@ -594,6 +604,52 @@ def plan_name(self, plan_name):

self._plan_name = plan_name

@property
def plan_start_date(self):
"""Gets the plan_start_date of this AccountBillingPlan. # noqa: E501
# noqa: E501
:return: The plan_start_date of this AccountBillingPlan. # noqa: E501
:rtype: str
"""
return self._plan_start_date

@plan_start_date.setter
def plan_start_date(self, plan_start_date):
"""Sets the plan_start_date of this AccountBillingPlan.
# noqa: E501
:param plan_start_date: The plan_start_date of this AccountBillingPlan. # noqa: E501
:type: str
"""

self._plan_start_date = plan_start_date

@property
def renewal_date(self):
"""Gets the renewal_date of this AccountBillingPlan. # noqa: E501
# noqa: E501
:return: The renewal_date of this AccountBillingPlan. # noqa: E501
:rtype: str
"""
return self._renewal_date

@renewal_date.setter
def renewal_date(self, renewal_date):
"""Sets the renewal_date of this AccountBillingPlan.
# noqa: E501
:param renewal_date: The renewal_date of this AccountBillingPlan. # noqa: E501
:type: str
"""

self._renewal_date = renewal_date

@property
def renewal_status(self):
"""Gets the renewal_status of this AccountBillingPlan. # noqa: E501
Expand Down
6 changes: 3 additions & 3 deletions docusign_esign/models/envelope_form_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class EnvelopeFormData(object):
'email_subject': 'str',
'envelope_id': 'str',
'form_data': 'list[NameValue]',
'prefill_form_data': 'EnvelopeFormDataPrefillFormData',
'prefill_form_data': 'PrefillFormData',
'recipient_form_data': 'list[RecipientFormData]',
'sent_date_time': 'str',
'status': 'str'
Expand Down Expand Up @@ -152,7 +152,7 @@ def prefill_form_data(self):
:return: The prefill_form_data of this EnvelopeFormData. # noqa: E501
:rtype: EnvelopeFormDataPrefillFormData
:rtype: PrefillFormData
"""
return self._prefill_form_data

Expand All @@ -162,7 +162,7 @@ def prefill_form_data(self, prefill_form_data):
:param prefill_form_data: The prefill_form_data of this EnvelopeFormData. # noqa: E501
:type: EnvelopeFormDataPrefillFormData
:type: PrefillFormData
"""

self._prefill_form_data = prefill_form_data
Expand Down
Loading

0 comments on commit d271973

Please sign in to comment.