Skip to content

Commit 96ffe59

Browse files
authored
Version 2.12.0rc1-v2-21.2.02.00 release (#124)
Co-authored-by: Dhaval <d>
1 parent 66f6348 commit 96ffe59

File tree

357 files changed

+7685
-8506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+7685
-8506
lines changed

.swagger-codegen/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.13-SNAPSHOT
1+
2.4.21-SNAPSHOT

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ 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.12.0rc1] - eSignature API v2-21.2.02.00 - 2021-09-08
7+
### Changed
8+
- Added support for version v2-21.2.02.00 of the DocuSign eSignature API.
9+
- Updated the SDK release version.
10+
- The way all models take in init parameters using `kwargs`
11+
- Updated to latest OpenAPI spec.
12+
613
## [2.11.0] - eSignature API v2-2.11.0 - 2021-07-22
714
### Changed
815
- Added support for version v2-2.11.0 of the DocuSign eSignature API.

docusign_esign/__init__.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@
3535
from .apis.users_api import UsersApi
3636
from .apis.workspaces_api import WorkspacesApi
3737

38+
# import ApiClient
39+
from .client.api_client import ApiClient
40+
from .client.configuration import Configuration
41+
from .client.api_exception import ApiException
42+
43+
from .client.auth.oauth import OAuth
44+
from .client.auth.oauth import OAuthToken
45+
from .client.auth.oauth import Account
46+
from .client.auth.oauth import Organization
47+
from .client.auth.oauth import Link
48+
3849
# import models into sdk package
3950
from docusign_esign.models.account_address import AccountAddress
4051
from docusign_esign.models.account_billing_plan import AccountBillingPlan
@@ -388,15 +399,5 @@
388399
from docusign_esign.models.workspace_user_authorization import WorkspaceUserAuthorization
389400
from docusign_esign.models.zip import Zip
390401

391-
# import ApiClient
392-
from .client.api_client import ApiClient
393-
from .client.api_client import ApiException
394-
from .client.auth.oauth import OAuth
395-
from .client.auth.oauth import OAuthToken
396-
from .client.auth.oauth import Account
397-
from .client.auth.oauth import Organization
398-
from .client.auth.oauth import Link
399-
400-
from .client.configuration import Configuration
401402

402-
configuration = Configuration()
403+
configuration = Configuration()

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/2.11.0/python3'
93+
self.user_agent = 'Swagger-Codegen/v2/2.12.0rc1/python3'
9494
else:
95-
self.user_agent = 'Swagger-Codegen/v2/2.11.0/python2'
95+
self.user_agent = 'Swagger-Codegen/v2/2.12.0rc1/python2'
9696

9797
@property
9898
def logger_file(self):

docusign_esign/models/account_address.py

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import six
1818

19+
from docusign_esign.client.configuration import Configuration
20+
1921

