docusign_esign.models.address_information_v2

DocuSign REST API

The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.

OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    DocuSign REST API
  5
  6    The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
  7
  8    OpenAPI spec version: v2
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14from pprint import pformat
 15from six import iteritems
 16import re
 17
 18
 19class AddressInformationV2(object):
 20    """
 21    NOTE: This class is auto generated by the swagger code generator program.
 22    Do not edit the class manually.
 23    """
 24    def __init__(self, address1=None, address2=None, city=None, country=None, fax=None, phone=None, postal_code=None, state_or_province=None):
 25        """
 26        AddressInformationV2 - a model defined in Swagger
 27
 28        :param dict swaggerTypes: The key is attribute name
 29                                  and the value is attribute type.
 30        :param dict attributeMap: The key is attribute name
 31                                  and the value is json key in definition.
 32        """
 33        self.swagger_types = {
 34            'address1': 'str',
 35            'address2': 'str',
 36            'city': 'str',
 37            'country': 'str',
 38            'fax': 'str',
 39            'phone': 'str',
 40            'postal_code': 'str',
 41            'state_or_province': 'str'
 42        }
 43
 44        self.attribute_map = {
 45            'address1': 'address1',
 46            'address2': 'address2',
 47            'city': 'city',
 48            'country': 'country',
 49            'fax': 'fax',
 50            'phone': 'phone',
 51            'postal_code': 'postalCode',
 52            'state_or_province': 'stateOrProvince'
 53        }
 54
 55        self._address1 = address1
 56        self._address2 = address2
 57        self._city = city
 58        self._country = country
 59        self._fax = fax
 60        self._phone = phone
 61        self._postal_code = postal_code
 62        self._state_or_province = state_or_province
 63
 64    @property
 65    def address1(self):
 66        """
 67        Gets the address1 of this AddressInformationV2.
 68        First Line of the address. Maximum length: 100 characters.
 69
 70        :return: The address1 of this AddressInformationV2.
 71        :rtype: str
 72        """
 73        return self._address1
 74
 75    @address1.setter
 76    def address1(self, address1):
 77        """
 78        Sets the address1 of this AddressInformationV2.
 79        First Line of the address. Maximum length: 100 characters.
 80
 81        :param address1: The address1 of this AddressInformationV2.
 82        :type: str
 83        """
 84
 85        self._address1 = address1
 86
 87    @property
 88    def address2(self):
 89        """
 90        Gets the address2 of this AddressInformationV2.
 91        Second Line of the address. Maximum length: 100 characters.
 92
 93        :return: The address2 of this AddressInformationV2.
 94        :rtype: str
 95        """
 96        return self._address2
 97
 98    @address2.setter
 99    def address2(self, address2):
