docusign_esign.models.envelope_form_data

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 EnvelopeFormData(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        'email_subject': 'str',
 37        'envelope_id': 'str',
 38        'form_data': 'list[FormDataItem]',
 39        'prefill_form_data': 'PrefillFormData',
 40        'recipient_form_data': 'list[RecipientFormData]',
 41        'sent_date_time': 'str',
 42        'status': 'str'
 43    }
 44
 45    attribute_map = {
 46        'email_subject': 'emailSubject',
 47        'envelope_id': 'envelopeId',
 48        'form_data': 'formData',
 49        'prefill_form_data': 'prefillFormData',
 50        'recipient_form_data': 'recipientFormData',
 51        'sent_date_time': 'sentDateTime',
 52        'status': 'status'
 53    }
 54
 55    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 56        """EnvelopeFormData - a model defined in Swagger"""  # noqa: E501
 57        if _configuration is None:
 58            _configuration = Configuration()
 59        self._configuration = _configuration
 60
 61        self._email_subject = None
 62        self._envelope_id = None
 63        self._form_data = None
 64        self._prefill_form_data = None
 65        self._recipient_form_data = None
 66        self._sent_date_time = None
 67        self._status = None
 68        self.discriminator = None
 69
 70        setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None))
 71        setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None))
 72        setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None))
 73        setattr(self, "_{}".format('prefill_form_data'), kwargs.get('prefill_form_data', None))
 74        setattr(self, "_{}".format('recipient_form_data'), kwargs.get('recipient_form_data', None))
 75        setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None))
 76        setattr(self, "_{}".format('status'), kwargs.get('status', None))
 77
 78    @property
 79    def email_subject(self):
 80        """Gets the email_subject of this EnvelopeFormData.  # noqa: E501
 81
 82        Specifies the subject of the email that is sent to all recipients.  See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject.  # noqa: E501
 83
 84        :return: The email_subject of this EnvelopeFormData.  # noqa: E501
 85        :rtype: str
 86        """
 87        return self._email_subject
 88
 89    @email_subject.setter
 90    def email_subject(self, email_subject):
 91        """Sets the email_subject of this EnvelopeFormData.
 92
 93        Specifies the subject of the email that is sent to all recipients.  See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject.  # noqa: E501
 94
 95        :param email_subject: The email_subject of this EnvelopeFormData.  # noqa: E501
 96        :type: str
 97        """
 98
 99        self._email_subject = email_subject
