docusign_esign.models.custom_field_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 CustomFieldV2(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, configuration_type=None, error_details=None, field_id=None, name=None, required=None, show=None, value=None):
 25        """
 26        CustomFieldV2 - 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            'configuration_type': 'str',
 35            'error_details': 'ErrorDetails',
 36            'field_id': 'str',
 37            'name': 'str',
 38            'required': 'str',
 39            'show': 'str',
 40            'value': 'str'
 41        }
 42
 43        self.attribute_map = {
 44            'configuration_type': 'configurationType',
 45            'error_details': 'errorDetails',
 46            'field_id': 'fieldId',
 47            'name': 'name',
 48            'required': 'required',
 49            'show': 'show',
 50            'value': 'value'
 51        }
 52
 53        self._configuration_type = configuration_type
 54        self._error_details = error_details
 55        self._field_id = field_id
 56        self._name = name
 57        self._required = required
 58        self._show = show
 59        self._value = value
 60
 61    @property
 62    def configuration_type(self):
 63        """
 64        Gets the configuration_type of this CustomFieldV2.
 65        If merge field's are being used, specifies the type of the merge field. The only  supported value is **salesforce**.
 66
 67        :return: The configuration_type of this CustomFieldV2.
 68        :rtype: str
 69        """
 70        return self._configuration_type
 71
 72    @configuration_type.setter
 73    def configuration_type(self, configuration_type):
 74        """
 75        Sets the configuration_type of this CustomFieldV2.
 76        If merge field's are being used, specifies the type of the merge field. The only  supported value is **salesforce**.
 77
 78        :param configuration_type: The configuration_type of this CustomFieldV2.
 79        :type: str
 80        """
 81
 82        self._configuration_type = configuration_type
 83
 84    @property
 85    def error_details(self):
 86        """
 87        Gets the error_details of this CustomFieldV2.
 88
 89        :return: The error_details of this CustomFieldV2.
 90        :rtype: ErrorDetails
 91        """
 92        return self._error_details
 93
 94    @error_details.setter
 95    def error_details(self, error_details):
 96        """
 97        Sets the error_details of this CustomFieldV2.
 98
 99        :param error_details: The error_details of this CustomFieldV2.