100        """
101        Sets the address2 of this AddressInformationV2.
102        Second Line of the address. Maximum length: 100 characters.
103
104        :param address2: The address2 of this AddressInformationV2.
105        :type: str
106        """
107
108        self._address2 = address2
109
110    @property
111    def city(self):
112        """
113        Gets the city of this AddressInformationV2.
114        
115
116        :return: The city of this AddressInformationV2.
117        :rtype: str
118        """
119        return self._city
120
121    @city.setter
122    def city(self, city):
123        """
124        Sets the city of this AddressInformationV2.
125        
126
127        :param city: The city of this AddressInformationV2.
128        :type: str
129        """
130
131        self._city = city
132
133    @property
134    def country(self):
135        """
136        Gets the country of this AddressInformationV2.
137        Specifies the country associated with the address.
138
139        :return: The country of this AddressInformationV2.
140        :rtype: str
141        """
142        return self._country
143
144    @country.setter
145    def country(self, country):
146        """
147        Sets the country of this AddressInformationV2.
148        Specifies the country associated with the address.
149
150        :param country: The country of this AddressInformationV2.
151        :type: str
152        """
153
154        self._country = country
155
156    @property
157    def fax(self):
158        """
159        Gets the fax of this AddressInformationV2.
160        
161
162        :return: The fax of this AddressInformationV2.
163        :rtype: str
164        """
165        return self._fax
166
167    @fax.setter
168    def fax(self, fax):
169        """
170        Sets the fax of this AddressInformationV2.
171        
172
173        :param fax: The fax of this AddressInformationV2.
174        :type: str
175        """
176
177        self._fax = fax
178
179    @property
180    def phone(self):
181        """
182        Gets the phone of this AddressInformationV2.
183        
184
185        :return: The phone of this AddressInformationV2.
186        :rtype: str
187        """
188        return self._phone
189
190    @phone.setter
191    def phone(self, phone):
192        """
193        Sets the phone of this AddressInformationV2.
194        
195
196        :param phone: The phone of this AddressInformationV2.
197        :type: str
198        """
199
200        self._phone = phone
201
202    @property
203    def postal_code(self):
204        """
205        Gets the postal_code of this AddressInformationV2.
206        
207
208        :return: The postal_code of this AddressInformationV2.
209        :rtype: str
210        """
211        return self._postal_code
212
213    @postal_code.setter
214    def postal_code(self, postal_code):
215        """
216        Sets the postal_code of this AddressInformationV2.
217        
218
219        :param postal_code: The postal_code of this AddressInformationV2.
220        :type: str
221        """
222
223        self._postal_code = postal_code
224
225    @property
226    def state_or_province(self):
227        """
228        Gets the state_or_province of this AddressInformationV2.
229        The state or province associated with the address.
230
231        :return: The state_or_province of this AddressInformationV2.
232        :rtype: str
233        """
234        return self._state_or_province
235
236    @state_or_province.setter
237    def state_or_province(self, state_or_province):
238        """
239        Sets the state_or_province of this AddressInformationV2.
240        The state or province associated with the address.
241
242        :param state_or_province: The state_or_province of this AddressInformationV2.
243        :type: str
244        """
245
246        self._state_or_province = state_or_province
247
248    def to_dict(self):
249        """
250        Returns the model properties as a dict
251        """
252        result = {}
253
254        for attr, _ in iteritems(self.swagger_types):
255            value = getattr(self, attr)
256            if isinstance(value, list):
257                result[attr] = list(map(
258                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
259                    value
260                ))
261            elif hasattr(value, "to_dict"):
262                result[attr] = value.to_dict()
263            elif isinstance(value, dict):
264                result[attr] = dict(map(
265                    lambda item: (item[0], item[1].to_dict())
266                    if hasattr(item[1], "to_dict") else item,
267                    value.items()
268                ))
269            else:
270                result[attr] = value
271
272        return result
273
274    def to_str(self):
275        """
276        Returns the string representation of the model
277        """
278        return pformat(self.to_dict())
279
280    def __repr__(self):
281        """
282        For `print` and `pprint`
283        """
284        return self.to_str()
285
286    def __eq__(self, other):
287        """
288        Returns true if both objects are equal
289        """
290        return self.__dict__ == other.__dict__
291
292    def __ne__(self, other):
293        """
294        Returns true if both objects are not equal
295        """
296        return not self == other
class AddressInformationV2:
 20class AddressInformationV2(object):
 21    """
 22    NOTE: This class is auto generated by the swagger code generator program.
 23    Do not edit the class manually.
 24    """
 25    def __init__(self, address1=None, address2=None, city=None, country=None, fax=None, phone=None, postal_code=None, state_or_province=None):
 26        """
 27        AddressInformationV2 - a model defined in Swagger
 28
 29        :param dict swaggerTypes: The key is attribute name
 30                                  and the value is attribute type.
 31        :param dict attributeMap: The key is attribute name
 32                                  and the value is json key in definition.
 33        """
 34        self.swagger_types = {
 35            'address1': 'str',
 36            'address2': 'str',
 37            'city': 'str',
 38            'country': 'str',
 39            'fax': 'str',
 40            'phone': 'str',
 41            'postal_code': 'str',
 42            'state_or_province': 'str'
 43        }
 44
 45        self.attribute_map = {
 46            'address1': 'address1',
 47            'address2': 'address2',
 48            'city': 'city',
 49            'country': 'country',
 50            'fax': 'fax',
 51            'phone': 'phone',
 52            'postal_code': 'postalCode',
 53            'state_or_province': 'stateOrProvince'
 54        }
 55
 56        self._address1 = address1
 57        self._address2 = address2
 58        self._city = city
 59        self._country = country
 60        self._fax = fax
 61        self._phone = phone
 62        self._postal_code = postal_code
 63        self._state_or_province = state_or_province
 64
 65    @property
 66    def address1(self):
 67        """
 68        Gets the address1 of this AddressInformationV2.
 69        First Line of the address. Maximum length: 100 characters.
 70
 71        :return: The address1 of this AddressInformationV2.
 72        :rtype: str
 73        """
 74        return self._address1
 75
 76    @address1.setter
 77    def address1(self, address1):
 78        """
 79        Sets the address1 of this AddressInformationV2.
 80        First Line of the address. Maximum length: 100 characters.
 81
 82        :param address1: The address1 of this AddressInformationV2.
 83        :type: str
 84        """
 85
 86        self._address1 = address1
 87
 88    @property
 89    def address2(self):
 90        """
 91        Gets the address2 of this AddressInformationV2.
 92        Second Line of the address. Maximum length: 100 characters.
 93
 94        :return: The address2 of this AddressInformationV2.
 95        :rtype: str
 96        """
 97        return self._address2
 98
 99    @address2.setter