100
101    @property
102    def envelope_id(self):
103        """Gets the envelope_id of this EnvelopeFormData.  # noqa: E501
104
105        The envelope ID of the envelope status that failed to post.  # noqa: E501
106
107        :return: The envelope_id of this EnvelopeFormData.  # noqa: E501
108        :rtype: str
109        """
110        return self._envelope_id
111
112    @envelope_id.setter
113    def envelope_id(self, envelope_id):
114        """Sets the envelope_id of this EnvelopeFormData.
115
116        The envelope ID of the envelope status that failed to post.  # noqa: E501
117
118        :param envelope_id: The envelope_id of this EnvelopeFormData.  # noqa: E501
119        :type: str
120        """
121
122        self._envelope_id = envelope_id
123
124    @property
125    def form_data(self):
126        """Gets the form_data of this EnvelopeFormData.  # noqa: E501
127
128          # noqa: E501
129
130        :return: The form_data of this EnvelopeFormData.  # noqa: E501
131        :rtype: list[FormDataItem]
132        """
133        return self._form_data
134
135    @form_data.setter
136    def form_data(self, form_data):
137        """Sets the form_data of this EnvelopeFormData.
138
139          # noqa: E501
140
141        :param form_data: The form_data of this EnvelopeFormData.  # noqa: E501
142        :type: list[FormDataItem]
143        """
144
145        self._form_data = form_data
146
147    @property
148    def prefill_form_data(self):
149        """Gets the prefill_form_data of this EnvelopeFormData.  # noqa: E501
150
151        An array of `formDataItem` objects for [prefill tabs](/docs/esign-rest-api/reference/envelopes/envelopedocumenttabs/create/#definition__tabs_prefilltabs).   # noqa: E501
152
153        :return: The prefill_form_data of this EnvelopeFormData.  # noqa: E501
154        :rtype: PrefillFormData
155        """
156        return self._prefill_form_data
157
158    @prefill_form_data.setter
159    def prefill_form_data(self, prefill_form_data):
160        """Sets the prefill_form_data of this EnvelopeFormData.
161
162        An array of `formDataItem` objects for [prefill tabs](/docs/esign-rest-api/reference/envelopes/envelopedocumenttabs/create/#definition__tabs_prefilltabs).   # noqa: E501
163
164        :param prefill_form_data: The prefill_form_data of this EnvelopeFormData.  # noqa: E501
165        :type: PrefillFormData
166        """
167
168        self._prefill_form_data = prefill_form_data
169
170    @property
171    def recipient_form_data(self):
172        """Gets the recipient_form_data of this EnvelopeFormData.  # noqa: E501
173
174          # noqa: E501
175
176        :return: The recipient_form_data of this EnvelopeFormData.  # noqa: E501
177        :rtype: list[RecipientFormData]
178        """
179        return self._recipient_form_data
180
181    @recipient_form_data.setter
182    def recipient_form_data(self, recipient_form_data):
183        """Sets the recipient_form_data of this EnvelopeFormData.
184
185          # noqa: E501
186
187        :param recipient_form_data: The recipient_form_data of this EnvelopeFormData.  # noqa: E501
188        :type: list[RecipientFormData]
189        """
190
191        self._recipient_form_data = recipient_form_data
192
193    @property
194    def sent_date_time(self):
195        """Gets the sent_date_time of this EnvelopeFormData.  # noqa: E501
196
197        The date and time the envelope was sent.  # noqa: E501
198
199        :return: The sent_date_time of this EnvelopeFormData.  # noqa: E501
200        :rtype: str
201        """
202        return self._sent_date_time
203
204    @sent_date_time.setter
205    def sent_date_time(self, sent_date_time):
206        """Sets the sent_date_time of this EnvelopeFormData.
207
208        The date and time the envelope was sent.  # noqa: E501
209
210        :param sent_date_time: The sent_date_time of this EnvelopeFormData.  # noqa: E501
211        :type: str
212        """
213
214        self._sent_date_time = sent_date_time
215
216    @property
217    def status(self):
218        """Gets the status of this EnvelopeFormData.  # noqa: E501
219
220        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
221
222        :return: The status of this EnvelopeFormData.  # noqa: E501
223        :rtype: str
224        """
225        return self._status
226
227    @status.setter
228    def status(self, status):
229        """Sets the status of this EnvelopeFormData.
230
231        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
232
233        :param status: The status of this EnvelopeFormData.  # noqa: E501
234        :type: str
235        """
236
237        self._status = status
238
239    def to_dict(self):
240        """Returns the model properties as a dict"""
241        result = {}
242
243        for attr, _ in six.iteritems(self.swagger_types):
244            value = getattr(self, attr)
245            if isinstance(value, list):
246                result[attr] = list(map(
247                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
248                    value
249                ))
250            elif hasattr(value, "to_dict"):
251                result[attr] = value.to_dict()
252            elif isinstance(value, dict):
253                result[attr] = dict(map(
254                    lambda item: (item[0], item[1].to_dict())
255                    if hasattr(item[1], "to_dict") else item,
256                    value.items()
257                ))
258            else:
259                result[attr] = value
260        if issubclass(EnvelopeFormData, dict):
261            for key, value in self.items():
262                result[key] = value
263
264        return result
265
266    def to_str(self):
267        """Returns the string representation of the model"""
268        return pprint.pformat(self.to_dict())
269
270    def __repr__(self):
271        """For `print` and `pprint`"""
272        return self.to_str()
273
274    def __eq__(self, other):
275        """Returns true if both objects are equal"""
276        if not isinstance(other, EnvelopeFormData):
277            return False
278
279        return self.to_dict() == other.to_dict()
280
281    def __ne__(self, other):
282        """Returns true if both objects are not equal"""
283        if not isinstance(other, EnvelopeFormData):
284            return True
285
286        return self.to_dict() != other.to_dict()
class EnvelopeFormData:
 23class EnvelopeFormData(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        'email_subject': 'str',
 38        'envelope_id': 'str',
 39        'form_data': 'list[FormDataItem]',
 40        'prefill_form_data': 'PrefillFormData',
 41        'recipient_form_data': 'list[RecipientFormData]',
 42        'sent_date_time': 'str',
 43        'status': 'str'
 44    }
 45
 46    attribute_map = {
 47        'email_subject': 'emailSubject',
 48        'envelope_id': 'envelopeId',
 49        'form_data': 'formData',
 50        'prefill_form_data': 'prefillFormData',
 51        'recipient_form_data': 'recipientFormData',
 52        'sent_date_time': 'sentDateTime',
 53        'status': 'status'
 54    }
 55
 56    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 57        """EnvelopeFormData - a model defined in Swagger"""  # noqa: E501
 58        if _configuration is None:
 59            _configuration = Configuration()
 60        self._configuration = _configuration
 61
 62        self._email_subject = None
 63        self._envelope_id = None
 64        self._form_data = None
 65        self._prefill_form_data = None
 66        self._recipient_form_data = None
 67        self._sent_date_time = None
 68        self._status = None
 69        self.discriminator = None
 70
 71        setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None))
 72        setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None))
 73        setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None))
 74        setattr(self, "_{}".format('prefill_form_data'), kwargs.get('prefill_form_data', None))
 75        setattr(self, "_{}".format('recipient_form_data'), kwargs.get('recipient_form_data', None))
 76        setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None))
 77        setattr(self, "_{}".format('status'), kwargs.get('status', None))
 78
 79    @property
 80    def email_subject(self):
 81        """Gets the email_subject of this EnvelopeFormData.  # noqa: E501
 82
 83        Specifies the subject of the email that is sent to all recipients.  See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject.  # noqa: E501
 84
 85        :return: The email_subject of this EnvelopeFormData.  # noqa: E501
 86        :rtype: str
 87        """
 88        return self._email_subject
 89
 90    @email_subject.setter
 91    def email_subject(self, email_subject):
 92        """Sets the email_subject of this EnvelopeFormData.
 93
 94        Specifies the subject of the email that is sent to all recipients.  See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject.  # noqa: E501
 95
 96        :param email_subject: The email_subject of this EnvelopeFormData.  # noqa: E501
 97        :type: str
 98        """
 99