2022
class AccountAddress(object):
2123
"""NOTE: This class is auto generated by the swagger code generator program.
@@ -60,8 +62,11 @@ class AccountAddress(object):
6062
'supported_countries': 'supportedCountries'
6163
}
6264

63-
def __init__(self, address1=None, address2=None, city=None, country=None, email=None, fax=None, first_name=None, last_name=None, phone=None, postal_code=None, state=None, supported_countries=None): # noqa: E501
65+
def __init__(self, _configuration=None, **kwargs): # noqa: E501
6466
"""AccountAddress - a model defined in Swagger""" # noqa: E501
67+
if _configuration is None:
68+
_configuration = Configuration()
69+
self._configuration = _configuration
6570

6671
self._address1 = None
6772
self._address2 = None
@@ -77,30 +82,18 @@ def __init__(self, address1=None, address2=None, city=None, country=None, email=
7782
self._supported_countries = None
7883
self.discriminator = None
7984

80-
if address1 is not None:
81-
self.address1 = address1
82-
if address2 is not None:
83-
self.address2 = address2
84-
if city is not None:
85-
self.city = city
86-
if country is not None:
87-
self.country = country
88-
if email is not None:
89-
self.email = email
90-
if fax is not None:
91-
self.fax = fax
92-
if first_name is not None:
93-
self.first_name = first_name
94-
if last_name is not None:
95-
self.last_name = last_name
96-
if phone is not None:
97-
self.phone = phone
98-
if postal_code is not None:
99-
self.postal_code = postal_code
100-
if state is not None:
101-
self.state = state
102-
if supported_countries is not None:
103-
self.supported_countries = supported_countries
85+
setattr(self, "_{}".format('address1'), kwargs.get('address1', None))
86+
setattr(self, "_{}".format('address2'), kwargs.get('address2', None))
87+
setattr(self, "_{}".format('city'), kwargs.get('city', None))
88+
setattr(self, "_{}".format('country'), kwargs.get('country', None))
89+
setattr(self, "_{}".format('email'), kwargs.get('email', None))
90+
setattr(self, "_{}".format('fax'), kwargs.get('fax', None))
91+
setattr(self, "_{}".format('first_name'), kwargs.get('first_name', None))
92+
setattr(self, "_{}".format('last_name'), kwargs.get('last_name', None))
93+
setattr(self, "_{}".format('phone'), kwargs.get('phone', None))
94+
setattr(self, "_{}".format('postal_code'), kwargs.get('postal_code', None))
95+
setattr(self, "_{}".format('state'), kwargs.get('state', None))
96+
setattr(self, "_{}".format('supported_countries'), kwargs.get('supported_countries', None))
10497

10598
@property
10699
def address1(self):
@@ -418,8 +411,11 @@ def __eq__(self, other):
418411
if not isinstance(other, AccountAddress):
419412
return False
420413

421-
return self.__dict__ == other.__dict__
414+
return self.to_dict() == other.to_dict()
422415

423416
def __ne__(self, other):
424417
"""Returns true if both objects are not equal"""
425-
return not self == other
418+
if not isinstance(other, AccountAddress):
419+
return True
420+
421+
return self.to_dict() != other.to_dict()

docusign_esign/models/account_billing_plan.py

Lines changed: 36 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import six
1818

19+
from docusign_esign.client.configuration import Configuration
20+
1921

2022
class AccountBillingPlan(object):
2123
"""NOTE: This class is auto generated by the swagger code generator program.
@@ -86,8 +88,11 @@ class AccountBillingPlan(object):
8688
'support_plan_fee': 'supportPlanFee'
8789
}
8890

89-
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
91+
def __init__(self, _configuration=None, **kwargs): # noqa: E501
9092
"""AccountBillingPlan - a model defined in Swagger""" # noqa: E501
93+
if _configuration is None:
94+
_configuration = Configuration()
95+
self._configuration = _configuration
9196