100    def address2(self, address2):
101        """
102        Sets the address2 of this AddressInformationV2.
103        Second Line of the address. Maximum length: 100 characters.
104
105        :param address2: The address2 of this AddressInformationV2.
106        :type: str
107        """
108
109        self._address2 = address2
110
111    @property
112    def city(self):
113        """
114        Gets the city of this AddressInformationV2.
115        
116
117        :return: The city of this AddressInformationV2.
118        :rtype: str
119        """
120        return self._city
121
122    @city.setter
123    def city(self, city):
124        """
125        Sets the city of this AddressInformationV2.
126        
127
128        :param city: The city of this AddressInformationV2.
129        :type: str
130        """
131
132        self._city = city
133
134    @property
135    def country(self):
136        """
137        Gets the country of this AddressInformationV2.
138        Specifies the country associated with the address.
139
140        :return: The country of this AddressInformationV2.
141        :rtype: str
142        """
143        return self._country
144
145    @country.setter
146    def country(self, country):
147        """
148        Sets the country of this AddressInformationV2.
149        Specifies the country associated with the address.
150
151        :param country: The country of this AddressInformationV2.
152        :type: str
153        """
154
155        self._country = country
156
157    @property
158    def fax(self):
159        """
160        Gets the fax of this AddressInformationV2.
161        
162
163        :return: The fax of this AddressInformationV2.
164        :rtype: str
165        """
166        return self._fax
167
168    @fax.setter
169    def fax(self, fax):
170        """
171        Sets the fax of this AddressInformationV2.
172        
173
174        :param fax: The fax of this AddressInformationV2.
175        :type: str
176        """
177
178        self._fax = fax
179
180    @property
181    def phone(self):
182        """
183        Gets the phone of this AddressInformationV2.
184        
185
186        :return: The phone of this AddressInformationV2.
187        :rtype: str
188        """
189        return self._phone
190
191    @phone.setter
192    def phone(self, phone):
193        """
194        Sets the phone of this AddressInformationV2.
195        
196
197        :param phone: The phone of this AddressInformationV2.
198        :type: str
199        """
200
201        self._phone = phone
202
203    @property
204    def postal_code(self):
205        """
206        Gets the postal_code of this AddressInformationV2.
207        
208
209        :return: The postal_code of this AddressInformationV2.
210        :rtype: str
211        """
212        return self._postal_code
213
214    @postal_code.setter
215    def postal_code(self, postal_code):
216        """
217        Sets the postal_code of this AddressInformationV2.
218        
219
220        :param postal_code: The postal_code of this AddressInformationV2.
221        :type: str
222        """
223
224        self._postal_code = postal_code
225
226    @property
227    def state_or_province(self):
228        """
229        Gets the state_or_province of this AddressInformationV2.
230        The state or province associated with the address.
231
232        :return: The state_or_province of this AddressInformationV2.
233        :rtype: str
234        """
235        return self._state_or_province
236
237    @state_or_province.setter
238    def state_or_province(self, state_or_province):
239        """
240        Sets the state_or_province of this AddressInformationV2.
241        The state or province associated with the address.
242
243        :param state_or_province: The state_or_province of this AddressInformationV2.
244        :type: str
245        """
246
247        self._state_or_province = state_or_province
248
249    def to_dict(self):
250        """
251        Returns the model properties as a dict
252        """
253        result = {}
254
255        for attr, _ in iteritems(self.swagger_types):
256            value = getattr(self, attr)
257            if isinstance(value, list):
258                result[attr] = list(map(
259                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
260                    value
261                ))
262            elif hasattr(value, "to_dict"):
263                result[attr] = value.to_dict()
264            elif isinstance(value, dict):
265                result[attr] = dict(map(
266                    lambda item: (item[0], item[1].to_dict())
267                    if hasattr(item[1], "to_dict") else item,
268                    value.items()
269                ))
270            else:
271                result[attr] = value
272
273        return result
274
275    def to_str(self):
276        """
277        Returns the string representation of the model
278        """
279        return pformat(self.to_dict())
280
281    def __repr__(self):
282        """
283        For `print` and `pprint`
284        """
285        return self.to_str()
286
287    def __eq__(self, other):
288        """
289        Returns true if both objects are equal
290        """
291        return self.__dict__ == other.__dict__
292
293    def __ne__(self, other):
294        """
295        Returns true if both objects are not equal
296        """
297        return not self == other

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

