docusign_esign.models.address_information
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 AddressInformation(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 'address1': 'str', 37 'address2': 'str', 38 'city': 'str', 39 'country': 'str', 40 'fax': 'str', 41 'phone': 'str', 42 'postal_code': 'str', 43 'state_or_province': 'str', 44 'zip_plus4': 'str' 45 } 46 47 attribute_map = { 48 'address1': 'address1', 49 'address2': 'address2', 50 'city': 'city', 51 'country': 'country', 52 'fax': 'fax', 53 'phone': 'phone', 54 'postal_code': 'postalCode', 55 'state_or_province': 'stateOrProvince', 56 'zip_plus4': 'zipPlus4' 57 } 58 59 def __init__(self, _configuration=None, **kwargs): # noqa: E501 60 """AddressInformation - a model defined in Swagger""" # noqa: E501 61 if _configuration is None: 62 _configuration = Configuration() 63 self._configuration = _configuration 64 65 self._address1 = None 66 self._address2 = None 67 self._city = None 68 self._country = None 69 self._fax = None 70 self._phone = None 71 self._postal_code = None 72 self._state_or_province = None 73 self._zip_plus4 = None 74 self.discriminator = None 75 76 setattr(self, "_{}".format('address1'), kwargs.get('address1', None)) 77 setattr(self, "_{}".format('address2'), kwargs.get('address2', None)) 78 setattr(self, "_{}".format('city'), kwargs.get('city', None)) 79 setattr(self, "_{}".format('country'), kwargs.get('country', None)) 80 setattr(self, "_{}".format('fax'), kwargs.get('fax', None)) 81 setattr(self, "_{}".format('phone'), kwargs.get('phone', None)) 82 setattr(self, "_{}".format('postal_code'), kwargs.get('postal_code', None)) 83 setattr(self, "_{}".format('state_or_province'), kwargs.get('state_or_province', None)) 84 setattr(self, "_{}".format('zip_plus4'), kwargs.get('zip_plus4', None)) 85 86 @property 87 def address1(self): 88 """Gets the address1 of this AddressInformation. # noqa: E501 89 90 First Line of the address. Maximum length: 100 characters. # noqa: E501 91 92 :return: The address1 of this AddressInformation. # noqa: E501 93 :rtype: str 94 """ 95 return self._address1 96 97 @address1.setter 98 def address1(self, address1): 99 """Sets the address1 of this AddressInformation. 100 101 First Line of the address. Maximum length: 100 characters. # noqa: E501 102 103 :param address1: The address1 of this AddressInformation. # noqa: E501 104 :type: str 105 """ 106 107 self._address1 = address1 108 109 @property 110 def address2(self): 111 """Gets the address2 of this AddressInformation. # noqa: E501 112 113 Second Line of the address. Maximum length: 100 characters. # noqa: E501 114 115 :return: The address2 of this AddressInformation. # noqa: E501 116 :rtype: str 117 """ 118 return self._address2 119 120 @address2.setter 121 def address2(self, address2): 122 """Sets the address2 of this AddressInformation. 123 124 Second Line of the address. Maximum length: 100 characters. # noqa: E501 125 126 :param address2: The address2 of this AddressInformation. # noqa: E501 127 :type: str 128 """ 129 130 self._address2 = address2 131 132 @property 133 def city(self): 134 """Gets the city of this AddressInformation. # noqa: E501 135 136 The city associated with the address. # noqa: E501 137 138 :return: The city of this AddressInformation. # noqa: E501 139 :rtype: str 140 """ 141 return self._city 142 143 @city.setter 144 def city(self, city): 145 """Sets the city of this AddressInformation. 146 147 The city associated with the address. # noqa: E501 148 149 :param city: The city of this AddressInformation. # noqa: E501 150 :type: str 151 """ 152 153 self._city = city 154 155 @property 156 def country(self): 157 """Gets the country of this AddressInformation. # noqa: E501 158 159 Specifies the country associated with the address. # noqa: E501 160 161 :return: The country of this AddressInformation. # noqa: E501 162 :rtype: str 163 """ 164 return self._country 165 166 @country.setter 167 def country(self, country): 168 """Sets the country of this AddressInformation. 169 170 Specifies the country associated with the address. # noqa: E501 171 172 :param country: The country of this AddressInformation. # noqa: E501 173 :type: str 174 """ 175 176 self._country = country 177 178 @property 179 def fax(self): 180 """Gets the fax of this AddressInformation. # noqa: E501 181 182 A Fax number associated with the address if one is available. # noqa: E501 183 184 :return: The fax of this AddressInformation. # noqa: E501 185 :rtype: str 186 """ 187 return self._fax 188 189 @fax.setter 190 def fax(self, fax): 191 """Sets the fax of this AddressInformation. 192 193 A Fax number associated with the address if one is available. # noqa: E501 194 195 :param fax: The fax of this AddressInformation. # noqa: E501 196 :type: str 197 """ 198 199 self._fax = fax 200 201 @property 202 def phone(self): 203 """Gets the phone of this AddressInformation. # noqa: E501 204 205 A phone number associated with the address. # noqa: E501 206 207 :return: The phone of this AddressInformation. # noqa: E501 208 :rtype: str 209 """ 210 return self._phone 211 212 @phone.setter 213 def phone(self, phone): 214 """Sets the phone of this AddressInformation. 215 216 A phone number associated with the address. # noqa: E501 217 218 :param phone: The phone of this AddressInformation. # noqa: E501 219 :type: str 220 """ 221 222 self._phone = phone 223 224 @property 225 def postal_code(self): 226 """Gets the postal_code of this AddressInformation. # noqa: E501 227 228 # noqa: E501 229 230 :return: The postal_code of this AddressInformation. # noqa: E501 231 :rtype: str 232 """ 233 return self._postal_code 234 235 @postal_code.setter 236 def postal_code(self, postal_code): 237 """Sets the postal_code of this AddressInformation. 238 239 # noqa: E501 240 241 :param postal_code: The postal_code of this AddressInformation. # noqa: E501 242 :type: str 243 """ 244 245 self._postal_code = postal_code 246 247 @property 248 def state_or_province(self): 249 """Gets the state_or_province of this AddressInformation. # noqa: E501 250 251 # noqa: E501 252 253 :return: The state_or_province of this AddressInformation. # noqa: E501 254 :rtype: str 255 """ 256 return self._state_or_province 257 258 @state_or_province.setter 259 def state_or_province(self, state_or_province): 260 """Sets the state_or_province of this AddressInformation. 261 262 # noqa: E501 263 264 :param state_or_province: The state_or_province of this AddressInformation. # noqa: E501 265 :type: str 266 """ 267 268 self._state_or_province = state_or_province 269 270 @property 271 def zip_plus4(self): 272 """Gets the zip_plus4 of this AddressInformation. # noqa: E501 273 274 # noqa: E501 275 276 :return: The zip_plus4 of this AddressInformation. # noqa: E501 277 :rtype: str 278 """ 279 return self._zip_plus4 280 281 @zip_plus4.setter 282 def zip_plus4(self, zip_plus4): 283 """Sets the zip_plus4 of this AddressInformation. 284 285 # noqa: E501 286 287 :param zip_plus4: The zip_plus4 of this AddressInformation. # noqa: E501 288 :type: str 289 """ 290 291 self._zip_plus4 = zip_plus4 292 293 def to_dict(self): 294 """Returns the model properties as a dict""" 295 result = {} 296 297 for attr, _ in six.iteritems(self.swagger_types): 298 value = getattr(self, attr) 299 if isinstance(value, list): 300 result[attr] = list(map( 301 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 302 value 303 )) 304 elif hasattr(value, "to_dict"): 305 result[attr] = value.to_dict() 306 elif isinstance(value, dict): 307 result[attr] = dict(map( 308 lambda item: (item[0], item[1].to_dict()) 309 if hasattr(item[1], "to_dict") else item, 310 value.items() 311 )) 312 else: 313 result[attr] = value 314 if issubclass(AddressInformation, dict): 315 for key, value in self.items(): 316 result[key] = value 317 318 return result 319 320 def to_str(self): 321 """Returns the string representation of the model""" 322 return pprint.pformat(self.to_dict()) 323 324 def __repr__(self): 325 """For `print` and `pprint`""" 326 return self.to_str() 327 328 def __eq__(self, other): 329 """Returns true if both objects are equal""" 330 if not isinstance(other, AddressInformation): 331 return False 332 333 return self.to_dict() == other.to_dict() 334 335 def __ne__(self, other): 336 """Returns true if both objects are not equal""" 337 if not isinstance(other, AddressInformation): 338 return True 339 340 return self.to_dict() != other.to_dict()
23class AddressInformation(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 'address1': 'str', 38 'address2': 'str', 39 'city': 'str', 40 'country': 'str', 41 'fax': 'str', 42 'phone': 'str', 43 'postal_code': 'str', 44 'state_or_province': 'str', 45 'zip_plus4': 'str' 46 } 47 48 attribute_map = { 49 'address1': 'address1', 50 'address2': 'address2', 51 'city': 'city', 52 'country': 'country', 53 'fax': 'fax', 54 'phone': 'phone', 55 'postal_code': 'postalCode', 56 'state_or_province': 'stateOrProvince', 57 'zip_plus4': 'zipPlus4' 58 } 59 60 def __init__(self, _configuration=None, **kwargs): # noqa: E501 61 """AddressInformation - a model defined in Swagger""" # noqa: E501 62 if _configuration is None: 63 _configuration = Configuration() 64 self._configuration = _configuration 65 66 self._address1 = None 67 self._address2 = None 68 self._city = None 69 self._country = None 70 self._fax = None 71 self._phone = None 72 self._postal_code = None 73 self._state_or_province = None 74 self._zip_plus4 = None 75 self.discriminator = None 76 77 setattr(self, "_{}".format('address1'), kwargs.get('address1', None)) 78 setattr(self, "_{}".format('address2'), kwargs.get('address2', None)) 79 setattr(self, "_{}".format('city'), kwargs.get('city', None)) 80 setattr(self, "_{}".format('country'), kwargs.get('country', None)) 81 setattr(self, "_{}".format('fax'), kwargs.get('fax', None)) 82 setattr(self, "_{}".format('phone'), kwargs.get('phone', None)) 83 setattr(self, "_{}".format('postal_code'), kwargs.get('postal_code', None)) 84 setattr(self, "_{}".format('state_or_province'), kwargs.get('state_or_province', None)) 85 setattr(self, "_{}".format('zip_plus4'), kwargs.get('zip_plus4', None)) 86 87 @property 88 def address1(self): 89 """Gets the address1 of this AddressInformation. # noqa: E501 90 91 First Line of the address. Maximum length: 100 characters. # noqa: E501 92 93 :return: The address1 of this AddressInformation. # noqa: E501 94 :rtype: str 95 """ 96 return self._address1 97 98 @address1.setter 99 def address1(self, address1): 100 """Sets the address1 of this AddressInformation. 101 102 First Line of the address. Maximum length: 100 characters. # noqa: E501 103 104 :param address1: The address1 of this AddressInformation. # noqa: E501 105 :type: str 106 """ 107 108 self._address1 = address1 109 110 @property 111 def address2(self): 112 """Gets the address2 of this AddressInformation. # noqa: E501 113 114 Second Line of the address. Maximum length: 100 characters. # noqa: E501 115 116 :return: The address2 of this AddressInformation. # noqa: E501 117 :rtype: str 118 """ 119 return self._address2 120 121 @address2.setter 122 def address2(self, address2): 123 """Sets the address2 of this AddressInformation. 124 125 Second Line of the address. Maximum length: 100 characters. # noqa: E501 126 127 :param address2: The address2 of this AddressInformation. # noqa: E501 128 :type: str 129 """ 130 131 self._address2 = address2 132 133 @property 134 def city(self): 135 """Gets the city of this AddressInformation. # noqa: E501 136 137 The city associated with the address. # noqa: E501 138 139 :return: The city of this AddressInformation. # noqa: E501 140 :rtype: str 141 """ 142 return self._city 143 144 @city.setter 145 def city(self, city): 146 """Sets the city of this AddressInformation. 147 148 The city associated with the address. # noqa: E501 149 150 :param city: The city of this AddressInformation. # noqa: E501 151 :type: str 152 """ 153 154 self._city = city 155 156 @property 157 def country(self): 158 """Gets the country of this AddressInformation. # noqa: E501 159 160 Specifies the country associated with the address. # noqa: E501 161 162 :return: The country of this AddressInformation. # noqa: E501 163 :rtype: str 164 """ 165 return self._country 166 167 @country.setter 168 def country(self, country): 169 """Sets the country of this AddressInformation. 170 171 Specifies the country associated with the address. # noqa: E501 172 173 :param country: The country of this AddressInformation. # noqa: E501 174 :type: str 175 """ 176 177 self._country = country 178 179 @property 180 def fax(self): 181 """Gets the fax of this AddressInformation. # noqa: E501 182 183 A Fax number associated with the address if one is available. # noqa: E501 184 185 :return: The fax of this AddressInformation. # noqa: E501 186 :rtype: str 187 """ 188 return self._fax 189 190 @fax.setter 191 def fax(self, fax): 192 """Sets the fax of this AddressInformation. 193 194 A Fax number associated with the address if one is available. # noqa: E501 195 196 :param fax: The fax of this AddressInformation. # noqa: E501 197 :type: str 198 """ 199 200 self._fax = fax 201 202 @property 203 def phone(self): 204 """Gets the phone of this AddressInformation. # noqa: E501 205 206 A phone number associated with the address. # noqa: E501 207 208 :return: The phone of this AddressInformation. # noqa: E501 209 :rtype: str 210 """ 211 return self._phone 212 213 @phone.setter 214 def phone(self, phone): 215 """Sets the phone of this AddressInformation. 216 217 A phone number associated with the address. # noqa: E501 218 219 :param phone: The phone of this AddressInformation. # noqa: E501 220 :type: str 221 """ 222 223 self._phone = phone 224 225 @property 226 def postal_code(self): 227 """Gets the postal_code of this AddressInformation. # noqa: E501 228 229 # noqa: E501 230 231 :return: The postal_code of this AddressInformation. # noqa: E501 232 :rtype: str 233 """ 234 return self._postal_code 235 236 @postal_code.setter 237 def postal_code(self, postal_code): 238 """Sets the postal_code of this AddressInformation. 239 240 # noqa: E501 241 242 :param postal_code: The postal_code of this AddressInformation. # noqa: E501 243 :type: str 244 """ 245 246 self._postal_code = postal_code 247 248 @property 249 def state_or_province(self): 250 """Gets the state_or_province of this AddressInformation. # noqa: E501 251 252 # noqa: E501 253 254 :return: The state_or_province of this AddressInformation. # noqa: E501 255 :rtype: str 256 """ 257 return self._state_or_province 258 259 @state_or_province.setter 260 def state_or_province(self, state_or_province): 261 """Sets the state_or_province of this AddressInformation. 262 263 # noqa: E501 264 265 :param state_or_province: The state_or_province of this AddressInformation. # noqa: E501 266 :type: str 267 """ 268 269 self._state_or_province = state_or_province 270 271 @property 272 def zip_plus4(self): 273 """Gets the zip_plus4 of this AddressInformation. # noqa: E501 274 275 # noqa: E501 276 277 :return: The zip_plus4 of this AddressInformation. # noqa: E501 278 :rtype: str 279 """ 280 return self._zip_plus4 281 282 @zip_plus4.setter 283 def zip_plus4(self, zip_plus4): 284 """Sets the zip_plus4 of this AddressInformation. 285 286 # noqa: E501 287 288 :param zip_plus4: The zip_plus4 of this AddressInformation. # noqa: E501 289 :type: str 290 """ 291 292 self._zip_plus4 = zip_plus4 293 294 def to_dict(self): 295 """Returns the model properties as a dict""" 296 result = {} 297 298 for attr, _ in six.iteritems(self.swagger_types): 299 value = getattr(self, attr) 300 if isinstance(value, list): 301 result[attr] = list(map( 302 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 303 value 304 )) 305 elif hasattr(value, "to_dict"): 306 result[attr] = value.to_dict() 307 elif isinstance(value, dict): 308 result[attr] = dict(map( 309 lambda item: (item[0], item[1].to_dict()) 310 if hasattr(item[1], "to_dict") else item, 311 value.items() 312 )) 313 else: 314 result[attr] = value 315 if issubclass(AddressInformation, dict): 316 for key, value in self.items(): 317 result[key] = value 318 319 return result 320 321 def to_str(self): 322 """Returns the string representation of the model""" 323 return pprint.pformat(self.to_dict()) 324 325 def __repr__(self): 326 """For `print` and `pprint`""" 327 return self.to_str() 328 329 def __eq__(self, other): 330 """Returns true if both objects are equal""" 331 if not isinstance(other, AddressInformation): 332 return False 333 334 return self.to_dict() == other.to_dict() 335 336 def __ne__(self, other): 337 """Returns true if both objects are not equal""" 338 if not isinstance(other, AddressInformation): 339 return True 340 341 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.
60 def __init__(self, _configuration=None, **kwargs): # noqa: E501 61 """AddressInformation - a model defined in Swagger""" # noqa: E501 62 if _configuration is None: 63 _configuration = Configuration() 64 self._configuration = _configuration 65 66 self._address1 = None 67 self._address2 = None 68 self._city = None 69 self._country = None 70 self._fax = None 71 self._phone = None 72 self._postal_code = None 73 self._state_or_province = None 74 self._zip_plus4 = None 75 self.discriminator = None 76 77 setattr(self, "_{}".format('address1'), kwargs.get('address1', None)) 78 setattr(self, "_{}".format('address2'), kwargs.get('address2', None)) 79 setattr(self, "_{}".format('city'), kwargs.get('city', None)) 80 setattr(self, "_{}".format('country'), kwargs.get('country', None)) 81 setattr(self, "_{}".format('fax'), kwargs.get('fax', None)) 82 setattr(self, "_{}".format('phone'), kwargs.get('phone', None)) 83 setattr(self, "_{}".format('postal_code'), kwargs.get('postal_code', None)) 84 setattr(self, "_{}".format('state_or_province'), kwargs.get('state_or_province', None)) 85 setattr(self, "_{}".format('zip_plus4'), kwargs.get('zip_plus4', None))
AddressInformation - a model defined in Swagger
Gets the address1 of this AddressInformation. # noqa: E501
First Line of the address. Maximum length: 100 characters. # noqa: E501
Returns
The address1 of this AddressInformation. # noqa: E501
Gets the address2 of this AddressInformation. # noqa: E501
Second Line of the address. Maximum length: 100 characters. # noqa: E501
Returns
The address2 of this AddressInformation. # noqa: E501
Gets the city of this AddressInformation. # noqa: E501
The city associated with the address. # noqa: E501
Returns
The city of this AddressInformation. # noqa: E501
Gets the country of this AddressInformation. # noqa: E501
Specifies the country associated with the address. # noqa: E501
Returns
The country of this AddressInformation. # noqa: E501
Gets the fax of this AddressInformation. # noqa: E501
A Fax number associated with the address if one is available. # noqa: E501
Returns
The fax of this AddressInformation. # noqa: E501
Gets the phone of this AddressInformation. # noqa: E501
A phone number associated with the address. # noqa: E501
Returns
The phone of this AddressInformation. # noqa: E501
Gets the postal_code of this AddressInformation. # noqa: E501
# noqa: E501
Returns
The postal_code of this AddressInformation. # noqa: E501
Gets the state_or_province of this AddressInformation. # noqa: E501
# noqa: E501
Returns
The state_or_province of this AddressInformation. # noqa: E501
Gets the zip_plus4 of this AddressInformation. # noqa: E501
# noqa: E501
Returns
The zip_plus4 of this AddressInformation. # noqa: E501
294 def to_dict(self): 295 """Returns the model properties as a dict""" 296 result = {} 297 298 for attr, _ in six.iteritems(self.swagger_types): 299 value = getattr(self, attr) 300 if isinstance(value, list): 301 result[attr] = list(map( 302 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 303 value 304 )) 305 elif hasattr(value, "to_dict"): 306 result[attr] = value.to_dict() 307 elif isinstance(value, dict): 308 result[attr] = dict(map( 309 lambda item: (item[0], item[1].to_dict()) 310 if hasattr(item[1], "to_dict") else item, 311 value.items() 312 )) 313 else: 314 result[attr] = value 315 if issubclass(AddressInformation, dict): 316 for key, value in self.items(): 317 result[key] = value 318 319 return result
Returns the model properties as a dict