9297
self._add_ons = None
9398
self._app_store_receipt_expiration_date = None
@@ -116,56 +121,31 @@ def __init__(self, add_ons=None, app_store_receipt_expiration_date=None, app_sto
116121
self._support_plan_fee = None
117122
self.discriminator = None
118123

119-
if add_ons is not None:
120-
self.add_ons = add_ons
121-
if app_store_receipt_expiration_date is not None:
122-
self.app_store_receipt_expiration_date = app_store_receipt_expiration_date
123-
if app_store_receipt_purchase_date is not None:
124-
self.app_store_receipt_purchase_date = app_store_receipt_purchase_date
125-
if can_cancel_renewal is not None:
126-
self.can_cancel_renewal = can_cancel_renewal
127-
if can_upgrade is not None:
128-
self.can_upgrade = can_upgrade
129-
if currency_code is not None:
130-
self.currency_code = currency_code
131-
if enable_support is not None:
132-
self.enable_support = enable_support
133-
if included_seats is not None:
134-
self.included_seats = included_seats
135-
if incremental_seats is not None:
136-
self.incremental_seats = incremental_seats
137-
if is_downgrade is not None:
138-
self.is_downgrade = is_downgrade
139-
if notification_type is not None:
140-
self.notification_type = notification_type
141-
if other_discount_percent is not None:
142-
self.other_discount_percent = other_discount_percent
143-
if payment_cycle is not None:
144-
self.payment_cycle = payment_cycle
145-
if payment_method is not None:
146-
self.payment_method = payment_method
147-
if per_seat_price is not None:
148-
self.per_seat_price = per_seat_price
149-
if plan_classification is not None:
150-
self.plan_classification = plan_classification
151-
if plan_feature_sets is not None:
152-
self.plan_feature_sets = plan_feature_sets
153-
if plan_id is not None:
154-
self.plan_id = plan_id
155-
if plan_name is not None:
156-
self.plan_name = plan_name
157-
if plan_start_date is not None:
158-
self.plan_start_date = plan_start_date
159-
if renewal_date is not None:
160-
self.renewal_date = renewal_date
161-
if renewal_status is not None:
162-
self.renewal_status = renewal_status
163-
if seat_discounts is not None:
164-
self.seat_discounts = seat_discounts
165-
if support_incident_fee is not None:
166-
self.support_incident_fee = support_incident_fee
167-
if support_plan_fee is not None:
168-
self.support_plan_fee = support_plan_fee
124+
setattr(self, "_{}".format('add_ons'), kwargs.get('add_ons', None))
125+
setattr(self, "_{}".format('app_store_receipt_expiration_date'), kwargs.get('app_store_receipt_expiration_date', None))
126+
setattr(self, "_{}".format('app_store_receipt_purchase_date'), kwargs.get('app_store_receipt_purchase_date', None))
127+
setattr(self, "_{}".format('can_cancel_renewal'), kwargs.get('can_cancel_renewal', None))
128+
setattr(self, "_{}".format('can_upgrade'), kwargs.get('can_upgrade', None))
129+
setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None))
130+
setattr(self, "_{}".format('enable_support'), kwargs.get('enable_support', None))
131+
setattr(self, "_{}".format('included_seats'), kwargs.get('included_seats', None))
132+
setattr(self, "_{}".format('incremental_seats'), kwargs.get('incremental_seats', None))
133+
setattr(self, "_{}".format('is_downgrade'), kwargs.get('is_downgrade', None))
134+
setattr(self, "_{}".format('notification_type'), kwargs.get('notification_type', None))
135+
setattr(self, "_{}".format('other_discount_percent'), kwargs.get('other_discount_percent', None))
136+
setattr(self, "_{}".format('payment_cycle'), kwargs.get('payment_cycle', None))
137+
setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None))
138+
setattr(self, "_{}".format('per_seat_price'), kwargs.get('per_seat_price', None))
139+
setattr(self, "_{}".format('plan_classification'), kwargs.get('plan_classification', None))
140+
setattr(self, "_{}".format('plan_feature_sets'), kwargs.get('plan_feature_sets', None))
141+
setattr(self, "_{}".format('plan_id'), kwargs.get('plan_id', None))
142+
setattr(self, "_{}".format('plan_name'), kwargs.get('plan_name', None))
143+
setattr(self, "_{}".format('plan_start_date'), kwargs.get('plan_start_date', None))
144+
setattr(self, "_{}".format('renewal_date'), kwargs.get('renewal_date', None))
145+
setattr(self, "_{}".format('renewal_status'), kwargs.get('renewal_status', None))
146+
setattr(self, "_{}".format('seat_discounts'), kwargs.get('seat_discounts', None))
147+
setattr(self, "_{}".format('support_incident_fee'), kwargs.get('support_incident_fee', None))
148+
setattr(self, "_{}".format('support_plan_fee'), kwargs.get('support_plan_fee', None))
169149

170150
@property
171151
def add_ons(self):
@@ -782,8 +762,11 @@ def __eq__(self, other):
782762
if not isinstance(other, AccountBillingPlan):
783763
return False
784764

785-
return self.__dict__ == other.__dict__
765+
return self.to_dict() == other.to_dict()
786766

787767
def __ne__(self, other):
788768
"""Returns true if both objects are not equal"""
789-
return not self == other
769+
if not isinstance(other, AccountBillingPlan):
770+
return True
771+
772+
return self.to_dict() != other.to_dict()

docusign_esign/models/account_billing_plan_response.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import six
1818

19+
from docusign_esign.client.configuration import Configuration
20+
1921

