docusign_esign.models.recipient_phone_number

DocuSign REST API

The DocuSign 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 REST API
  5
  6    The DocuSign 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 RecipientPhoneNumber(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        'country_code': 'str',
 37        'country_code_metadata': 'PropertyMetadata',
 38        'number': 'str',
 39        'number_metadata': 'PropertyMetadata'
 40    }
 41
 42    attribute_map = {
 43        'country_code': 'countryCode',
 44        'country_code_metadata': 'countryCodeMetadata',
 45        'number': 'number',
 46        'number_metadata': 'numberMetadata'
 47    }
 48
 49    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 50        """RecipientPhoneNumber - a model defined in Swagger"""  # noqa: E501
 51        if _configuration is None:
 52            _configuration = Configuration()
 53        self._configuration = _configuration
 54
 55        self._country_code = None
 56        self._country_code_metadata = None
 57        self._number = None
 58        self._number_metadata = None
 59        self.discriminator = None
 60
 61        setattr(self, "_{}".format('country_code'), kwargs.get('country_code', None))
 62        setattr(self, "_{}".format('country_code_metadata'), kwargs.get('country_code_metadata', None))
 63        setattr(self, "_{}".format('number'), kwargs.get('number', None))
 64        setattr(self, "_{}".format('number_metadata'), kwargs.get('number_metadata', None))
 65
 66    @property
 67    def country_code(self):
 68        """Gets the country_code of this RecipientPhoneNumber.  # noqa: E501
 69
 70          # noqa: E501
 71
 72        :return: The country_code of this RecipientPhoneNumber.  # noqa: E501
 73        :rtype: str
 74        """
 75        return self._country_code
 76
 77    @country_code.setter
 78    def country_code(self, country_code):
 79        """Sets the country_code of this RecipientPhoneNumber.
 80
 81          # noqa: E501
 82
 83        :param country_code: The country_code of this RecipientPhoneNumber.  # noqa: E501
 84        :type: str
 85        """
 86
 87        self._country_code = country_code
 88
 89    @property
 90    def country_code_metadata(self):
 91        """Gets the country_code_metadata of this RecipientPhoneNumber.  # noqa: E501
 92
 93        Metadata that indicates if the `countryCode` property is editable.  # noqa: E501
 94
 95        :return: The country_code_metadata of this RecipientPhoneNumber.  # noqa: E501
 96        :rtype: PropertyMetadata
 97        """
 98        return self._country_code_metadata
 99