100        self._email_subject = email_subject
101
102    @property
103    def envelope_id(self):
104        """Gets the envelope_id of this EnvelopeFormData.  # noqa: E501
105
106        The envelope ID of the envelope status that failed to post.  # noqa: E501
107
108        :return: The envelope_id of this EnvelopeFormData.  # noqa: E501
109        :rtype: str
110        """
111        return self._envelope_id
112
113    @envelope_id.setter
114    def envelope_id(self, envelope_id):
115        """Sets the envelope_id of this EnvelopeFormData.
116
117        The envelope ID of the envelope status that failed to post.  # noqa: E501
118
119        :param envelope_id: The envelope_id of this EnvelopeFormData.  # noqa: E501
120        :type: str
121        """
122
123        self._envelope_id = envelope_id
124
125    @property
126    def form_data(self):
127        """Gets the form_data of this EnvelopeFormData.  # noqa: E501
128
129          # noqa: E501
130
131        :return: The form_data of this EnvelopeFormData.  # noqa: E501
132        :rtype: list[FormDataItem]
133        """
134        return self._form_data
135
136    @form_data.setter
137    def form_data(self, form_data):
138        """Sets the form_data of this EnvelopeFormData.
139
140          # noqa: E501
141
142        :param form_data: The form_data of this EnvelopeFormData.  # noqa: E501
143        :type: list[FormDataItem]
144        """
145
146        self._form_data = form_data
147
148    @property
149    def prefill_form_data(self):
150        """Gets the prefill_form_data of this EnvelopeFormData.  # noqa: E501
151
152        An array of `formDataItem` objects for [prefill tabs](/docs/esign-rest-api/reference/envelopes/envelopedocumenttabs/create/#definition__tabs_prefilltabs).   # noqa: E501
153
154        :return: The prefill_form_data of this EnvelopeFormData.  # noqa: E501
155        :rtype: PrefillFormData
156        """
157        return self._prefill_form_data
158
159    @prefill_form_data.setter
160    def prefill_form_data(self, prefill_form_data):
161        """Sets the prefill_form_data of this EnvelopeFormData.
162
163        An array of `formDataItem` objects for [prefill tabs](/docs/esign-rest-api/reference/envelopes/envelopedocumenttabs/create/#definition__tabs_prefilltabs).   # noqa: E501
164
165        :param prefill_form_data: The prefill_form_data of this EnvelopeFormData.  # noqa: E501
166        :type: PrefillFormData
167        """
168
169        self._prefill_form_data = prefill_form_data
170
171    @property
172    def recipient_form_data(self):
173        """Gets the recipient_form_data of this EnvelopeFormData.  # noqa: E501
174
175          # noqa: E501
176
177        :return: The recipient_form_data of this EnvelopeFormData.  # noqa: E501
178        :rtype: list[RecipientFormData]
179        """
180        return self._recipient_form_data
181
182    @recipient_form_data.setter
183    def recipient_form_data(self, recipient_form_data):
184        """Sets the recipient_form_data of this EnvelopeFormData.
185
186          # noqa: E501
187
188        :param recipient_form_data: The recipient_form_data of this EnvelopeFormData.  # noqa: E501
189        :type: list[RecipientFormData]
190        """
191
192        self._recipient_form_data = recipient_form_data
193
194    @property
195    def sent_date_time(self):
196        """Gets the sent_date_time of this EnvelopeFormData.  # noqa: E501
197
198        The date and time the envelope was sent.  # noqa: E501
199
200        :return: The sent_date_time of this EnvelopeFormData.  # noqa: E501
201        :rtype: str
202        """
203        return self._sent_date_time
204
205    @sent_date_time.setter
206    def sent_date_time(self, sent_date_time):
207        """Sets the sent_date_time of this EnvelopeFormData.
208
209        The date and time the envelope was sent.  # noqa: E501
210
211        :param sent_date_time: The sent_date_time of this EnvelopeFormData.  # noqa: E501
212        :type: str
213        """
214
215        self._sent_date_time = sent_date_time
216
217    @property
218    def status(self):
219        """Gets the status of this EnvelopeFormData.  # noqa: E501
220
221        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
222
223        :return: The status of this EnvelopeFormData.  # noqa: E501
224        :rtype: str
225        """
226        return self._status
227
228    @status.setter
229    def status(self, status):
230        """Sets the status of this EnvelopeFormData.
231
232        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
233
234        :param status: The status of this EnvelopeFormData.  # noqa: E501
235        :type: str
236        """
237
238        self._status = status
239
240    def to_dict(self):
241        """Returns the model properties as a dict"""
242        result = {}
243
244        for attr, _ in six.iteritems(self.swagger_types):
245            value = getattr(self, attr)
246            if isinstance(value, list):
247                result[attr] = list(map(
248                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249                    value
250                ))
251            elif hasattr(value, "to_dict"):
252                result[attr] = value.to_dict()
253            elif isinstance(value, dict):
254                result[attr] = dict(map(
255                    lambda item: (item[0], item[1].to_dict())
256                    if hasattr(item[1], "to_dict") else item,
257                    value.items()
258                ))
259            else:
260                result[attr] = value
261        if issubclass(EnvelopeFormData, dict):
262            for key, value in self.items():
263                result[key] = value
264
265        return result
266
267    def to_str(self):
268        """Returns the string representation of the model"""
269        return pprint.pformat(self.to_dict())
270
271    def __repr__(self):
272        """For `print` and `pprint`"""
273        return self.to_str()
274
275    def __eq__(self, other):
276        """Returns true if both objects are equal"""
277        if not isinstance(other, EnvelopeFormData):
278            return False
279
280        return self.to_dict() == other.to_dict()
281
282    def __ne__(self, other):
283        """Returns true if both objects are not equal"""
284        if not isinstance(other, EnvelopeFormData):
285            return True
286
287        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.