2022
class AccountBillingPlanResponse(object):
2123
"""NOTE: This class is auto generated by the swagger code generator program.
@@ -50,8 +52,11 @@ class AccountBillingPlanResponse(object):
5052
'successor_plans': 'successorPlans'
5153
}
5254

53-
def __init__(self, billing_address=None, billing_address_is_credit_card_address=None, billing_plan=None, credit_card_information=None, payment_processor_information=None, referral_information=None, successor_plans=None): # noqa: E501
55+
def __init__(self, _configuration=None, **kwargs): # noqa: E501
5456
"""AccountBillingPlanResponse - a model defined in Swagger""" # noqa: E501
57+
if _configuration is None:
58+
_configuration = Configuration()
59+
self._configuration = _configuration
5560

5661
self._billing_address = None
5762
self._billing_address_is_credit_card_address = None
@@ -62,20 +67,13 @@ def __init__(self, billing_address=None, billing_address_is_credit_card_address=
6267
self._successor_plans = None
6368
self.discriminator = None
6469

65-
if billing_address is not None:
66-
self.billing_address = billing_address
67-
if billing_address_is_credit_card_address is not None:
68-
self.billing_address_is_credit_card_address = billing_address_is_credit_card_address
69-
if billing_plan is not None:
70-
self.billing_plan = billing_plan
71-
if credit_card_information is not None:
72-
self.credit_card_information = credit_card_information
73-
if payment_processor_information is not None:
74-
self.payment_processor_information = payment_processor_information
75-
if referral_information is not None:
76-
self.referral_information = referral_information
77-
if successor_plans is not None:
78-
self.successor_plans = successor_plans
70+
setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None))
71+
setattr(self, "_{}".format('billing_address_is_credit_card_address'), kwargs.get('billing_address_is_credit_card_address', None))
72+
setattr(self, "_{}".format('billing_plan'), kwargs.get('billing_plan', None))
73+
setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None))
74+
setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None))
75+
setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None))
76+
setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None))
7977

8078
@property
8179
def billing_address(self):
@@ -268,8 +266,11 @@ def __eq__(self, other):
268266
if not isinstance(other, AccountBillingPlanResponse):
269267
return False
270268

271-
return self.__dict__ == other.__dict__
269+
return self.to_dict() == other.to_dict()
272270

273271
def __ne__(self, other):
274272
"""Returns true if both objects are not equal"""
275-
return not self == other
273+
if not isinstance(other, AccountBillingPlanResponse):
274+
return True
275+
276+
return self.to_dict() != other.to_dict()

docusign_esign/models/account_identity_verification_response.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import six
1818

19+
from docusign_esign.client.configuration import Configuration
20+
1921

2022
class AccountIdentityVerificationResponse(object):
2123
"""NOTE: This class is auto generated by the swagger code generator program.
@@ -38,14 +40,16 @@ class AccountIdentityVerificationResponse(object):
3840
'identity_verification': 'identityVerification'
3941
}
4042

41-
def __init__(self, identity_verification=None): # noqa: E501
43+
def __init__(self, _configuration=None, **kwargs): # noqa: E501
4244
"""AccountIdentityVerificationResponse - a model defined in Swagger""" # noqa: E501
45+
if _configuration is None:
46+
_configuration = Configuration()
47+
self._configuration = _configuration
4348

4449
self._identity_verification = None
4550
self.discriminator = None
4651

47-
if identity_verification is not None:
48-
self.identity_verification = identity_verification
52+
setattr(self, "_{}".format('identity_verification'), kwargs.get('identity_verification', None))
4953

5054
@property
5155
def identity_verification(self):
@@ -110,8 +114,11 @@ def __eq__(self, other):
110114
if not isinstance(other, AccountIdentityVerificationResponse):
111115
return False
112116

113-
return self.__dict__ == other.__dict__
117+
return self.to_dict() == other.to_dict()
114118

115119
def __ne__(self, other):
116120
"""Returns true if both objects are not equal"""
117-
return not self == other
121+
if not isinstance(other, AccountIdentityVerificationResponse):
122+
return True
123+
124+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)