100        :type: ErrorDetails
101        """
102
103        self._error_details = error_details
104
105    @property
106    def field_id(self):
107        """
108        Gets the field_id of this CustomFieldV2.
109        
110
111        :return: The field_id of this CustomFieldV2.
112        :rtype: str
113        """
114        return self._field_id
115
116    @field_id.setter
117    def field_id(self, field_id):
118        """
119        Sets the field_id of this CustomFieldV2.
120        
121
122        :param field_id: The field_id of this CustomFieldV2.
123        :type: str
124        """
125
126        self._field_id = field_id
127
128    @property
129    def name(self):
130        """
131        Gets the name of this CustomFieldV2.
132        
133
134        :return: The name of this CustomFieldV2.
135        :rtype: str
136        """
137        return self._name
138
139    @name.setter
140    def name(self, name):
141        """
142        Sets the name of this CustomFieldV2.
143        
144
145        :param name: The name of this CustomFieldV2.
146        :type: str
147        """
148
149        self._name = name
150
151    @property
152    def required(self):
153        """
154        Gets the required of this CustomFieldV2.
155        When set to **true**, the signer is required to fill out this tab
156
157        :return: The required of this CustomFieldV2.
158        :rtype: str
159        """
160        return self._required
161
162    @required.setter
163    def required(self, required):
164        """
165        Sets the required of this CustomFieldV2.
166        When set to **true**, the signer is required to fill out this tab
167
168        :param required: The required of this CustomFieldV2.
169        :type: str
170        """
171
172        self._required = required
173
174    @property
175    def show(self):
176        """
177        Gets the show of this CustomFieldV2.
178        
179
180        :return: The show of this CustomFieldV2.
181        :rtype: str
182        """
183        return self._show
184
185    @show.setter
186    def show(self, show):
187        """
188        Sets the show of this CustomFieldV2.
189        
190
191        :param show: The show of this CustomFieldV2.
192        :type: str
193        """
194
195        self._show = show
196
197    @property
198    def value(self):
199        """
200        Gets the value of this CustomFieldV2.
201        The value of the custom field.
202
203        :return: The value of this CustomFieldV2.
204        :rtype: str
205        """
206        return self._value
207
208    @value.setter
209    def value(self, value):
210        """
211        Sets the value of this CustomFieldV2.
212        The value of the custom field.
213
214        :param value: The value of this CustomFieldV2.
215        :type: str
216        """
217
218        self._value = value
219
220    def to_dict(self):
221        """
222        Returns the model properties as a dict
223        """
224        result = {}
225
226        for attr, _ in iteritems(self.swagger_types):
227            value = getattr(self, attr)
228            if isinstance(value, list):
229                result[attr] = list(map(
230                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
231                    value
232                ))
233            elif hasattr(value, "to_dict"):
234                result[attr] = value.to_dict()
235            elif isinstance(value, dict):
236                result[attr] = dict(map(
237                    lambda item: (item[0], item[1].to_dict())
238                    if hasattr(item[1], "to_dict") else item,
239                    value.items()
240                ))
241            else:
242                result[attr] = value
243
244        return result
245
246    def to_str(self):
247        """
248        Returns the string representation of the model
249        """
250        return pformat(self.to_dict())
251
252    def __repr__(self):
253        """
254        For `print` and `pprint`
255        """
256        return self.to_str()
257
258    def __eq__(self, other):
259        """
260        Returns true if both objects are equal
261        """
262        return self.__dict__ == other.__dict__
263
264    def __ne__(self, other):
265        """
266        Returns true if both objects are not equal
267        """
268        return not self == other
class CustomFieldV2:
 20class CustomFieldV2(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, configuration_type=None, error_details=None, field_id=None, name=None, required=None, show=None, value=None):
 26        """
 27        CustomFieldV2 - 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            'configuration_type': 'str',
 36            'error_details': 'ErrorDetails',
 37            'field_id': 'str',
 38            'name': 'str',
 39            'required': 'str',
 40            'show': 'str',
 41            'value': 'str'
 42        }
 43
 44        self.attribute_map = {
 45            'configuration_type': 'configurationType',
 46            'error_details': 'errorDetails',
 47            'field_id': 'fieldId',
 48            'name': 'name',
 49            'required': 'required',
 50            'show': 'show',
 51            'value': 'value'
 52        }
 53
 54        self._configuration_type = configuration_type
 55        self._error_details = error_details
 56        self._field_id = field_id
 57        self._name = name
 58        self._required = required
 59        self._show = show
 60        self._value = value
 61
 62    @property
 63    def configuration_type(self):
 64        """
 65        Gets the configuration_type of this CustomFieldV2.
 66        If merge field's are being used, specifies the type of the merge field. The only  supported value is **salesforce**.
 67
 68        :return: The configuration_type of this CustomFieldV2.
 69        :rtype: str
 70        """
 71        return self._configuration_type
 72
 73    @configuration_type.setter
 74    def configuration_type(self, configuration_type):
 75        """
 76        Sets the configuration_type of this CustomFieldV2.
 77        If merge field's are being used, specifies the type of the merge field. The only  supported value is **salesforce**.
 78
 79        :param configuration_type: The configuration_type of this CustomFieldV2.
 80        :type: str
 81        """
 82
 83        self._configuration_type = configuration_type
 84
 85    @property
 86    def error_details(self):
 87        """
 88        Gets the error_details of this CustomFieldV2.
 89
 90        :return: The error_details of this CustomFieldV2.
 91        :rtype: ErrorDetails
 92        """
 93        return self._error_details
 94
 95    @error_details.setter
 96    def error_details(self, error_details):
 97        """
 98        Sets the error_details of this CustomFieldV2.
 99
100        :param error_details: The error_details of this CustomFieldV2.
101        :type: ErrorDetails
102        """
103
104        self._error_details = error_details
105
106    @property
107    def field_id(self):
108        """
109        Gets the field_id of this CustomFieldV2.
110        
111
112        :return: The field_id of this CustomFieldV2.
113        :rtype: str
114        """
115        return self._field_id
116
117    @field_id.setter
118    def field_id(self, field_id):
119        """
120        Sets the field_id of this CustomFieldV2.
121        
122
123        :param field_id: The field_id of this CustomFieldV2.
124        :type: str
125        """
126
127        self._field_id = field_id
128
129    @property
130    def name(self):
131        """
132        Gets the name of this CustomFieldV2.
133        
134
135        :return: The name of this CustomFieldV2.
136        :rtype: str
137        """
138        return self._name
139
140    @name.setter
141    def name(self, name):
142        """
143        Sets the name of this CustomFieldV2.
144        
145
146        :param name: The name of this CustomFieldV2.
147        :type: str
148        """
149
150        self._name = name
151
152    @property
153    def required(self):
154        """
155        Gets the required of this CustomFieldV2.
156        When set to **true**, the signer is required to fill out this tab
157
158        :return: The required of this CustomFieldV2.
159        :rtype: str
160        """
161        return self._required
162
163    @required.setter
164    def required(self, required):
165        """
166        Sets the required of this CustomFieldV2.
167        When set to **true**, the signer is required to fill out this tab
168
169        :param required: The required of this CustomFieldV2.
170        :type: str
171        """
172
173        self._required = required
174
175    @property
176    def show(self):
177        """
178        Gets the show of this CustomFieldV2.
179        
180
181        :return: The show of this CustomFieldV2.
182        :rtype: str
183        """
184        return self._show
185
186    @show.setter
187    def show(self, show):
188        """
189        Sets the show of this CustomFieldV2.
190        
191
192        :param show: The show of this CustomFieldV2.
193        :type: str
194        """
195
196        self._show = show
197
198    @property
199    def value(self):
200        """
201        Gets the value of this CustomFieldV2.
202        The value of the custom field.
203
204        :return: The value of this CustomFieldV2.
205        :rtype: str
206        """
207        return self._value
208
209    @value.setter
210    def value(self, value):
211        """
212        Sets the value of this CustomFieldV2.
213        The value of the custom field.
214
215        :param value: The value of this CustomFieldV2.
216        :type: str
217        """
218
219        self._value = value
220
221    def to_dict(self):
222        """
223        Returns the model properties as a dict
224        """
225        result = {}
226
227        for attr, _ in iteritems(self.swagger_types):
228            value = getattr(self, attr)
229            if isinstance(value, list):
230                result[attr] = list(map(
231                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
232                    value
233                ))
234            elif hasattr(value, "to_dict"):
235                result[attr] = value.to_dict()
236            elif isinstance(value, dict):
237                result[attr] = dict(map(
238                    lambda item: (item[0], item[1].to_dict())
239                    if hasattr(item[1], "to_dict") else item,
240                    value.items()
241                ))
242            else:
243                result[attr] = value
244
245        return result
246
247    def to_str(self):
248        """
249        Returns the string representation of the model
250        """
251        return pformat(self.to_dict())
252
253    def __repr__(self):
254        """
255        For `print` and `pprint`
256        """
257        return self.to_str()
258
259    def __eq__(self, other):
260        """
261        Returns true if both objects are equal
262        """
263        return self.__dict__ == other.__dict__
264
265    def __ne__(self, other):
266        """
267        Returns true if both objects are not equal
268        """
269        return not self == other

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