100    @country_code_metadata.setter
101    def country_code_metadata(self, country_code_metadata):
102        """Sets the country_code_metadata of this RecipientPhoneNumber.
103
104        Metadata that indicates if the `countryCode` property is editable.  # noqa: E501
105
106        :param country_code_metadata: The country_code_metadata of this RecipientPhoneNumber.  # noqa: E501
107        :type: PropertyMetadata
108        """
109
110        self._country_code_metadata = country_code_metadata
111
112    @property
113    def number(self):
114        """Gets the number of this RecipientPhoneNumber.  # noqa: E501
115
116          # noqa: E501
117
118        :return: The number of this RecipientPhoneNumber.  # noqa: E501
119        :rtype: str
120        """
121        return self._number
122
123    @number.setter
124    def number(self, number):
125        """Sets the number of this RecipientPhoneNumber.
126
127          # noqa: E501
128
129        :param number: The number of this RecipientPhoneNumber.  # noqa: E501
130        :type: str
131        """
132
133        self._number = number
134
135    @property
136    def number_metadata(self):
137        """Gets the number_metadata of this RecipientPhoneNumber.  # noqa: E501
138
139        Metadata that indicates if the `number` property is editable.  # noqa: E501
140
141        :return: The number_metadata of this RecipientPhoneNumber.  # noqa: E501
142        :rtype: PropertyMetadata
143        """
144        return self._number_metadata
145
146    @number_metadata.setter
147    def number_metadata(self, number_metadata):
148        """Sets the number_metadata of this RecipientPhoneNumber.
149
150        Metadata that indicates if the `number` property is editable.  # noqa: E501
151
152        :param number_metadata: The number_metadata of this RecipientPhoneNumber.  # noqa: E501
153        :type: PropertyMetadata
154        """
155
156        self._number_metadata = number_metadata
157
158    def to_dict(self):
159        """Returns the model properties as a dict"""
160        result = {}
161
162        for attr, _ in six.iteritems(self.swagger_types):
163            value = getattr(self, attr)
164            if isinstance(value, list):
165                result[attr] = list(map(
166                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
167                    value
168                ))
169            elif hasattr(value, "to_dict"):
170                result[attr] = value.to_dict()
171            elif isinstance(value, dict):
172                result[attr] = dict(map(
173                    lambda item: (item[0], item[1].to_dict())
174                    if hasattr(item[1], "to_dict") else item,
175                    value.items()
176                ))
177            else:
178                result[attr] = value
179        if issubclass(RecipientPhoneNumber, dict):
180            for key, value in self.items():
181                result[key] = value
182
183        return result
184
185    def to_str(self):
186        """Returns the string representation of the model"""
187        return pprint.pformat(self.to_dict())
188
189    def __repr__(self):
190        """For `print` and `pprint`"""
191        return self.to_str()
192
193    def __eq__(self, other):
194        """Returns true if both objects are equal"""
195        if not isinstance(other, RecipientPhoneNumber):
196            return False
197
198        return self.to_dict() == other.to_dict()
199
200    def __ne__(self, other):
201        """Returns true if both objects are not equal"""
202        if not isinstance(other, RecipientPhoneNumber):
203            return True
204
205        return self.to_dict() != other.to_dict()
class RecipientPhoneNumber:
 23class RecipientPhoneNumber(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        'country_code': 'str',
 38        'country_code_metadata': 'PropertyMetadata',
 39        'number': 'str',
 40        'number_metadata': 'PropertyMetadata'
 41    }
 42
 43    attribute_map = {
 44        'country_code': 'countryCode',
 45        'country_code_metadata': 'countryCodeMetadata',
 46        'number': 'number',
 47        'number_metadata': 'numberMetadata'
 48    }
 49
 50    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 51        """RecipientPhoneNumber - a model defined in Swagger"""  # noqa: E501
 52        if _configuration is None:
 53            _configuration = Configuration()
 54        self._configuration = _configuration
 55
 56        self._country_code = None
 57        self._country_code_metadata = None
 58        self._number = None
 59        self._number_metadata = None
 60        self.discriminator = None
 61
 62        setattr(self, "_{}".format('country_code'), kwargs.get('country_code', None))
 63        setattr(self, "_{}".format('country_code_metadata'), kwargs.get('country_code_metadata', None))
 64        setattr(self, "_{}".format('number'), kwargs.get('number', None))
 65        setattr(self, "_{}".format('number_metadata'), kwargs.get('number_metadata', None))
 66
 67    @property
 68    def country_code(self):
 69        """Gets the country_code of this RecipientPhoneNumber.  # noqa: E501
 70
 71          # noqa: E501
 72
 73        :return: The country_code of this RecipientPhoneNumber.  # noqa: E501
 74        :rtype: str
 75        """
 76        return self._country_code
 77
 78    @country_code.setter
 79    def country_code(self, country_code):
 80        """Sets the country_code of this RecipientPhoneNumber.
 81
 82          # noqa: E501
 83
 84        :param country_code: The country_code of this RecipientPhoneNumber.  # noqa: E501
 85        :type: str
 86        """
 87
 88        self._country_code = country_code
 89
 90    @property
 91    def country_code_metadata(self):
 92        """Gets the country_code_metadata of this RecipientPhoneNumber.  # noqa: E501
 93
 94        Metadata that indicates if the `countryCode` property is editable.  # noqa: E501
 95
 96        :return: The country_code_metadata of this RecipientPhoneNumber.  # noqa: E501
 97        :rtype: PropertyMetadata
 98        """
 99        return self._country_code_metadata
