docusign_esign.models.account_billing_plan_response
Docusign eSignature REST API
The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501
OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git
1# coding: utf-8 2 3""" 4 Docusign eSignature REST API 5 6 The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501 7 8 OpenAPI spec version: v2.1 9 Contact: devcenter@docusign.com 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13 14import pprint 15import re # noqa: F401 16 17import six 18 19from docusign_esign.client.configuration import Configuration 20 21 22class AccountBillingPlanResponse(object): 23 """NOTE: This class is auto generated by the swagger code generator program. 24 25 Do not edit the class manually. 26 """ 27 28 """ 29 Attributes: 30 swagger_types (dict): The key is attribute name 31 and the value is attribute type. 32 attribute_map (dict): The key is attribute name 33 and the value is json key in definition. 34 """ 35 swagger_types = { 36 'billing_address': 'AccountAddress', 37 'billing_address_is_credit_card_address': 'str', 38 'billing_plan': 'AccountBillingPlan', 39 'credit_card_information': 'CreditCardInformation', 40 'direct_debit_processor_information': 'DirectDebitProcessorInformation', 41 'downgrade_plan_information': 'DowngradePlanUpdateResponse', 42 'downgrade_request_information': 'DowngradeRequestInformation', 43 'entity_information': 'BillingEntityInformationResponse', 44 'payment_method': 'str', 45 'payment_processor_information': 'PaymentProcessorInformation', 46 'referral_information': 'ReferralInformation', 47 'successor_plans': 'list[BillingPlan]', 48 'tax_exempt_id': 'str' 49 } 50 51 attribute_map = { 52 'billing_address': 'billingAddress', 53 'billing_address_is_credit_card_address': 'billingAddressIsCreditCardAddress', 54 'billing_plan': 'billingPlan', 55 'credit_card_information': 'creditCardInformation', 56 'direct_debit_processor_information': 'directDebitProcessorInformation', 57 'downgrade_plan_information': 'downgradePlanInformation', 58 'downgrade_request_information': 'downgradeRequestInformation', 59 'entity_information': 'entityInformation', 60 'payment_method': 'paymentMethod', 61 'payment_processor_information': 'paymentProcessorInformation', 62 'referral_information': 'referralInformation', 63 'successor_plans': 'successorPlans', 64 'tax_exempt_id': 'taxExemptId' 65 } 66 67 def __init__(self, _configuration=None, **kwargs): # noqa: E501 68 """AccountBillingPlanResponse - a model defined in Swagger""" # noqa: E501 69 if _configuration is None: 70 _configuration = Configuration() 71 self._configuration = _configuration 72 73 self._billing_address = None 74 self._billing_address_is_credit_card_address = None 75 self._billing_plan = None 76 self._credit_card_information = None 77 self._direct_debit_processor_information = None 78 self._downgrade_plan_information = None 79 self._downgrade_request_information = None 80 self._entity_information = None 81 self._payment_method = None 82 self._payment_processor_information = None 83 self._referral_information = None 84 self._successor_plans = None 85 self._tax_exempt_id = None 86 self.discriminator = None 87 88 setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None)) 89 setattr(self, "_{}".format('billing_address_is_credit_card_address'), kwargs.get('billing_address_is_credit_card_address', None)) 90 setattr(self, "_{}".format('billing_plan'), kwargs.get('billing_plan', None)) 91 setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) 92 setattr(self, "_{}".format('direct_debit_processor_information'), kwargs.get('direct_debit_processor_information', None)) 93 setattr(self, "_{}".format('downgrade_plan_information'), kwargs.get('downgrade_plan_information', None)) 94 setattr(self, "_{}".format('downgrade_request_information'), kwargs.get('downgrade_request_information', None)) 95 setattr(self, "_{}".format('entity_information'), kwargs.get('entity_information', None)) 96 setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) 97 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) 98 setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) 99 setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None)) 100 setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) 101 102 @property 103 def billing_address(self): 104 """Gets the billing_address of this AccountBillingPlanResponse. # noqa: E501 105 106 The billing address for the account. # noqa: E501 107 108 :return: The billing_address of this AccountBillingPlanResponse. # noqa: E501 109 :rtype: AccountAddress 110 """ 111 return self._billing_address 112 113 @billing_address.setter 114 def billing_address(self, billing_address): 115 """Sets the billing_address of this AccountBillingPlanResponse. 116 117 The billing address for the account. # noqa: E501 118 119 :param billing_address: The billing_address of this AccountBillingPlanResponse. # noqa: E501 120 :type: AccountAddress 121 """ 122 123 self._billing_address = billing_address 124 125 @property 126 def billing_address_is_credit_card_address(self): 127 """Gets the billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501 128 129 When set to **true**, the credit card address information is the same as that returned as the billing address. If false, then the billing address is considered a billing contact address, and the credit card address can be different. # noqa: E501 130 131 :return: The billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501 132 :rtype: str 133 """ 134 return self._billing_address_is_credit_card_address 135 136 @billing_address_is_credit_card_address.setter 137 def billing_address_is_credit_card_address(self, billing_address_is_credit_card_address): 138 """Sets the billing_address_is_credit_card_address of this AccountBillingPlanResponse. 139 140 When set to **true**, the credit card address information is the same as that returned as the billing address. If false, then the billing address is considered a billing contact address, and the credit card address can be different. # noqa: E501 141 142 :param billing_address_is_credit_card_address: The billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501 143 :type: str 144 """ 145 146 self._billing_address_is_credit_card_address = billing_address_is_credit_card_address 147 148 @property 149 def billing_plan(self): 150 """Gets the billing_plan of this AccountBillingPlanResponse. # noqa: E501 151 152 An object that contains details about the billing plan. # noqa: E501 153 154 :return: The billing_plan of this AccountBillingPlanResponse. # noqa: E501 155 :rtype: AccountBillingPlan 156 """ 157 return self._billing_plan 158 159 @billing_plan.setter 160 def billing_plan(self, billing_plan): 161 """Sets the billing_plan of this AccountBillingPlanResponse. 162 163 An object that contains details about the billing plan. # noqa: E501 164 165 :param billing_plan: The billing_plan of this AccountBillingPlanResponse. # noqa: E501 166 :type: AccountBillingPlan 167 """ 168 169 self._billing_plan = billing_plan 170 171 @property 172 def credit_card_information(self): 173 """Gets the credit_card_information of this AccountBillingPlanResponse. # noqa: E501 174 175 A complex type that has information about the credit card used to pay for this account. # noqa: E501 176 177 :return: The credit_card_information of this AccountBillingPlanResponse. # noqa: E501 178 :rtype: CreditCardInformation 179 """ 180 return self._credit_card_information 181 182 @credit_card_information.setter 183 def credit_card_information(self, credit_card_information): 184 """Sets the credit_card_information of this AccountBillingPlanResponse. 185 186 A complex type that has information about the credit card used to pay for this account. # noqa: E501 187 188 :param credit_card_information: The credit_card_information of this AccountBillingPlanResponse. # noqa: E501 189 :type: CreditCardInformation 190 """ 191 192 self._credit_card_information = credit_card_information 193 194 @property 195 def direct_debit_processor_information(self): 196 """Gets the direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501 197 198 Information about the bank that processes direct debits for the payment plan. # noqa: E501 199 200 :return: The direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501 201 :rtype: DirectDebitProcessorInformation 202 """ 203 return self._direct_debit_processor_information 204 205 @direct_debit_processor_information.setter 206 def direct_debit_processor_information(self, direct_debit_processor_information): 207 """Sets the direct_debit_processor_information of this AccountBillingPlanResponse. 208 209 Information about the bank that processes direct debits for the payment plan. # noqa: E501 210 211 :param direct_debit_processor_information: The direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501 212 :type: DirectDebitProcessorInformation 213 """ 214 215 self._direct_debit_processor_information = direct_debit_processor_information 216 217 @property 218 def downgrade_plan_information(self): 219 """Gets the downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501 220 221 # noqa: E501 222 223 :return: The downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501 224 :rtype: DowngradePlanUpdateResponse 225 """ 226 return self._downgrade_plan_information 227 228 @downgrade_plan_information.setter 229 def downgrade_plan_information(self, downgrade_plan_information): 230 """Sets the downgrade_plan_information of this AccountBillingPlanResponse. 231 232 # noqa: E501 233 234 :param downgrade_plan_information: The downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501 235 :type: DowngradePlanUpdateResponse 236 """ 237 238 self._downgrade_plan_information = downgrade_plan_information 239 240 @property 241 def downgrade_request_information(self): 242 """Gets the downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501 243 244 # noqa: E501 245 246 :return: The downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501 247 :rtype: DowngradeRequestInformation 248 """ 249 return self._downgrade_request_information 250 251 @downgrade_request_information.setter 252 def downgrade_request_information(self, downgrade_request_information): 253 """Sets the downgrade_request_information of this AccountBillingPlanResponse. 254 255 # noqa: E501 256 257 :param downgrade_request_information: The downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501 258 :type: DowngradeRequestInformation 259 """ 260 261 self._downgrade_request_information = downgrade_request_information 262 263 @property 264 def entity_information(self): 265 """Gets the entity_information of this AccountBillingPlanResponse. # noqa: E501 266 267 # noqa: E501 268 269 :return: The entity_information of this AccountBillingPlanResponse. # noqa: E501 270 :rtype: BillingEntityInformationResponse 271 """ 272 return self._entity_information 273 274 @entity_information.setter 275 def entity_information(self, entity_information): 276 """Sets the entity_information of this AccountBillingPlanResponse. 277 278 # noqa: E501 279 280 :param entity_information: The entity_information of this AccountBillingPlanResponse. # noqa: E501 281 :type: BillingEntityInformationResponse 282 """ 283 284 self._entity_information = entity_information 285 286 @property 287 def payment_method(self): 288 """Gets the payment_method of this AccountBillingPlanResponse. # noqa: E501 289 290 # noqa: E501 291 292 :return: The payment_method of this AccountBillingPlanResponse. # noqa: E501 293 :rtype: str 294 """ 295 return self._payment_method 296 297 @payment_method.setter 298 def payment_method(self, payment_method): 299 """Sets the payment_method of this AccountBillingPlanResponse. 300 301 # noqa: E501 302 303 :param payment_method: The payment_method of this AccountBillingPlanResponse. # noqa: E501 304 :type: str 305 """ 306 307 self._payment_method = payment_method 308 309 @property 310 def payment_processor_information(self): 311 """Gets the payment_processor_information of this AccountBillingPlanResponse. # noqa: E501 312 313 Information about the entity that processes payments for the billing plan. # noqa: E501 314 315 :return: The payment_processor_information of this AccountBillingPlanResponse. # noqa: E501 316 :rtype: PaymentProcessorInformation 317 """ 318 return self._payment_processor_information 319 320 @payment_processor_information.setter 321 def payment_processor_information(self, payment_processor_information): 322 """Sets the payment_processor_information of this AccountBillingPlanResponse. 323 324 Information about the entity that processes payments for the billing plan. # noqa: E501 325 326 :param payment_processor_information: The payment_processor_information of this AccountBillingPlanResponse. # noqa: E501 327 :type: PaymentProcessorInformation 328 """ 329 330 self._payment_processor_information = payment_processor_information 331 332 @property 333 def referral_information(self): 334 """Gets the referral_information of this AccountBillingPlanResponse. # noqa: E501 335 336 A complex type that contains properties for entering referral and discount information. # noqa: E501 337 338 :return: The referral_information of this AccountBillingPlanResponse. # noqa: E501 339 :rtype: ReferralInformation 340 """ 341 return self._referral_information 342 343 @referral_information.setter 344 def referral_information(self, referral_information): 345 """Sets the referral_information of this AccountBillingPlanResponse. 346 347 A complex type that contains properties for entering referral and discount information. # noqa: E501 348 349 :param referral_information: The referral_information of this AccountBillingPlanResponse. # noqa: E501 350 :type: ReferralInformation 351 """ 352 353 self._referral_information = referral_information 354 355 @property 356 def successor_plans(self): 357 """Gets the successor_plans of this AccountBillingPlanResponse. # noqa: E501 358 359 # noqa: E501 360 361 :return: The successor_plans of this AccountBillingPlanResponse. # noqa: E501 362 :rtype: list[BillingPlan] 363 """ 364 return self._successor_plans 365 366 @successor_plans.setter 367 def successor_plans(self, successor_plans): 368 """Sets the successor_plans of this AccountBillingPlanResponse. 369 370 # noqa: E501 371 372 :param successor_plans: The successor_plans of this AccountBillingPlanResponse. # noqa: E501 373 :type: list[BillingPlan] 374 """ 375 376 self._successor_plans = successor_plans 377 378 @property 379 def tax_exempt_id(self): 380 """Gets the tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 381 382 # noqa: E501 383 384 :return: The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 385 :rtype: str 386 """ 387 return self._tax_exempt_id 388 389 @tax_exempt_id.setter 390 def tax_exempt_id(self, tax_exempt_id): 391 """Sets the tax_exempt_id of this AccountBillingPlanResponse. 392 393 # noqa: E501 394 395 :param tax_exempt_id: The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 396 :type: str 397 """ 398 399 self._tax_exempt_id = tax_exempt_id 400 401 def to_dict(self): 402 """Returns the model properties as a dict""" 403 result = {} 404 405 for attr, _ in six.iteritems(self.swagger_types): 406 value = getattr(self, attr) 407 if isinstance(value, list): 408 result[attr] = list(map( 409 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 410 value 411 )) 412 elif hasattr(value, "to_dict"): 413 result[attr] = value.to_dict() 414 elif isinstance(value, dict): 415 result[attr] = dict(map( 416 lambda item: (item[0], item[1].to_dict()) 417 if hasattr(item[1], "to_dict") else item, 418 value.items() 419 )) 420 else: 421 result[attr] = value 422 if issubclass(AccountBillingPlanResponse, dict): 423 for key, value in self.items(): 424 result[key] = value 425 426 return result 427 428 def to_str(self): 429 """Returns the string representation of the model""" 430 return pprint.pformat(self.to_dict()) 431 432 def __repr__(self): 433 """For `print` and `pprint`""" 434 return self.to_str() 435 436 def __eq__(self, other): 437 """Returns true if both objects are equal""" 438 if not isinstance(other, AccountBillingPlanResponse): 439 return False 440 441 return self.to_dict() == other.to_dict() 442 443 def __ne__(self, other): 444 """Returns true if both objects are not equal""" 445 if not isinstance(other, AccountBillingPlanResponse): 446 return True 447 448 return self.to_dict() != other.to_dict()
23class AccountBillingPlanResponse(object): 24 """NOTE: This class is auto generated by the swagger code generator program. 25 26 Do not edit the class manually. 27 """ 28 29 """ 30 Attributes: 31 swagger_types (dict): The key is attribute name 32 and the value is attribute type. 33 attribute_map (dict): The key is attribute name 34 and the value is json key in definition. 35 """ 36 swagger_types = { 37 'billing_address': 'AccountAddress', 38 'billing_address_is_credit_card_address': 'str', 39 'billing_plan': 'AccountBillingPlan', 40 'credit_card_information': 'CreditCardInformation', 41 'direct_debit_processor_information': 'DirectDebitProcessorInformation', 42 'downgrade_plan_information': 'DowngradePlanUpdateResponse', 43 'downgrade_request_information': 'DowngradeRequestInformation', 44 'entity_information': 'BillingEntityInformationResponse', 45 'payment_method': 'str', 46 'payment_processor_information': 'PaymentProcessorInformation', 47 'referral_information': 'ReferralInformation', 48 'successor_plans': 'list[BillingPlan]', 49 'tax_exempt_id': 'str' 50 } 51 52 attribute_map = { 53 'billing_address': 'billingAddress', 54 'billing_address_is_credit_card_address': 'billingAddressIsCreditCardAddress', 55 'billing_plan': 'billingPlan', 56 'credit_card_information': 'creditCardInformation', 57 'direct_debit_processor_information': 'directDebitProcessorInformation', 58 'downgrade_plan_information': 'downgradePlanInformation', 59 'downgrade_request_information': 'downgradeRequestInformation', 60 'entity_information': 'entityInformation', 61 'payment_method': 'paymentMethod', 62 'payment_processor_information': 'paymentProcessorInformation', 63 'referral_information': 'referralInformation', 64 'successor_plans': 'successorPlans', 65 'tax_exempt_id': 'taxExemptId' 66 } 67 68 def __init__(self, _configuration=None, **kwargs): # noqa: E501 69 """AccountBillingPlanResponse - a model defined in Swagger""" # noqa: E501 70 if _configuration is None: 71 _configuration = Configuration() 72 self._configuration = _configuration 73 74 self._billing_address = None 75 self._billing_address_is_credit_card_address = None 76 self._billing_plan = None 77 self._credit_card_information = None 78 self._direct_debit_processor_information = None 79 self._downgrade_plan_information = None 80 self._downgrade_request_information = None 81 self._entity_information = None 82 self._payment_method = None 83 self._payment_processor_information = None 84 self._referral_information = None 85 self._successor_plans = None 86 self._tax_exempt_id = None 87 self.discriminator = None 88 89 setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None)) 90 setattr(self, "_{}".format('billing_address_is_credit_card_address'), kwargs.get('billing_address_is_credit_card_address', None)) 91 setattr(self, "_{}".format('billing_plan'), kwargs.get('billing_plan', None)) 92 setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) 93 setattr(self, "_{}".format('direct_debit_processor_information'), kwargs.get('direct_debit_processor_information', None)) 94 setattr(self, "_{}".format('downgrade_plan_information'), kwargs.get('downgrade_plan_information', None)) 95 setattr(self, "_{}".format('downgrade_request_information'), kwargs.get('downgrade_request_information', None)) 96 setattr(self, "_{}".format('entity_information'), kwargs.get('entity_information', None)) 97 setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) 98 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) 99 setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) 100 setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None)) 101 setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) 102 103 @property 104 def billing_address(self): 105 """Gets the billing_address of this AccountBillingPlanResponse. # noqa: E501 106 107 The billing address for the account. # noqa: E501 108 109 :return: The billing_address of this AccountBillingPlanResponse. # noqa: E501 110 :rtype: AccountAddress 111 """ 112 return self._billing_address 113 114 @billing_address.setter 115 def billing_address(self, billing_address): 116 """Sets the billing_address of this AccountBillingPlanResponse. 117 118 The billing address for the account. # noqa: E501 119 120 :param billing_address: The billing_address of this AccountBillingPlanResponse. # noqa: E501 121 :type: AccountAddress 122 """ 123 124 self._billing_address = billing_address 125 126 @property 127 def billing_address_is_credit_card_address(self): 128 """Gets the billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501 129 130 When set to **true**, the credit card address information is the same as that returned as the billing address. If false, then the billing address is considered a billing contact address, and the credit card address can be different. # noqa: E501 131 132 :return: The billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501 133 :rtype: str 134 """ 135 return self._billing_address_is_credit_card_address 136 137 @billing_address_is_credit_card_address.setter 138 def billing_address_is_credit_card_address(self, billing_address_is_credit_card_address): 139 """Sets the billing_address_is_credit_card_address of this AccountBillingPlanResponse. 140 141 When set to **true**, the credit card address information is the same as that returned as the billing address. If false, then the billing address is considered a billing contact address, and the credit card address can be different. # noqa: E501 142 143 :param billing_address_is_credit_card_address: The billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501 144 :type: str 145 """ 146 147 self._billing_address_is_credit_card_address = billing_address_is_credit_card_address 148 149 @property 150 def billing_plan(self): 151 """Gets the billing_plan of this AccountBillingPlanResponse. # noqa: E501 152 153 An object that contains details about the billing plan. # noqa: E501 154 155 :return: The billing_plan of this AccountBillingPlanResponse. # noqa: E501 156 :rtype: AccountBillingPlan 157 """ 158 return self._billing_plan 159 160 @billing_plan.setter 161 def billing_plan(self, billing_plan): 162 """Sets the billing_plan of this AccountBillingPlanResponse. 163 164 An object that contains details about the billing plan. # noqa: E501 165 166 :param billing_plan: The billing_plan of this AccountBillingPlanResponse. # noqa: E501 167 :type: AccountBillingPlan 168 """ 169 170 self._billing_plan = billing_plan 171 172 @property 173 def credit_card_information(self): 174 """Gets the credit_card_information of this AccountBillingPlanResponse. # noqa: E501 175 176 A complex type that has information about the credit card used to pay for this account. # noqa: E501 177 178 :return: The credit_card_information of this AccountBillingPlanResponse. # noqa: E501 179 :rtype: CreditCardInformation 180 """ 181 return self._credit_card_information 182 183 @credit_card_information.setter 184 def credit_card_information(self, credit_card_information): 185 """Sets the credit_card_information of this AccountBillingPlanResponse. 186 187 A complex type that has information about the credit card used to pay for this account. # noqa: E501 188 189 :param credit_card_information: The credit_card_information of this AccountBillingPlanResponse. # noqa: E501 190 :type: CreditCardInformation 191 """ 192 193 self._credit_card_information = credit_card_information 194 195 @property 196 def direct_debit_processor_information(self): 197 """Gets the direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501 198 199 Information about the bank that processes direct debits for the payment plan. # noqa: E501 200 201 :return: The direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501 202 :rtype: DirectDebitProcessorInformation 203 """ 204 return self._direct_debit_processor_information 205 206 @direct_debit_processor_information.setter 207 def direct_debit_processor_information(self, direct_debit_processor_information): 208 """Sets the direct_debit_processor_information of this AccountBillingPlanResponse. 209 210 Information about the bank that processes direct debits for the payment plan. # noqa: E501 211 212 :param direct_debit_processor_information: The direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501 213 :type: DirectDebitProcessorInformation 214 """ 215 216 self._direct_debit_processor_information = direct_debit_processor_information 217 218 @property 219 def downgrade_plan_information(self): 220 """Gets the downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501 221 222 # noqa: E501 223 224 :return: The downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501 225 :rtype: DowngradePlanUpdateResponse 226 """ 227 return self._downgrade_plan_information 228 229 @downgrade_plan_information.setter 230 def downgrade_plan_information(self, downgrade_plan_information): 231 """Sets the downgrade_plan_information of this AccountBillingPlanResponse. 232 233 # noqa: E501 234 235 :param downgrade_plan_information: The downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501 236 :type: DowngradePlanUpdateResponse 237 """ 238 239 self._downgrade_plan_information = downgrade_plan_information 240 241 @property 242 def downgrade_request_information(self): 243 """Gets the downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501 244 245 # noqa: E501 246 247 :return: The downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501 248 :rtype: DowngradeRequestInformation 249 """ 250 return self._downgrade_request_information 251 252 @downgrade_request_information.setter 253 def downgrade_request_information(self, downgrade_request_information): 254 """Sets the downgrade_request_information of this AccountBillingPlanResponse. 255 256 # noqa: E501 257 258 :param downgrade_request_information: The downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501 259 :type: DowngradeRequestInformation 260 """ 261 262 self._downgrade_request_information = downgrade_request_information 263 264 @property 265 def entity_information(self): 266 """Gets the entity_information of this AccountBillingPlanResponse. # noqa: E501 267 268 # noqa: E501 269 270 :return: The entity_information of this AccountBillingPlanResponse. # noqa: E501 271 :rtype: BillingEntityInformationResponse 272 """ 273 return self._entity_information 274 275 @entity_information.setter 276 def entity_information(self, entity_information): 277 """Sets the entity_information of this AccountBillingPlanResponse. 278 279 # noqa: E501 280 281 :param entity_information: The entity_information of this AccountBillingPlanResponse. # noqa: E501 282 :type: BillingEntityInformationResponse 283 """ 284 285 self._entity_information = entity_information 286 287 @property 288 def payment_method(self): 289 """Gets the payment_method of this AccountBillingPlanResponse. # noqa: E501 290 291 # noqa: E501 292 293 :return: The payment_method of this AccountBillingPlanResponse. # noqa: E501 294 :rtype: str 295 """ 296 return self._payment_method 297 298 @payment_method.setter 299 def payment_method(self, payment_method): 300 """Sets the payment_method of this AccountBillingPlanResponse. 301 302 # noqa: E501 303 304 :param payment_method: The payment_method of this AccountBillingPlanResponse. # noqa: E501 305 :type: str 306 """ 307 308 self._payment_method = payment_method 309 310 @property 311 def payment_processor_information(self): 312 """Gets the payment_processor_information of this AccountBillingPlanResponse. # noqa: E501 313 314 Information about the entity that processes payments for the billing plan. # noqa: E501 315 316 :return: The payment_processor_information of this AccountBillingPlanResponse. # noqa: E501 317 :rtype: PaymentProcessorInformation 318 """ 319 return self._payment_processor_information 320 321 @payment_processor_information.setter 322 def payment_processor_information(self, payment_processor_information): 323 """Sets the payment_processor_information of this AccountBillingPlanResponse. 324 325 Information about the entity that processes payments for the billing plan. # noqa: E501 326 327 :param payment_processor_information: The payment_processor_information of this AccountBillingPlanResponse. # noqa: E501 328 :type: PaymentProcessorInformation 329 """ 330 331 self._payment_processor_information = payment_processor_information 332 333 @property 334 def referral_information(self): 335 """Gets the referral_information of this AccountBillingPlanResponse. # noqa: E501 336 337 A complex type that contains properties for entering referral and discount information. # noqa: E501 338 339 :return: The referral_information of this AccountBillingPlanResponse. # noqa: E501 340 :rtype: ReferralInformation 341 """ 342 return self._referral_information 343 344 @referral_information.setter 345 def referral_information(self, referral_information): 346 """Sets the referral_information of this AccountBillingPlanResponse. 347 348 A complex type that contains properties for entering referral and discount information. # noqa: E501 349 350 :param referral_information: The referral_information of this AccountBillingPlanResponse. # noqa: E501 351 :type: ReferralInformation 352 """ 353 354 self._referral_information = referral_information 355 356 @property 357 def successor_plans(self): 358 """Gets the successor_plans of this AccountBillingPlanResponse. # noqa: E501 359 360 # noqa: E501 361 362 :return: The successor_plans of this AccountBillingPlanResponse. # noqa: E501 363 :rtype: list[BillingPlan] 364 """ 365 return self._successor_plans 366 367 @successor_plans.setter 368 def successor_plans(self, successor_plans): 369 """Sets the successor_plans of this AccountBillingPlanResponse. 370 371 # noqa: E501 372 373 :param successor_plans: The successor_plans of this AccountBillingPlanResponse. # noqa: E501 374 :type: list[BillingPlan] 375 """ 376 377 self._successor_plans = successor_plans 378 379 @property 380 def tax_exempt_id(self): 381 """Gets the tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 382 383 # noqa: E501 384 385 :return: The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 386 :rtype: str 387 """ 388 return self._tax_exempt_id 389 390 @tax_exempt_id.setter 391 def tax_exempt_id(self, tax_exempt_id): 392 """Sets the tax_exempt_id of this AccountBillingPlanResponse. 393 394 # noqa: E501 395 396 :param tax_exempt_id: The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501 397 :type: str 398 """ 399 400 self._tax_exempt_id = tax_exempt_id 401 402 def to_dict(self): 403 """Returns the model properties as a dict""" 404 result = {} 405 406 for attr, _ in six.iteritems(self.swagger_types): 407 value = getattr(self, attr) 408 if isinstance(value, list): 409 result[attr] = list(map( 410 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 411 value 412 )) 413 elif hasattr(value, "to_dict"): 414 result[attr] = value.to_dict() 415 elif isinstance(value, dict): 416 result[attr] = dict(map( 417 lambda item: (item[0], item[1].to_dict()) 418 if hasattr(item[1], "to_dict") else item, 419 value.items() 420 )) 421 else: 422 result[attr] = value 423 if issubclass(AccountBillingPlanResponse, dict): 424 for key, value in self.items(): 425 result[key] = value 426 427 return result 428 429 def to_str(self): 430 """Returns the string representation of the model""" 431 return pprint.pformat(self.to_dict()) 432 433 def __repr__(self): 434 """For `print` and `pprint`""" 435 return self.to_str() 436 437 def __eq__(self, other): 438 """Returns true if both objects are equal""" 439 if not isinstance(other, AccountBillingPlanResponse): 440 return False 441 442 return self.to_dict() == other.to_dict() 443 444 def __ne__(self, other): 445 """Returns true if both objects are not equal""" 446 if not isinstance(other, AccountBillingPlanResponse): 447 return True 448 449 return self.to_dict() != other.to_dict()
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
68 def __init__(self, _configuration=None, **kwargs): # noqa: E501 69 """AccountBillingPlanResponse - a model defined in Swagger""" # noqa: E501 70 if _configuration is None: 71 _configuration = Configuration() 72 self._configuration = _configuration 73 74 self._billing_address = None 75 self._billing_address_is_credit_card_address = None 76 self._billing_plan = None 77 self._credit_card_information = None 78 self._direct_debit_processor_information = None 79 self._downgrade_plan_information = None 80 self._downgrade_request_information = None 81 self._entity_information = None 82 self._payment_method = None 83 self._payment_processor_information = None 84 self._referral_information = None 85 self._successor_plans = None 86 self._tax_exempt_id = None 87 self.discriminator = None 88 89 setattr(self, "_{}".format('billing_address'), kwargs.get('billing_address', None)) 90 setattr(self, "_{}".format('billing_address_is_credit_card_address'), kwargs.get('billing_address_is_credit_card_address', None)) 91 setattr(self, "_{}".format('billing_plan'), kwargs.get('billing_plan', None)) 92 setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) 93 setattr(self, "_{}".format('direct_debit_processor_information'), kwargs.get('direct_debit_processor_information', None)) 94 setattr(self, "_{}".format('downgrade_plan_information'), kwargs.get('downgrade_plan_information', None)) 95 setattr(self, "_{}".format('downgrade_request_information'), kwargs.get('downgrade_request_information', None)) 96 setattr(self, "_{}".format('entity_information'), kwargs.get('entity_information', None)) 97 setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) 98 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) 99 setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) 100 setattr(self, "_{}".format('successor_plans'), kwargs.get('successor_plans', None)) 101 setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None))
AccountBillingPlanResponse - a model defined in Swagger
Gets the billing_address of this AccountBillingPlanResponse. # noqa: E501
The billing address for the account. # noqa: E501
Returns
The billing_address of this AccountBillingPlanResponse. # noqa: E501
Gets the billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501
When set to true, the credit card address information is the same as that returned as the billing address. If false, then the billing address is considered a billing contact address, and the credit card address can be different. # noqa: E501
Returns
The billing_address_is_credit_card_address of this AccountBillingPlanResponse. # noqa: E501
Gets the billing_plan of this AccountBillingPlanResponse. # noqa: E501
An object that contains details about the billing plan. # noqa: E501
Returns
The billing_plan of this AccountBillingPlanResponse. # noqa: E501
Gets the credit_card_information of this AccountBillingPlanResponse. # noqa: E501
A complex type that has information about the credit card used to pay for this account. # noqa: E501
Returns
The credit_card_information of this AccountBillingPlanResponse. # noqa: E501
Gets the direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501
Information about the bank that processes direct debits for the payment plan. # noqa: E501
Returns
The direct_debit_processor_information of this AccountBillingPlanResponse. # noqa: E501
Gets the downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501
# noqa: E501
Returns
The downgrade_plan_information of this AccountBillingPlanResponse. # noqa: E501
Gets the downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501
# noqa: E501
Returns
The downgrade_request_information of this AccountBillingPlanResponse. # noqa: E501
Gets the entity_information of this AccountBillingPlanResponse. # noqa: E501
# noqa: E501
Returns
The entity_information of this AccountBillingPlanResponse. # noqa: E501
Gets the payment_method of this AccountBillingPlanResponse. # noqa: E501
# noqa: E501
Returns
The payment_method of this AccountBillingPlanResponse. # noqa: E501
Gets the payment_processor_information of this AccountBillingPlanResponse. # noqa: E501
Information about the entity that processes payments for the billing plan. # noqa: E501
Returns
The payment_processor_information of this AccountBillingPlanResponse. # noqa: E501
Gets the referral_information of this AccountBillingPlanResponse. # noqa: E501
A complex type that contains properties for entering referral and discount information. # noqa: E501
Returns
The referral_information of this AccountBillingPlanResponse. # noqa: E501
Gets the successor_plans of this AccountBillingPlanResponse. # noqa: E501
# noqa: E501
Returns
The successor_plans of this AccountBillingPlanResponse. # noqa: E501
Gets the tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501
# noqa: E501
Returns
The tax_exempt_id of this AccountBillingPlanResponse. # noqa: E501
402 def to_dict(self): 403 """Returns the model properties as a dict""" 404 result = {} 405 406 for attr, _ in six.iteritems(self.swagger_types): 407 value = getattr(self, attr) 408 if isinstance(value, list): 409 result[attr] = list(map( 410 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 411 value 412 )) 413 elif hasattr(value, "to_dict"): 414 result[attr] = value.to_dict() 415 elif isinstance(value, dict): 416 result[attr] = dict(map( 417 lambda item: (item[0], item[1].to_dict()) 418 if hasattr(item[1], "to_dict") else item, 419 value.items() 420 )) 421 else: 422 result[attr] = value 423 if issubclass(AccountBillingPlanResponse, dict): 424 for key, value in self.items(): 425 result[key] = value 426 427 return result
Returns the model properties as a dict