EnvelopeFormData(_configuration=None, **kwargs)
56    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
57        """EnvelopeFormData - a model defined in Swagger"""  # noqa: E501
58        if _configuration is None:
59            _configuration = Configuration()
60        self._configuration = _configuration
61
62        self._email_subject = None
63        self._envelope_id = None
64        self._form_data = None
65        self._prefill_form_data = None
66        self._recipient_form_data = None
67        self._sent_date_time = None
68        self._status = None
69        self.discriminator = None
70
71        setattr(self, "_{}".format('email_subject'), kwargs.get('email_subject', None))
72        setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None))
73        setattr(self, "_{}".format('form_data'), kwargs.get('form_data', None))
74        setattr(self, "_{}".format('prefill_form_data'), kwargs.get('prefill_form_data', None))
75        setattr(self, "_{}".format('recipient_form_data'), kwargs.get('recipient_form_data', None))
76        setattr(self, "_{}".format('sent_date_time'), kwargs.get('sent_date_time', None))
77        setattr(self, "_{}".format('status'), kwargs.get('status', None))

EnvelopeFormData - a model defined in Swagger

swagger_types = {'email_subject': 'str', 'envelope_id': 'str', 'form_data': 'list[FormDataItem]', 'prefill_form_data': 'PrefillFormData', 'recipient_form_data': 'list[RecipientFormData]', 'sent_date_time': 'str', 'status': 'str'}
attribute_map = {'email_subject': 'emailSubject', 'envelope_id': 'envelopeId', 'form_data': 'formData', 'prefill_form_data': 'prefillFormData', 'recipient_form_data': 'recipientFormData', 'sent_date_time': 'sentDateTime', 'status': 'status'}
email_subject