100
101    @country_code_metadata.setter
102    def country_code_metadata(self, country_code_metadata):
103        """Sets the country_code_metadata of this RecipientPhoneNumber.
104
105        Metadata that indicates if the `countryCode` property is editable.  # noqa: E501
106
107        :param country_code_metadata: The country_code_metadata of this RecipientPhoneNumber.  # noqa: E501
108        :type: PropertyMetadata
109        """
110
111        self._country_code_metadata = country_code_metadata
112
113    @property
114    def number(self):
115        """Gets the number of this RecipientPhoneNumber.  # noqa: E501
116
117          # noqa: E501
118
119        :return: The number of this RecipientPhoneNumber.  # noqa: E501
120        :rtype: str
121        """
122        return self._number
123
124    @number.setter
125    def number(self, number):
126        """Sets the number of this RecipientPhoneNumber.
127
128          # noqa: E501
129
130        :param number: The number of this RecipientPhoneNumber.  # noqa: E501
131        :type: str
132        """
133
134        self._number = number
135
136    @property
137    def number_metadata(self):
138        """Gets the number_metadata of this RecipientPhoneNumber.  # noqa: E501
139
140        Metadata that indicates if the `number` property is editable.  # noqa: E501
141
142        :return: The number_metadata of this RecipientPhoneNumber.  # noqa: E501
143        :rtype: PropertyMetadata
144        """
145        return self._number_metadata
146
147    @number_metadata.setter
148    def number_metadata(self, number_metadata):
149        """Sets the number_metadata of this RecipientPhoneNumber.
150
151        Metadata that indicates if the `number` property is editable.  # noqa: E501
152
153        :param number_metadata: The number_metadata of this RecipientPhoneNumber.  # noqa: E501
154        :type: PropertyMetadata
155        """
156
157        self._number_metadata = number_metadata
158
159    def to_dict(self):
160        """Returns the model properties as a dict"""
161        result = {}
162
163        for attr, _ in six.iteritems(self.swagger_types):
164            value = getattr(self, attr)
165            if isinstance(value, list):
166                result[attr] = list(map(
167                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
168                    value
169                ))
170            elif hasattr(value, "to_dict"):
171                result[attr] = value.to_dict()
172            elif isinstance(value, dict):
173                result[attr] = dict(map(
174                    lambda item: (item[0], item[1].to_dict())
175                    if hasattr(item[1], "to_dict") else item,
176                    value.items()
177                ))
178            else:
179                result[attr] = value
180        if issubclass(RecipientPhoneNumber, dict):
181            for key, value in self.items():
182                result[key] = value
183
184        return result
185
186    def to_str(self):
187        """Returns the string representation of the model"""
188        return pprint.pformat(self.to_dict())
189
190    def __repr__(self):
191        """For `print` and `pprint`"""
192        return self.to_str()
193
194    def __eq__(self, other):
195        """Returns true if both objects are equal"""
196        if not isinstance(other, RecipientPhoneNumber):
197            return False
198
199        return self.to_dict() == other.to_dict()
200
201    def __ne__(self, other):
202        """Returns true if both objects are not equal"""
203        if not isinstance(other, RecipientPhoneNumber):
204            return True
205
206        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.

RecipientPhoneNumber(_configuration=None, **kwargs)
50    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
51        """RecipientPhoneNumber - a model defined in Swagger"""  # noqa: E501
52        if _configuration is None:
53            _configuration = Configuration()
54        self._configuration = _configuration
55
56        self._country_code = None
57        self._country_code_metadata = None
58        self._number = None
59        self._number_metadata = None
60        self.discriminator = None
61
62        setattr(self, "_{}".format('country_code'), kwargs.get('country_code', None))
63        setattr(self, "_{}".format('country_code_metadata'), kwargs.get('country_code_metadata', None))
64        setattr(self, "_{}".format('number'), kwargs.get('number', None))
65        setattr(self, "_{}".format('number_metadata'), kwargs.get('number_metadata', None))

RecipientPhoneNumber - a model defined in Swagger

swagger_types = {'country_code': 'str', 'country_code_metadata': 'PropertyMetadata', 'number': 'str', 'number_metadata': 'PropertyMetadata'}
attribute_map = {'country_code': 'countryCode', 'country_code_metadata': 'countryCodeMetadata', 'number': 'number', 'number_metadata': 'numberMetadata'}
country_code

Gets the country_code of this RecipientPhoneNumber. # noqa: E501

# noqa: E501

Returns

The country_code of this RecipientPhoneNumber. # noqa: E501

country_code_metadata

Gets the country_code_metadata of this RecipientPhoneNumber. # noqa: E501

Metadata that indicates if the countryCode property is editable. # noqa: E501

Returns

The country_code_metadata of this RecipientPhoneNumber. # noqa: E501

number

Gets the number of this RecipientPhoneNumber. # noqa: E501

# noqa: E501

Returns

The number of this RecipientPhoneNumber. # noqa: E501

number_metadata

Gets the number_metadata of this RecipientPhoneNumber. # noqa: E501

Metadata that indicates if the number property is editable. # noqa: E501

Returns

The number_metadata of this RecipientPhoneNumber. # noqa: E501

def to_dict(self)
159    def to_dict(self):
160        """Returns the model properties as a dict"""
161        result = {}
162
163        for attr, _ in six.iteritems(self.swagger_types):
164            value = getattr(self, attr)
165            if isinstance(value, list):
166                result[attr] = list(map(
167                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
168                    value
169                ))
170            elif hasattr(value, "to_dict"):
171                result[attr] = value.to_dict()
172            elif isinstance(value, dict):
173                result[attr] = dict(map(
174                    lambda item: (item[0], item[1].to_dict())
175                    if hasattr(item[1], "to_dict") else item,
176                    value.items()
177                ))
178            else:
179                result[attr] = value
180        if issubclass(RecipientPhoneNumber, dict):
181            for key, value in self.items():
182                result[key] = value
183
184        return result

Returns the model properties as a dict

def to_str(self)
186    def to_str(self):
187        """Returns the string representation of the model"""
188        return pprint.pformat(self.to_dict())

Returns the string representation of the model