|
16 | 16 |
|
17 | 17 | import six |
18 | 18 |
|
| 19 | +from docusign_esign.client.configuration import Configuration |
| 20 | + |
19 | 21 |
|
20 | 22 | class AccountBillingPlan(object): |
21 | 23 | """NOTE: This class is auto generated by the swagger code generator program. |
@@ -86,8 +88,11 @@ class AccountBillingPlan(object): |
86 | 88 | 'support_plan_fee': 'supportPlanFee' |
87 | 89 | } |
88 | 90 |
|
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 |
90 | 92 | """AccountBillingPlan - a model defined in Swagger""" # noqa: E501 |
| 93 | + if _configuration is None: |
| 94 | + _configuration = Configuration() |
| 95 | + self._configuration = _configuration |
91 | 96 |
|
92 | 97 | self._add_ons = None |
93 | 98 | 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 |
116 | 121 | self._support_plan_fee = None |
117 | 122 | self.discriminator = None |
118 | 123 |
|
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)) |
169 | 149 |
|
170 | 150 | @property |
171 | 151 | def add_ons(self): |
@@ -782,8 +762,11 @@ def __eq__(self, other): |
782 | 762 | if not isinstance(other, AccountBillingPlan): |
783 | 763 | return False |
784 | 764 |
|
785 | | - return self.__dict__ == other.__dict__ |
| 765 | + return self.to_dict() == other.to_dict() |
786 | 766 |
|
787 | 767 | def __ne__(self, other): |
788 | 768 | """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() |
0 commit comments