AddressInformationV2( address1=None, address2=None, city=None, country=None, fax=None, phone=None, postal_code=None, state_or_province=None)
25    def __init__(self, address1=None, address2=None, city=None, country=None, fax=None, phone=None, postal_code=None, state_or_province=None):
26        """
27        AddressInformationV2 - a model defined in Swagger
28
29        :param dict swaggerTypes: The key is attribute name
30                                  and the value is attribute type.
31        :param dict attributeMap: The key is attribute name
32                                  and the value is json key in definition.
33        """
34        self.swagger_types = {
35            'address1': 'str',
36            'address2': 'str',
37            'city': 'str',
38            'country': 'str',
39            'fax': 'str',
40            'phone': 'str',
41            'postal_code': 'str',
42            'state_or_province': 'str'
43        }
44
45        self.attribute_map = {
46            'address1': 'address1',
47            'address2': 'address2',
48            'city': 'city',
49            'country': 'country',
50            'fax': 'fax',
51            'phone': 'phone',
52            'postal_code': 'postalCode',
53            'state_or_province': 'stateOrProvince'
54        }
55
56        self._address1 = address1
57        self._address2 = address2
58        self._city = city
59        self._country = country
60        self._fax = fax
61        self._phone = phone
62        self._postal_code = postal_code
63        self._state_or_province = state_or_province

AddressInformationV2 - a model defined in Swagger

Parameters
  • dict swaggerTypes: The key is attribute name and the value is attribute type.
  • dict attributeMap: The key is attribute name and the value is json key in definition.
address1

Gets the address1 of this AddressInformationV2. First Line of the address. Maximum length: 100 characters.

Returns

The address1 of this AddressInformationV2.

address2

Gets the address2 of this AddressInformationV2. Second Line of the address. Maximum length: 100 characters.

Returns

The address2 of this AddressInformationV2.

city

Gets the city of this AddressInformationV2.

Returns

The city of this AddressInformationV2.

country

Gets the country of this AddressInformationV2. Specifies the country associated with the address.

Returns

The country of this AddressInformationV2.

fax

Gets the fax of this AddressInformationV2.

Returns

The fax of this AddressInformationV2.

phone

Gets the phone of this AddressInformationV2.

Returns

The phone of this AddressInformationV2.

postal_code

Gets the postal_code of this AddressInformationV2.

Returns

The postal_code of this AddressInformationV2.

state_or_province

Gets the state_or_province of this AddressInformationV2. The state or province associated with the address.

Returns

The state_or_province of this AddressInformationV2.

def to_dict(self)
249    def to_dict(self):
250        """
251        Returns the model properties as a dict
252        """
253        result = {}
254
255        for attr, _ in iteritems(self.swagger_types):
256            value = getattr(self, attr)
257            if isinstance(value, list):
258                result[attr] = list(map(
259                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
260                    value
261                ))
262            elif hasattr(value, "to_dict"):
263                result[attr] = value.to_dict()
264            elif isinstance(value, dict):
265                result[attr] = dict(map(
266                    lambda item: (item[0], item[1].to_dict())
267                    if hasattr(item[1], "to_dict") else item,
268                    value.items()
269                ))
270            else:
271                result[attr] = value
272
273        return result

Returns the model properties as a dict

def to_str(self)
275    def to_str(self):
276        """
277        Returns the string representation of the model
278        """
279        return pformat(self.to_dict())

Returns the string representation of the model