docusign_esign.models.new_account_definition
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 NewAccountDefinition(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 'account_name': 'str', 37 'account_settings': 'AccountSettingsInformation', 38 'address_information': 'AccountAddress', 39 'credit_card_information': 'CreditCardInformation', 40 'direct_debit_processor_information': 'DirectDebitProcessorInformation', 41 'distributor_code': 'str', 42 'distributor_password': 'str', 43 'enable_pre_auth': 'str', 44 'envelope_partition_id': 'str', 45 'initial_user': 'UserInformation', 46 'payment_method': 'str', 47 'payment_processor': 'str', 48 'payment_processor_information': 'PaymentProcessorInformation', 49 'plan_information': 'PlanInformation', 50 'process_payment': 'str', 51 'referral_information': 'ReferralInformation', 52 'social_account_information': 'SocialAccountInformation', 53 'tax_exempt_id': 'str' 54 } 55 56 attribute_map = { 57 'account_name': 'accountName', 58 'account_settings': 'accountSettings', 59 'address_information': 'addressInformation', 60 'credit_card_information': 'creditCardInformation', 61 'direct_debit_processor_information': 'directDebitProcessorInformation', 62 'distributor_code': 'distributorCode', 63 'distributor_password': 'distributorPassword', 64 'enable_pre_auth': 'enablePreAuth', 65 'envelope_partition_id': 'envelopePartitionId', 66 'initial_user': 'initialUser', 67 'payment_method': 'paymentMethod', 68 'payment_processor': 'paymentProcessor', 69 'payment_processor_information': 'paymentProcessorInformation', 70 'plan_information': 'planInformation', 71 'process_payment': 'processPayment', 72 'referral_information': 'referralInformation', 73 'social_account_information': 'socialAccountInformation', 74 'tax_exempt_id': 'taxExemptId' 75 } 76 77 def __init__(self, _configuration=None, **kwargs): # noqa: E501 78 """NewAccountDefinition - a model defined in Swagger""" # noqa: E501 79 if _configuration is None: 80 _configuration = Configuration() 81 self._configuration = _configuration 82 83 self._account_name = None 84 self._account_settings = None 85 self._address_information = None 86 self._credit_card_information = None 87 self._direct_debit_processor_information = None 88 self._distributor_code = None 89 self._distributor_password = None 90 self._enable_pre_auth = None 91 self._envelope_partition_id = None 92 self._initial_user = None 93 self._payment_method = None 94 self._payment_processor = None 95 self._payment_processor_information = None 96 self._plan_information = None 97 self._process_payment = None 98 self._referral_information = None 99 self._social_account_information = None 100 self._tax_exempt_id = None 101 self.discriminator = None 102 103 setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) 104 setattr(self, "_{}".format('account_settings'), kwargs.get('account_settings', None)) 105 setattr(self, "_{}".format('address_information'), kwargs.get('address_information', None)) 106 setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) 107 setattr(self, "_{}".format('direct_debit_processor_information'), kwargs.get('direct_debit_processor_information', None)) 108 setattr(self, "_{}".format('distributor_code'), kwargs.get('distributor_code', None)) 109 setattr(self, "_{}".format('distributor_password'), kwargs.get('distributor_password', None)) 110 setattr(self, "_{}".format('enable_pre_auth'), kwargs.get('enable_pre_auth', None)) 111 setattr(self, "_{}".format('envelope_partition_id'), kwargs.get('envelope_partition_id', None)) 112 setattr(self, "_{}".format('initial_user'), kwargs.get('initial_user', None)) 113 setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) 114 setattr(self, "_{}".format('payment_processor'), kwargs.get('payment_processor', None)) 115 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) 116 setattr(self, "_{}".format('plan_information'), kwargs.get('plan_information', None)) 117 setattr(self, "_{}".format('process_payment'), kwargs.get('process_payment', None)) 118 setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) 119 setattr(self, "_{}".format('social_account_information'), kwargs.get('social_account_information', None)) 120 setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) 121 122 @property 123 def account_name(self): 124 """Gets the account_name of this NewAccountDefinition. # noqa: E501 125 126 The account name for the new account. # noqa: E501 127 128 :return: The account_name of this NewAccountDefinition. # noqa: E501 129 :rtype: str 130 """ 131 return self._account_name 132 133 @account_name.setter 134 def account_name(self, account_name): 135 """Sets the account_name of this NewAccountDefinition. 136 137 The account name for the new account. # noqa: E501 138 139 :param account_name: The account_name of this NewAccountDefinition. # noqa: E501 140 :type: str 141 """ 142 143 self._account_name = account_name 144 145 @property 146 def account_settings(self): 147 """Gets the account_settings of this NewAccountDefinition. # noqa: E501 148 149 The list of account settings. These determine the features available for the account. Note that some features are determined by the plan used to create the account, and cannot be overridden. # noqa: E501 150 151 :return: The account_settings of this NewAccountDefinition. # noqa: E501 152 :rtype: AccountSettingsInformation 153 """ 154 return self._account_settings 155 156 @account_settings.setter 157 def account_settings(self, account_settings): 158 """Sets the account_settings of this NewAccountDefinition. 159 160 The list of account settings. These determine the features available for the account. Note that some features are determined by the plan used to create the account, and cannot be overridden. # noqa: E501 161 162 :param account_settings: The account_settings of this NewAccountDefinition. # noqa: E501 163 :type: AccountSettingsInformation 164 """ 165 166 self._account_settings = account_settings 167 168 @property 169 def address_information(self): 170 """Gets the address_information of this NewAccountDefinition. # noqa: E501 171 172 A complex type that contains the following information for the new account: `Street1`, `Street2`, `City`, `State`, `Zip`, `Phone`, and `Fax`. # noqa: E501 173 174 :return: The address_information of this NewAccountDefinition. # noqa: E501 175 :rtype: AccountAddress 176 """ 177 return self._address_information 178 179 @address_information.setter 180 def address_information(self, address_information): 181 """Sets the address_information of this NewAccountDefinition. 182 183 A complex type that contains the following information for the new account: `Street1`, `Street2`, `City`, `State`, `Zip`, `Phone`, and `Fax`. # noqa: E501 184 185 :param address_information: The address_information of this NewAccountDefinition. # noqa: E501 186 :type: AccountAddress 187 """ 188 189 self._address_information = address_information 190 191 @property 192 def credit_card_information(self): 193 """Gets the credit_card_information of this NewAccountDefinition. # noqa: E501 194 195 A complex type that has information about the credit card used to pay for this account. # noqa: E501 196 197 :return: The credit_card_information of this NewAccountDefinition. # noqa: E501 198 :rtype: CreditCardInformation 199 """ 200 return self._credit_card_information 201 202 @credit_card_information.setter 203 def credit_card_information(self, credit_card_information): 204 """Sets the credit_card_information of this NewAccountDefinition. 205 206 A complex type that has information about the credit card used to pay for this account. # noqa: E501 207 208 :param credit_card_information: The credit_card_information of this NewAccountDefinition. # noqa: E501 209 :type: CreditCardInformation 210 """ 211 212 self._credit_card_information = credit_card_information 213 214 @property 215 def direct_debit_processor_information(self): 216 """Gets the direct_debit_processor_information of this NewAccountDefinition. # noqa: E501 217 218 Information about the bank that processes direct debits for the payment plan. # noqa: E501 219 220 :return: The direct_debit_processor_information of this NewAccountDefinition. # noqa: E501 221 :rtype: DirectDebitProcessorInformation 222 """ 223 return self._direct_debit_processor_information 224 225 @direct_debit_processor_information.setter 226 def direct_debit_processor_information(self, direct_debit_processor_information): 227 """Sets the direct_debit_processor_information of this NewAccountDefinition. 228 229 Information about the bank that processes direct debits for the payment plan. # noqa: E501 230 231 :param direct_debit_processor_information: The direct_debit_processor_information of this NewAccountDefinition. # noqa: E501 232 :type: DirectDebitProcessorInformation 233 """ 234 235 self._direct_debit_processor_information = direct_debit_processor_information 236 237 @property 238 def distributor_code(self): 239 """Gets the distributor_code of this NewAccountDefinition. # noqa: E501 240 241 The code that identifies the billing plan groups and plans for the new account. # noqa: E501 242 243 :return: The distributor_code of this NewAccountDefinition. # noqa: E501 244 :rtype: str 245 """ 246 return self._distributor_code 247 248 @distributor_code.setter 249 def distributor_code(self, distributor_code): 250 """Sets the distributor_code of this NewAccountDefinition. 251 252 The code that identifies the billing plan groups and plans for the new account. # noqa: E501 253 254 :param distributor_code: The distributor_code of this NewAccountDefinition. # noqa: E501 255 :type: str 256 """ 257 258 self._distributor_code = distributor_code 259 260 @property 261 def distributor_password(self): 262 """Gets the distributor_password of this NewAccountDefinition. # noqa: E501 263 264 The password for the distributorCode. # noqa: E501 265 266 :return: The distributor_password of this NewAccountDefinition. # noqa: E501 267 :rtype: str 268 """ 269 return self._distributor_password 270 271 @distributor_password.setter 272 def distributor_password(self, distributor_password): 273 """Sets the distributor_password of this NewAccountDefinition. 274 275 The password for the distributorCode. # noqa: E501 276 277 :param distributor_password: The distributor_password of this NewAccountDefinition. # noqa: E501 278 :type: str 279 """ 280 281 self._distributor_password = distributor_password 282 283 @property 284 def enable_pre_auth(self): 285 """Gets the enable_pre_auth of this NewAccountDefinition. # noqa: E501 286 287 # noqa: E501 288 289 :return: The enable_pre_auth of this NewAccountDefinition. # noqa: E501 290 :rtype: str 291 """ 292 return self._enable_pre_auth 293 294 @enable_pre_auth.setter 295 def enable_pre_auth(self, enable_pre_auth): 296 """Sets the enable_pre_auth of this NewAccountDefinition. 297 298 # noqa: E501 299 300 :param enable_pre_auth: The enable_pre_auth of this NewAccountDefinition. # noqa: E501 301 :type: str 302 """ 303 304 self._enable_pre_auth = enable_pre_auth 305 306 @property 307 def envelope_partition_id(self): 308 """Gets the envelope_partition_id of this NewAccountDefinition. # noqa: E501 309 310 # noqa: E501 311 312 :return: The envelope_partition_id of this NewAccountDefinition. # noqa: E501 313 :rtype: str 314 """ 315 return self._envelope_partition_id 316 317 @envelope_partition_id.setter 318 def envelope_partition_id(self, envelope_partition_id): 319 """Sets the envelope_partition_id of this NewAccountDefinition. 320 321 # noqa: E501 322 323 :param envelope_partition_id: The envelope_partition_id of this NewAccountDefinition. # noqa: E501 324 :type: str 325 """ 326 327 self._envelope_partition_id = envelope_partition_id 328 329 @property 330 def initial_user(self): 331 """Gets the initial_user of this NewAccountDefinition. # noqa: E501 332 333 A complex type with the initial user information for the new account. Note that some user information is set internally based on the plan and cannot be overridden. # noqa: E501 334 335 :return: The initial_user of this NewAccountDefinition. # noqa: E501 336 :rtype: UserInformation 337 """ 338 return self._initial_user 339 340 @initial_user.setter 341 def initial_user(self, initial_user): 342 """Sets the initial_user of this NewAccountDefinition. 343 344 A complex type with the initial user information for the new account. Note that some user information is set internally based on the plan and cannot be overridden. # noqa: E501 345 346 :param initial_user: The initial_user of this NewAccountDefinition. # noqa: E501 347 :type: UserInformation 348 """ 349 350 self._initial_user = initial_user 351 352 @property 353 def payment_method(self): 354 """Gets the payment_method of this NewAccountDefinition. # noqa: E501 355 356 # noqa: E501 357 358 :return: The payment_method of this NewAccountDefinition. # noqa: E501 359 :rtype: str 360 """ 361 return self._payment_method 362 363 @payment_method.setter 364 def payment_method(self, payment_method): 365 """Sets the payment_method of this NewAccountDefinition. 366 367 # noqa: E501 368 369 :param payment_method: The payment_method of this NewAccountDefinition. # noqa: E501 370 :type: str 371 """ 372 373 self._payment_method = payment_method 374 375 @property 376 def payment_processor(self): 377 """Gets the payment_processor of this NewAccountDefinition. # noqa: E501 378 379 # noqa: E501 380 381 :return: The payment_processor of this NewAccountDefinition. # noqa: E501 382 :rtype: str 383 """ 384 return self._payment_processor 385 386 @payment_processor.setter 387 def payment_processor(self, payment_processor): 388 """Sets the payment_processor of this NewAccountDefinition. 389 390 # noqa: E501 391 392 :param payment_processor: The payment_processor of this NewAccountDefinition. # noqa: E501 393 :type: str 394 """ 395 396 self._payment_processor = payment_processor 397 398 @property 399 def payment_processor_information(self): 400 """Gets the payment_processor_information of this NewAccountDefinition. # noqa: E501 401 402 Information about the entity that processes payments for the billing plan. # noqa: E501 403 404 :return: The payment_processor_information of this NewAccountDefinition. # noqa: E501 405 :rtype: PaymentProcessorInformation 406 """ 407 return self._payment_processor_information 408 409 @payment_processor_information.setter 410 def payment_processor_information(self, payment_processor_information): 411 """Sets the payment_processor_information of this NewAccountDefinition. 412 413 Information about the entity that processes payments for the billing plan. # noqa: E501 414 415 :param payment_processor_information: The payment_processor_information of this NewAccountDefinition. # noqa: E501 416 :type: PaymentProcessorInformation 417 """ 418 419 self._payment_processor_information = payment_processor_information 420 421 @property 422 def plan_information(self): 423 """Gets the plan_information of this NewAccountDefinition. # noqa: E501 424 425 An object used to identify the features and attributes of the account being created. # noqa: E501 426 427 :return: The plan_information of this NewAccountDefinition. # noqa: E501 428 :rtype: PlanInformation 429 """ 430 return self._plan_information 431 432 @plan_information.setter 433 def plan_information(self, plan_information): 434 """Sets the plan_information of this NewAccountDefinition. 435 436 An object used to identify the features and attributes of the account being created. # noqa: E501 437 438 :param plan_information: The plan_information of this NewAccountDefinition. # noqa: E501 439 :type: PlanInformation 440 """ 441 442 self._plan_information = plan_information 443 444 @property 445 def process_payment(self): 446 """Gets the process_payment of this NewAccountDefinition. # noqa: E501 447 448 # noqa: E501 449 450 :return: The process_payment of this NewAccountDefinition. # noqa: E501 451 :rtype: str 452 """ 453 return self._process_payment 454 455 @process_payment.setter 456 def process_payment(self, process_payment): 457 """Sets the process_payment of this NewAccountDefinition. 458 459 # noqa: E501 460 461 :param process_payment: The process_payment of this NewAccountDefinition. # noqa: E501 462 :type: str 463 """ 464 465 self._process_payment = process_payment 466 467 @property 468 def referral_information(self): 469 """Gets the referral_information of this NewAccountDefinition. # noqa: E501 470 471 A complex type that contains properties for entering referral and discount information. # noqa: E501 472 473 :return: The referral_information of this NewAccountDefinition. # noqa: E501 474 :rtype: ReferralInformation 475 """ 476 return self._referral_information 477 478 @referral_information.setter 479 def referral_information(self, referral_information): 480 """Sets the referral_information of this NewAccountDefinition. 481 482 A complex type that contains properties for entering referral and discount information. # noqa: E501 483 484 :param referral_information: The referral_information of this NewAccountDefinition. # noqa: E501 485 :type: ReferralInformation 486 """ 487 488 self._referral_information = referral_information 489 490 @property 491 def social_account_information(self): 492 """Gets the social_account_information of this NewAccountDefinition. # noqa: E501 493 494 Contains properties that map a DocuSign user to a social account (Facebook, Yahoo, etc.) # noqa: E501 495 496 :return: The social_account_information of this NewAccountDefinition. # noqa: E501 497 :rtype: SocialAccountInformation 498 """ 499 return self._social_account_information 500 501 @social_account_information.setter 502 def social_account_information(self, social_account_information): 503 """Sets the social_account_information of this NewAccountDefinition. 504 505 Contains properties that map a DocuSign user to a social account (Facebook, Yahoo, etc.) # noqa: E501 506 507 :param social_account_information: The social_account_information of this NewAccountDefinition. # noqa: E501 508 :type: SocialAccountInformation 509 """ 510 511 self._social_account_information = social_account_information 512 513 @property 514 def tax_exempt_id(self): 515 """Gets the tax_exempt_id of this NewAccountDefinition. # noqa: E501 516 517 # noqa: E501 518 519 :return: The tax_exempt_id of this NewAccountDefinition. # noqa: E501 520 :rtype: str 521 """ 522 return self._tax_exempt_id 523 524 @tax_exempt_id.setter 525 def tax_exempt_id(self, tax_exempt_id): 526 """Sets the tax_exempt_id of this NewAccountDefinition. 527 528 # noqa: E501 529 530 :param tax_exempt_id: The tax_exempt_id of this NewAccountDefinition. # noqa: E501 531 :type: str 532 """ 533 534 self._tax_exempt_id = tax_exempt_id 535 536 def to_dict(self): 537 """Returns the model properties as a dict""" 538 result = {} 539 540 for attr, _ in six.iteritems(self.swagger_types): 541 value = getattr(self, attr) 542 if isinstance(value, list): 543 result[attr] = list(map( 544 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 545 value 546 )) 547 elif hasattr(value, "to_dict"): 548 result[attr] = value.to_dict() 549 elif isinstance(value, dict): 550 result[attr] = dict(map( 551 lambda item: (item[0], item[1].to_dict()) 552 if hasattr(item[1], "to_dict") else item, 553 value.items() 554 )) 555 else: 556 result[attr] = value 557 if issubclass(NewAccountDefinition, dict): 558 for key, value in self.items(): 559 result[key] = value 560 561 return result 562 563 def to_str(self): 564 """Returns the string representation of the model""" 565 return pprint.pformat(self.to_dict()) 566 567 def __repr__(self): 568 """For `print` and `pprint`""" 569 return self.to_str() 570 571 def __eq__(self, other): 572 """Returns true if both objects are equal""" 573 if not isinstance(other, NewAccountDefinition): 574 return False 575 576 return self.to_dict() == other.to_dict() 577 578 def __ne__(self, other): 579 """Returns true if both objects are not equal""" 580 if not isinstance(other, NewAccountDefinition): 581 return True 582 583 return self.to_dict() != other.to_dict()
23class NewAccountDefinition(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 'account_name': 'str', 38 'account_settings': 'AccountSettingsInformation', 39 'address_information': 'AccountAddress', 40 'credit_card_information': 'CreditCardInformation', 41 'direct_debit_processor_information': 'DirectDebitProcessorInformation', 42 'distributor_code': 'str', 43 'distributor_password': 'str', 44 'enable_pre_auth': 'str', 45 'envelope_partition_id': 'str', 46 'initial_user': 'UserInformation', 47 'payment_method': 'str', 48 'payment_processor': 'str', 49 'payment_processor_information': 'PaymentProcessorInformation', 50 'plan_information': 'PlanInformation', 51 'process_payment': 'str', 52 'referral_information': 'ReferralInformation', 53 'social_account_information': 'SocialAccountInformation', 54 'tax_exempt_id': 'str' 55 } 56 57 attribute_map = { 58 'account_name': 'accountName', 59 'account_settings': 'accountSettings', 60 'address_information': 'addressInformation', 61 'credit_card_information': 'creditCardInformation', 62 'direct_debit_processor_information': 'directDebitProcessorInformation', 63 'distributor_code': 'distributorCode', 64 'distributor_password': 'distributorPassword', 65 'enable_pre_auth': 'enablePreAuth', 66 'envelope_partition_id': 'envelopePartitionId', 67 'initial_user': 'initialUser', 68 'payment_method': 'paymentMethod', 69 'payment_processor': 'paymentProcessor', 70 'payment_processor_information': 'paymentProcessorInformation', 71 'plan_information': 'planInformation', 72 'process_payment': 'processPayment', 73 'referral_information': 'referralInformation', 74 'social_account_information': 'socialAccountInformation', 75 'tax_exempt_id': 'taxExemptId' 76 } 77 78 def __init__(self, _configuration=None, **kwargs): # noqa: E501 79 """NewAccountDefinition - a model defined in Swagger""" # noqa: E501 80 if _configuration is None: 81 _configuration = Configuration() 82 self._configuration = _configuration 83 84 self._account_name = None 85 self._account_settings = None 86 self._address_information = None 87 self._credit_card_information = None 88 self._direct_debit_processor_information = None 89 self._distributor_code = None 90 self._distributor_password = None 91 self._enable_pre_auth = None 92 self._envelope_partition_id = None 93 self._initial_user = None 94 self._payment_method = None 95 self._payment_processor = None 96 self._payment_processor_information = None 97 self._plan_information = None 98 self._process_payment = None 99 self._referral_information = None 100 self._social_account_information = None 101 self._tax_exempt_id = None 102 self.discriminator = None 103 104 setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) 105 setattr(self, "_{}".format('account_settings'), kwargs.get('account_settings', None)) 106 setattr(self, "_{}".format('address_information'), kwargs.get('address_information', None)) 107 setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) 108 setattr(self, "_{}".format('direct_debit_processor_information'), kwargs.get('direct_debit_processor_information', None)) 109 setattr(self, "_{}".format('distributor_code'), kwargs.get('distributor_code', None)) 110 setattr(self, "_{}".format('distributor_password'), kwargs.get('distributor_password', None)) 111 setattr(self, "_{}".format('enable_pre_auth'), kwargs.get('enable_pre_auth', None)) 112 setattr(self, "_{}".format('envelope_partition_id'), kwargs.get('envelope_partition_id', None)) 113 setattr(self, "_{}".format('initial_user'), kwargs.get('initial_user', None)) 114 setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) 115 setattr(self, "_{}".format('payment_processor'), kwargs.get('payment_processor', None)) 116 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) 117 setattr(self, "_{}".format('plan_information'), kwargs.get('plan_information', None)) 118 setattr(self, "_{}".format('process_payment'), kwargs.get('process_payment', None)) 119 setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) 120 setattr(self, "_{}".format('social_account_information'), kwargs.get('social_account_information', None)) 121 setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None)) 122 123 @property 124 def account_name(self): 125 """Gets the account_name of this NewAccountDefinition. # noqa: E501 126 127 The account name for the new account. # noqa: E501 128 129 :return: The account_name of this NewAccountDefinition. # noqa: E501 130 :rtype: str 131 """ 132 return self._account_name 133 134 @account_name.setter 135 def account_name(self, account_name): 136 """Sets the account_name of this NewAccountDefinition. 137 138 The account name for the new account. # noqa: E501 139 140 :param account_name: The account_name of this NewAccountDefinition. # noqa: E501 141 :type: str 142 """ 143 144 self._account_name = account_name 145 146 @property 147 def account_settings(self): 148 """Gets the account_settings of this NewAccountDefinition. # noqa: E501 149 150 The list of account settings. These determine the features available for the account. Note that some features are determined by the plan used to create the account, and cannot be overridden. # noqa: E501 151 152 :return: The account_settings of this NewAccountDefinition. # noqa: E501 153 :rtype: AccountSettingsInformation 154 """ 155 return self._account_settings 156 157 @account_settings.setter 158 def account_settings(self, account_settings): 159 """Sets the account_settings of this NewAccountDefinition. 160 161 The list of account settings. These determine the features available for the account. Note that some features are determined by the plan used to create the account, and cannot be overridden. # noqa: E501 162 163 :param account_settings: The account_settings of this NewAccountDefinition. # noqa: E501 164 :type: AccountSettingsInformation 165 """ 166 167 self._account_settings = account_settings 168 169 @property 170 def address_information(self): 171 """Gets the address_information of this NewAccountDefinition. # noqa: E501 172 173 A complex type that contains the following information for the new account: `Street1`, `Street2`, `City`, `State`, `Zip`, `Phone`, and `Fax`. # noqa: E501 174 175 :return: The address_information of this NewAccountDefinition. # noqa: E501 176 :rtype: AccountAddress 177 """ 178 return self._address_information 179 180 @address_information.setter 181 def address_information(self, address_information): 182 """Sets the address_information of this NewAccountDefinition. 183 184 A complex type that contains the following information for the new account: `Street1`, `Street2`, `City`, `State`, `Zip`, `Phone`, and `Fax`. # noqa: E501 185 186 :param address_information: The address_information of this NewAccountDefinition. # noqa: E501 187 :type: AccountAddress 188 """ 189 190 self._address_information = address_information 191 192 @property 193 def credit_card_information(self): 194 """Gets the credit_card_information of this NewAccountDefinition. # noqa: E501 195 196 A complex type that has information about the credit card used to pay for this account. # noqa: E501 197 198 :return: The credit_card_information of this NewAccountDefinition. # noqa: E501 199 :rtype: CreditCardInformation 200 """ 201 return self._credit_card_information 202 203 @credit_card_information.setter 204 def credit_card_information(self, credit_card_information): 205 """Sets the credit_card_information of this NewAccountDefinition. 206 207 A complex type that has information about the credit card used to pay for this account. # noqa: E501 208 209 :param credit_card_information: The credit_card_information of this NewAccountDefinition. # noqa: E501 210 :type: CreditCardInformation 211 """ 212 213 self._credit_card_information = credit_card_information 214 215 @property 216 def direct_debit_processor_information(self): 217 """Gets the direct_debit_processor_information of this NewAccountDefinition. # noqa: E501 218 219 Information about the bank that processes direct debits for the payment plan. # noqa: E501 220 221 :return: The direct_debit_processor_information of this NewAccountDefinition. # noqa: E501 222 :rtype: DirectDebitProcessorInformation 223 """ 224 return self._direct_debit_processor_information 225 226 @direct_debit_processor_information.setter 227 def direct_debit_processor_information(self, direct_debit_processor_information): 228 """Sets the direct_debit_processor_information of this NewAccountDefinition. 229 230 Information about the bank that processes direct debits for the payment plan. # noqa: E501 231 232 :param direct_debit_processor_information: The direct_debit_processor_information of this NewAccountDefinition. # noqa: E501 233 :type: DirectDebitProcessorInformation 234 """ 235 236 self._direct_debit_processor_information = direct_debit_processor_information 237 238 @property 239 def distributor_code(self): 240 """Gets the distributor_code of this NewAccountDefinition. # noqa: E501 241 242 The code that identifies the billing plan groups and plans for the new account. # noqa: E501 243 244 :return: The distributor_code of this NewAccountDefinition. # noqa: E501 245 :rtype: str 246 """ 247 return self._distributor_code 248 249 @distributor_code.setter 250 def distributor_code(self, distributor_code): 251 """Sets the distributor_code of this NewAccountDefinition. 252 253 The code that identifies the billing plan groups and plans for the new account. # noqa: E501 254 255 :param distributor_code: The distributor_code of this NewAccountDefinition. # noqa: E501 256 :type: str 257 """ 258 259 self._distributor_code = distributor_code 260 261 @property 262 def distributor_password(self): 263 """Gets the distributor_password of this NewAccountDefinition. # noqa: E501 264 265 The password for the distributorCode. # noqa: E501 266 267 :return: The distributor_password of this NewAccountDefinition. # noqa: E501 268 :rtype: str 269 """ 270 return self._distributor_password 271 272 @distributor_password.setter 273 def distributor_password(self, distributor_password): 274 """Sets the distributor_password of this NewAccountDefinition. 275 276 The password for the distributorCode. # noqa: E501 277 278 :param distributor_password: The distributor_password of this NewAccountDefinition. # noqa: E501 279 :type: str 280 """ 281 282 self._distributor_password = distributor_password 283 284 @property 285 def enable_pre_auth(self): 286 """Gets the enable_pre_auth of this NewAccountDefinition. # noqa: E501 287 288 # noqa: E501 289 290 :return: The enable_pre_auth of this NewAccountDefinition. # noqa: E501 291 :rtype: str 292 """ 293 return self._enable_pre_auth 294 295 @enable_pre_auth.setter 296 def enable_pre_auth(self, enable_pre_auth): 297 """Sets the enable_pre_auth of this NewAccountDefinition. 298 299 # noqa: E501 300 301 :param enable_pre_auth: The enable_pre_auth of this NewAccountDefinition. # noqa: E501 302 :type: str 303 """ 304 305 self._enable_pre_auth = enable_pre_auth 306 307 @property 308 def envelope_partition_id(self): 309 """Gets the envelope_partition_id of this NewAccountDefinition. # noqa: E501 310 311 # noqa: E501 312 313 :return: The envelope_partition_id of this NewAccountDefinition. # noqa: E501 314 :rtype: str 315 """ 316 return self._envelope_partition_id 317 318 @envelope_partition_id.setter 319 def envelope_partition_id(self, envelope_partition_id): 320 """Sets the envelope_partition_id of this NewAccountDefinition. 321 322 # noqa: E501 323 324 :param envelope_partition_id: The envelope_partition_id of this NewAccountDefinition. # noqa: E501 325 :type: str 326 """ 327 328 self._envelope_partition_id = envelope_partition_id 329 330 @property 331 def initial_user(self): 332 """Gets the initial_user of this NewAccountDefinition. # noqa: E501 333 334 A complex type with the initial user information for the new account. Note that some user information is set internally based on the plan and cannot be overridden. # noqa: E501 335 336 :return: The initial_user of this NewAccountDefinition. # noqa: E501 337 :rtype: UserInformation 338 """ 339 return self._initial_user 340 341 @initial_user.setter 342 def initial_user(self, initial_user): 343 """Sets the initial_user of this NewAccountDefinition. 344 345 A complex type with the initial user information for the new account. Note that some user information is set internally based on the plan and cannot be overridden. # noqa: E501 346 347 :param initial_user: The initial_user of this NewAccountDefinition. # noqa: E501 348 :type: UserInformation 349 """ 350 351 self._initial_user = initial_user 352 353 @property 354 def payment_method(self): 355 """Gets the payment_method of this NewAccountDefinition. # noqa: E501 356 357 # noqa: E501 358 359 :return: The payment_method of this NewAccountDefinition. # noqa: E501 360 :rtype: str 361 """ 362 return self._payment_method 363 364 @payment_method.setter 365 def payment_method(self, payment_method): 366 """Sets the payment_method of this NewAccountDefinition. 367 368 # noqa: E501 369 370 :param payment_method: The payment_method of this NewAccountDefinition. # noqa: E501 371 :type: str 372 """ 373 374 self._payment_method = payment_method 375 376 @property 377 def payment_processor(self): 378 """Gets the payment_processor of this NewAccountDefinition. # noqa: E501 379 380 # noqa: E501 381 382 :return: The payment_processor of this NewAccountDefinition. # noqa: E501 383 :rtype: str 384 """ 385 return self._payment_processor 386 387 @payment_processor.setter 388 def payment_processor(self, payment_processor): 389 """Sets the payment_processor of this NewAccountDefinition. 390 391 # noqa: E501 392 393 :param payment_processor: The payment_processor of this NewAccountDefinition. # noqa: E501 394 :type: str 395 """ 396 397 self._payment_processor = payment_processor 398 399 @property 400 def payment_processor_information(self): 401 """Gets the payment_processor_information of this NewAccountDefinition. # noqa: E501 402 403 Information about the entity that processes payments for the billing plan. # noqa: E501 404 405 :return: The payment_processor_information of this NewAccountDefinition. # noqa: E501 406 :rtype: PaymentProcessorInformation 407 """ 408 return self._payment_processor_information 409 410 @payment_processor_information.setter 411 def payment_processor_information(self, payment_processor_information): 412 """Sets the payment_processor_information of this NewAccountDefinition. 413 414 Information about the entity that processes payments for the billing plan. # noqa: E501 415 416 :param payment_processor_information: The payment_processor_information of this NewAccountDefinition. # noqa: E501 417 :type: PaymentProcessorInformation 418 """ 419 420 self._payment_processor_information = payment_processor_information 421 422 @property 423 def plan_information(self): 424 """Gets the plan_information of this NewAccountDefinition. # noqa: E501 425 426 An object used to identify the features and attributes of the account being created. # noqa: E501 427 428 :return: The plan_information of this NewAccountDefinition. # noqa: E501 429 :rtype: PlanInformation 430 """ 431 return self._plan_information 432 433 @plan_information.setter 434 def plan_information(self, plan_information): 435 """Sets the plan_information of this NewAccountDefinition. 436 437 An object used to identify the features and attributes of the account being created. # noqa: E501 438 439 :param plan_information: The plan_information of this NewAccountDefinition. # noqa: E501 440 :type: PlanInformation 441 """ 442 443 self._plan_information = plan_information 444 445 @property 446 def process_payment(self): 447 """Gets the process_payment of this NewAccountDefinition. # noqa: E501 448 449 # noqa: E501 450 451 :return: The process_payment of this NewAccountDefinition. # noqa: E501 452 :rtype: str 453 """ 454 return self._process_payment 455 456 @process_payment.setter 457 def process_payment(self, process_payment): 458 """Sets the process_payment of this NewAccountDefinition. 459 460 # noqa: E501 461 462 :param process_payment: The process_payment of this NewAccountDefinition. # noqa: E501 463 :type: str 464 """ 465 466 self._process_payment = process_payment 467 468 @property 469 def referral_information(self): 470 """Gets the referral_information of this NewAccountDefinition. # noqa: E501 471 472 A complex type that contains properties for entering referral and discount information. # noqa: E501 473 474 :return: The referral_information of this NewAccountDefinition. # noqa: E501 475 :rtype: ReferralInformation 476 """ 477 return self._referral_information 478 479 @referral_information.setter 480 def referral_information(self, referral_information): 481 """Sets the referral_information of this NewAccountDefinition. 482 483 A complex type that contains properties for entering referral and discount information. # noqa: E501 484 485 :param referral_information: The referral_information of this NewAccountDefinition. # noqa: E501 486 :type: ReferralInformation 487 """ 488 489 self._referral_information = referral_information 490 491 @property 492 def social_account_information(self): 493 """Gets the social_account_information of this NewAccountDefinition. # noqa: E501 494 495 Contains properties that map a DocuSign user to a social account (Facebook, Yahoo, etc.) # noqa: E501 496 497 :return: The social_account_information of this NewAccountDefinition. # noqa: E501 498 :rtype: SocialAccountInformation 499 """ 500 return self._social_account_information 501 502 @social_account_information.setter 503 def social_account_information(self, social_account_information): 504 """Sets the social_account_information of this NewAccountDefinition. 505 506 Contains properties that map a DocuSign user to a social account (Facebook, Yahoo, etc.) # noqa: E501 507 508 :param social_account_information: The social_account_information of this NewAccountDefinition. # noqa: E501 509 :type: SocialAccountInformation 510 """ 511 512 self._social_account_information = social_account_information 513 514 @property 515 def tax_exempt_id(self): 516 """Gets the tax_exempt_id of this NewAccountDefinition. # noqa: E501 517 518 # noqa: E501 519 520 :return: The tax_exempt_id of this NewAccountDefinition. # noqa: E501 521 :rtype: str 522 """ 523 return self._tax_exempt_id 524 525 @tax_exempt_id.setter 526 def tax_exempt_id(self, tax_exempt_id): 527 """Sets the tax_exempt_id of this NewAccountDefinition. 528 529 # noqa: E501 530 531 :param tax_exempt_id: The tax_exempt_id of this NewAccountDefinition. # noqa: E501 532 :type: str 533 """ 534 535 self._tax_exempt_id = tax_exempt_id 536 537 def to_dict(self): 538 """Returns the model properties as a dict""" 539 result = {} 540 541 for attr, _ in six.iteritems(self.swagger_types): 542 value = getattr(self, attr) 543 if isinstance(value, list): 544 result[attr] = list(map( 545 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 546 value 547 )) 548 elif hasattr(value, "to_dict"): 549 result[attr] = value.to_dict() 550 elif isinstance(value, dict): 551 result[attr] = dict(map( 552 lambda item: (item[0], item[1].to_dict()) 553 if hasattr(item[1], "to_dict") else item, 554 value.items() 555 )) 556 else: 557 result[attr] = value 558 if issubclass(NewAccountDefinition, dict): 559 for key, value in self.items(): 560 result[key] = value 561 562 return result 563 564 def to_str(self): 565 """Returns the string representation of the model""" 566 return pprint.pformat(self.to_dict()) 567 568 def __repr__(self): 569 """For `print` and `pprint`""" 570 return self.to_str() 571 572 def __eq__(self, other): 573 """Returns true if both objects are equal""" 574 if not isinstance(other, NewAccountDefinition): 575 return False 576 577 return self.to_dict() == other.to_dict() 578 579 def __ne__(self, other): 580 """Returns true if both objects are not equal""" 581 if not isinstance(other, NewAccountDefinition): 582 return True 583 584 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.
78 def __init__(self, _configuration=None, **kwargs): # noqa: E501 79 """NewAccountDefinition - a model defined in Swagger""" # noqa: E501 80 if _configuration is None: 81 _configuration = Configuration() 82 self._configuration = _configuration 83 84 self._account_name = None 85 self._account_settings = None 86 self._address_information = None 87 self._credit_card_information = None 88 self._direct_debit_processor_information = None 89 self._distributor_code = None 90 self._distributor_password = None 91 self._enable_pre_auth = None 92 self._envelope_partition_id = None 93 self._initial_user = None 94 self._payment_method = None 95 self._payment_processor = None 96 self._payment_processor_information = None 97 self._plan_information = None 98 self._process_payment = None 99 self._referral_information = None 100 self._social_account_information = None 101 self._tax_exempt_id = None 102 self.discriminator = None 103 104 setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None)) 105 setattr(self, "_{}".format('account_settings'), kwargs.get('account_settings', None)) 106 setattr(self, "_{}".format('address_information'), kwargs.get('address_information', None)) 107 setattr(self, "_{}".format('credit_card_information'), kwargs.get('credit_card_information', None)) 108 setattr(self, "_{}".format('direct_debit_processor_information'), kwargs.get('direct_debit_processor_information', None)) 109 setattr(self, "_{}".format('distributor_code'), kwargs.get('distributor_code', None)) 110 setattr(self, "_{}".format('distributor_password'), kwargs.get('distributor_password', None)) 111 setattr(self, "_{}".format('enable_pre_auth'), kwargs.get('enable_pre_auth', None)) 112 setattr(self, "_{}".format('envelope_partition_id'), kwargs.get('envelope_partition_id', None)) 113 setattr(self, "_{}".format('initial_user'), kwargs.get('initial_user', None)) 114 setattr(self, "_{}".format('payment_method'), kwargs.get('payment_method', None)) 115 setattr(self, "_{}".format('payment_processor'), kwargs.get('payment_processor', None)) 116 setattr(self, "_{}".format('payment_processor_information'), kwargs.get('payment_processor_information', None)) 117 setattr(self, "_{}".format('plan_information'), kwargs.get('plan_information', None)) 118 setattr(self, "_{}".format('process_payment'), kwargs.get('process_payment', None)) 119 setattr(self, "_{}".format('referral_information'), kwargs.get('referral_information', None)) 120 setattr(self, "_{}".format('social_account_information'), kwargs.get('social_account_information', None)) 121 setattr(self, "_{}".format('tax_exempt_id'), kwargs.get('tax_exempt_id', None))
NewAccountDefinition - a model defined in Swagger
Gets the account_name of this NewAccountDefinition. # noqa: E501
The account name for the new account. # noqa: E501
Returns
The account_name of this NewAccountDefinition. # noqa: E501
Gets the account_settings of this NewAccountDefinition. # noqa: E501
The list of account settings. These determine the features available for the account. Note that some features are determined by the plan used to create the account, and cannot be overridden. # noqa: E501
Returns
The account_settings of this NewAccountDefinition. # noqa: E501
Gets the address_information of this NewAccountDefinition. # noqa: E501
A complex type that contains the following information for the new account: Street1
, Street2
, City
, State
, Zip
, Phone
, and Fax
. # noqa: E501
Returns
The address_information of this NewAccountDefinition. # noqa: E501
Gets the credit_card_information of this NewAccountDefinition. # 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 NewAccountDefinition. # noqa: E501
Gets the direct_debit_processor_information of this NewAccountDefinition. # noqa: E501
Information about the bank that processes direct debits for the payment plan. # noqa: E501
Returns
The direct_debit_processor_information of this NewAccountDefinition. # noqa: E501
Gets the distributor_code of this NewAccountDefinition. # noqa: E501
The code that identifies the billing plan groups and plans for the new account. # noqa: E501
Returns
The distributor_code of this NewAccountDefinition. # noqa: E501
Gets the distributor_password of this NewAccountDefinition. # noqa: E501
The password for the distributorCode. # noqa: E501
Returns
The distributor_password of this NewAccountDefinition. # noqa: E501
Gets the enable_pre_auth of this NewAccountDefinition. # noqa: E501
# noqa: E501
Returns
The enable_pre_auth of this NewAccountDefinition. # noqa: E501
Gets the envelope_partition_id of this NewAccountDefinition. # noqa: E501
# noqa: E501
Returns
The envelope_partition_id of this NewAccountDefinition. # noqa: E501
Gets the initial_user of this NewAccountDefinition. # noqa: E501
A complex type with the initial user information for the new account. Note that some user information is set internally based on the plan and cannot be overridden. # noqa: E501
Returns
The initial_user of this NewAccountDefinition. # noqa: E501
Gets the payment_method of this NewAccountDefinition. # noqa: E501
# noqa: E501
Returns
The payment_method of this NewAccountDefinition. # noqa: E501
Gets the payment_processor of this NewAccountDefinition. # noqa: E501
# noqa: E501
Returns
The payment_processor of this NewAccountDefinition. # noqa: E501
Gets the payment_processor_information of this NewAccountDefinition. # noqa: E501
Information about the entity that processes payments for the billing plan. # noqa: E501
Returns
The payment_processor_information of this NewAccountDefinition. # noqa: E501
Gets the plan_information of this NewAccountDefinition. # noqa: E501
An object used to identify the features and attributes of the account being created. # noqa: E501
Returns
The plan_information of this NewAccountDefinition. # noqa: E501
Gets the process_payment of this NewAccountDefinition. # noqa: E501
# noqa: E501
Returns
The process_payment of this NewAccountDefinition. # noqa: E501
Gets the referral_information of this NewAccountDefinition. # noqa: E501
A complex type that contains properties for entering referral and discount information. # noqa: E501
Returns
The referral_information of this NewAccountDefinition. # noqa: E501
Gets the tax_exempt_id of this NewAccountDefinition. # noqa: E501
# noqa: E501
Returns
The tax_exempt_id of this NewAccountDefinition. # noqa: E501
537 def to_dict(self): 538 """Returns the model properties as a dict""" 539 result = {} 540 541 for attr, _ in six.iteritems(self.swagger_types): 542 value = getattr(self, attr) 543 if isinstance(value, list): 544 result[attr] = list(map( 545 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 546 value 547 )) 548 elif hasattr(value, "to_dict"): 549 result[attr] = value.to_dict() 550 elif isinstance(value, dict): 551 result[attr] = dict(map( 552 lambda item: (item[0], item[1].to_dict()) 553 if hasattr(item[1], "to_dict") else item, 554 value.items() 555 )) 556 else: 557 result[attr] = value 558 if issubclass(NewAccountDefinition, dict): 559 for key, value in self.items(): 560 result[key] = value 561 562 return result
Returns the model properties as a dict