CustomFieldV2( configuration_type=None, error_details=None, field_id=None, name=None, required=None, show=None, value=None)
25    def __init__(self, configuration_type=None, error_details=None, field_id=None, name=None, required=None, show=None, value=None):
26        """
27        CustomFieldV2 - 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            'configuration_type': 'str',
36            'error_details': 'ErrorDetails',
37            'field_id': 'str',
38            'name': 'str',
39            'required': 'str',
40            'show': 'str',
41            'value': 'str'
42        }
43
44        self.attribute_map = {
45            'configuration_type': 'configurationType',
46            'error_details': 'errorDetails',
47            'field_id': 'fieldId',
48            'name': 'name',
49            'required': 'required',
50            'show': 'show',
51            'value': 'value'
52        }
53
54        self._configuration_type = configuration_type
55        self._error_details = error_details
56        self._field_id = field_id
57        self._name = name
58        self._required = required
59        self._show = show
60        self._value = value

CustomFieldV2 - 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.
configuration_type

Gets the configuration_type of this CustomFieldV2. If merge field's are being used, specifies the type of the merge field. The only supported value is salesforce.

Returns

The configuration_type of this CustomFieldV2.

error_details

Gets the error_details of this CustomFieldV2.

Returns

The error_details of this CustomFieldV2.

field_id

Gets the field_id of this CustomFieldV2.

Returns

The field_id of this CustomFieldV2.

name

Gets the name of this CustomFieldV2.

Returns

The name of this CustomFieldV2.

required

Gets the required of this CustomFieldV2. When set to true, the signer is required to fill out this tab

Returns

The required of this CustomFieldV2.

show

Gets the show of this CustomFieldV2.

Returns

The show of this CustomFieldV2.

value

Gets the value of this CustomFieldV2. The value of the custom field.

Returns

The value of this CustomFieldV2.

def to_dict(self)
221    def to_dict(self):
222        """
223        Returns the model properties as a dict
224        """
225        result = {}
226
227        for attr, _ in iteritems(self.swagger_types):
228            value = getattr(self, attr)
229            if isinstance(value, list):
230                result[attr] = list(map(
231                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
232                    value
233                ))
234            elif hasattr(value, "to_dict"):
235                result[attr] = value.to_dict()
236            elif isinstance(value, dict):
237                result[attr] = dict(map(
238                    lambda item: (item[0], item[1].to_dict())
239                    if hasattr(item[1], "to_dict") else item,
240                    value.items()
241                ))
242            else:
243                result[attr] = value
244
245        return result

Returns the model properties as a dict

def to_str(self)
247    def to_str(self):
248        """
249        Returns the string representation of the model
250        """
251        return pformat(self.to_dict())

Returns the string representation of the model