Gets the email_subject of this EnvelopeFormData. # noqa: E501

Specifies the subject of the email that is sent to all recipients. See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject. # noqa: E501

Returns

The email_subject of this EnvelopeFormData. # noqa: E501

envelope_id

Gets the envelope_id of this EnvelopeFormData. # noqa: E501

The envelope ID of the envelope status that failed to post. # noqa: E501

Returns

The envelope_id of this EnvelopeFormData. # noqa: E501

form_data

Gets the form_data of this EnvelopeFormData. # noqa: E501

# noqa: E501

Returns

The form_data of this EnvelopeFormData. # noqa: E501

prefill_form_data

Gets the prefill_form_data of this EnvelopeFormData. # noqa: E501

An array of formDataItem objects for prefill tabs. # noqa: E501

Returns

The prefill_form_data of this EnvelopeFormData. # noqa: E501

recipient_form_data

Gets the recipient_form_data of this EnvelopeFormData. # noqa: E501

# noqa: E501

Returns

The recipient_form_data of this EnvelopeFormData. # noqa: E501

sent_date_time

Gets the sent_date_time of this EnvelopeFormData. # noqa: E501

The date and time the envelope was sent. # noqa: E501

Returns

The sent_date_time of this EnvelopeFormData. # noqa: E501

status

Gets the status of this EnvelopeFormData. # noqa: E501

Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. # noqa: E501

Returns

The status of this EnvelopeFormData. # noqa: E501

def to_dict(self)
240    def to_dict(self):
241        """Returns the model properties as a dict"""
242        result = {}
243
244        for attr, _ in six.iteritems(self.swagger_types):
245            value = getattr(self, attr)
246            if isinstance(value, list):
247                result[attr] = list(map(
248                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249                    value
250                ))
251            elif hasattr(value, "to_dict"):
252                result[attr] = value.to_dict()
253            elif isinstance(value, dict):
254                result[attr] = dict(map(
255                    lambda item: (item[0], item[1].to_dict())
256                    if hasattr(item[1], "to_dict") else item,
257                    value.items()
258                ))
259            else:
260                result[attr] = value
261        if issubclass(EnvelopeFormData, dict):
262            for key, value in self.items():
263                result[key] = value
264
265        return result

Returns the model properties as a dict

def to_str(self)
267    def to_str(self):
268        """Returns the string representation of the model"""
269        return pprint.pformat(self.to_dict())

Returns the string representation of the model