docusign_esign.models.complete_sign_hash_response

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
 19
 20class CompleteSignHashResponse(object):
 21    """NOTE: This class is auto generated by the swagger code generator program.
 22
 23    Do not edit the class manually.
 24    """
 25
 26    """
 27    Attributes:
 28      swagger_types (dict): The key is attribute name
 29                            and the value is attribute type.
 30      attribute_map (dict): The key is attribute name
 31                            and the value is json key in definition.
 32    """
 33    swagger_types = {
 34        'documents': 'list[SignHashDocument]',
 35        'redirection_url': 'str',
 36        'remaining_signature_requests': 'str'
 37    }
 38
 39    attribute_map = {
 40        'documents': 'documents',
 41        'redirection_url': 'redirectionUrl',
 42        'remaining_signature_requests': 'remainingSignatureRequests'
 43    }
 44
 45    def __init__(self, documents=None, redirection_url=None, remaining_signature_requests=None):  # noqa: E501
 46        """CompleteSignHashResponse - a model defined in Swagger"""  # noqa: E501
 47
 48        self._documents = None
 49        self._redirection_url = None
 50        self._remaining_signature_requests = None
 51        self.discriminator = None
 52
 53        if documents is not None:
 54            self.documents = documents
 55        if redirection_url is not None:
 56            self.redirection_url = redirection_url
 57        if remaining_signature_requests is not None:
 58            self.remaining_signature_requests = remaining_signature_requests
 59
 60    @property
 61    def documents(self):
 62        """Gets the documents of this CompleteSignHashResponse.  # noqa: E501
 63
 64        Complex element contains the details on the documents in the envelope.  # noqa: E501
 65
 66        :return: The documents of this CompleteSignHashResponse.  # noqa: E501
 67        :rtype: list[SignHashDocument]
 68        """
 69        return self._documents
 70
 71    @documents.setter
 72    def documents(self, documents):
 73        """Sets the documents of this CompleteSignHashResponse.
 74
 75        Complex element contains the details on the documents in the envelope.  # noqa: E501
 76
 77        :param documents: The documents of this CompleteSignHashResponse.  # noqa: E501
 78        :type: list[SignHashDocument]
 79        """
 80
 81        self._documents = documents
 82
 83    @property
 84    def redirection_url(self):
 85        """Gets the redirection_url of this CompleteSignHashResponse.  # noqa: E501
 86
 87          # noqa: E501
 88
 89        :return: The redirection_url of this CompleteSignHashResponse.  # noqa: E501
 90        :rtype: str
 91        """
 92        return self._redirection_url
 93
 94    @redirection_url.setter
 95    def redirection_url(self, redirection_url):
 96        """Sets the redirection_url of this CompleteSignHashResponse.
 97
 98          # noqa: E501
 99
100        :param redirection_url: The redirection_url of this CompleteSignHashResponse.  # noqa: E501
101        :type: str
102        """
103
104        self._redirection_url = redirection_url
105
106    @property
107    def remaining_signature_requests(self):
108        """Gets the remaining_signature_requests of this CompleteSignHashResponse.  # noqa: E501
109
110          # noqa: E501
111
112        :return: The remaining_signature_requests of this CompleteSignHashResponse.  # noqa: E501
113        :rtype: str
114        """
115        return self._remaining_signature_requests
116
117    @remaining_signature_requests.setter
118    def remaining_signature_requests(self, remaining_signature_requests):
119        """Sets the remaining_signature_requests of this CompleteSignHashResponse.
120
121          # noqa: E501
122
123        :param remaining_signature_requests: The remaining_signature_requests of this CompleteSignHashResponse.  # noqa: E501
124        :type: str
125        """
126
127        self._remaining_signature_requests = remaining_signature_requests
128
129    def to_dict(self):
130        """Returns the model properties as a dict"""
131        result = {}
132
133        for attr, _ in six.iteritems(self.swagger_types):
134            value = getattr(self, attr)
135            if isinstance(value, list):
136                result[attr] = list(map(
137                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
138                    value
139                ))
140            elif hasattr(value, "to_dict"):
141                result[attr] = value.to_dict()
142            elif isinstance(value, dict):
143                result[attr] = dict(map(
144                    lambda item: (item[0], item[1].to_dict())
145                    if hasattr(item[1], "to_dict") else item,
146                    value.items()
147                ))
148            else:
149                result[attr] = value
150        if issubclass(CompleteSignHashResponse, dict):
151            for key, value in self.items():
152                result[key] = value
153
154        return result
155
156    def to_str(self):
157        """Returns the string representation of the model"""
158        return pprint.pformat(self.to_dict())
159
160    def __repr__(self):
161        """For `print` and `pprint`"""
162        return self.to_str()
163
164    def __eq__(self, other):
165        """Returns true if both objects are equal"""
166        if not isinstance(other, CompleteSignHashResponse):
167            return False
168
169        return self.__dict__ == other.__dict__
170
171    def __ne__(self, other):
172        """Returns true if both objects are not equal"""
173        return not self == other
class CompleteSignHashResponse:
 21class CompleteSignHashResponse(object):
 22    """NOTE: This class is auto generated by the swagger code generator program.
 23
 24    Do not edit the class manually.
 25    """
 26
 27    """
 28    Attributes:
 29      swagger_types (dict): The key is attribute name
 30                            and the value is attribute type.
 31      attribute_map (dict): The key is attribute name
 32                            and the value is json key in definition.
 33    """
 34    swagger_types = {
 35        'documents': 'list[SignHashDocument]',
 36        'redirection_url': 'str',
 37        'remaining_signature_requests': 'str'
 38    }
 39
 40    attribute_map = {
 41        'documents': 'documents',
 42        'redirection_url': 'redirectionUrl',
 43        'remaining_signature_requests': 'remainingSignatureRequests'
 44    }
 45
 46    def __init__(self, documents=None, redirection_url=None, remaining_signature_requests=None):  # noqa: E501
 47        """CompleteSignHashResponse - a model defined in Swagger"""  # noqa: E501
 48
 49        self._documents = None
 50        self._redirection_url = None
 51        self._remaining_signature_requests = None
 52        self.discriminator = None
 53
 54        if documents is not None:
 55            self.documents = documents
 56        if redirection_url is not None:
 57            self.redirection_url = redirection_url
 58        if remaining_signature_requests is not None:
 59            self.remaining_signature_requests = remaining_signature_requests
 60
 61    @property
 62    def documents(self):
 63        """Gets the documents of this CompleteSignHashResponse.  # noqa: E501
 64
 65        Complex element contains the details on the documents in the envelope.  # noqa: E501
 66
 67        :return: The documents of this CompleteSignHashResponse.  # noqa: E501
 68        :rtype: list[SignHashDocument]
 69        """
 70        return self._documents
 71
 72    @documents.setter
 73    def documents(self, documents):
 74        """Sets the documents of this CompleteSignHashResponse.
 75
 76        Complex element contains the details on the documents in the envelope.  # noqa: E501
 77
 78        :param documents: The documents of this CompleteSignHashResponse.  # noqa: E501
 79        :type: list[SignHashDocument]
 80        """
 81
 82        self._documents = documents
 83
 84    @property
 85    def redirection_url(self):
 86        """Gets the redirection_url of this CompleteSignHashResponse.  # noqa: E501
 87
 88          # noqa: E501
 89
 90        :return: The redirection_url of this CompleteSignHashResponse.  # noqa: E501
 91        :rtype: str
 92        """
 93        return self._redirection_url
 94
 95    @redirection_url.setter
 96    def redirection_url(self, redirection_url):
 97        """Sets the redirection_url of this CompleteSignHashResponse.
 98
 99          # noqa: E501
100
101        :param redirection_url: The redirection_url of this CompleteSignHashResponse.  # noqa: E501
102        :type: str
103        """
104
105        self._redirection_url = redirection_url
106
107    @property
108    def remaining_signature_requests(self):
109        """Gets the remaining_signature_requests of this CompleteSignHashResponse.  # noqa: E501
110
111          # noqa: E501
112
113        :return: The remaining_signature_requests of this CompleteSignHashResponse.  # noqa: E501
114        :rtype: str
115        """
116        return self._remaining_signature_requests
117
118    @remaining_signature_requests.setter
119    def remaining_signature_requests(self, remaining_signature_requests):
120        """Sets the remaining_signature_requests of this CompleteSignHashResponse.
121
122          # noqa: E501
123
124        :param remaining_signature_requests: The remaining_signature_requests of this CompleteSignHashResponse.  # noqa: E501
125        :type: str
126        """
127
128        self._remaining_signature_requests = remaining_signature_requests
129
130    def to_dict(self):
131        """Returns the model properties as a dict"""
132        result = {}
133
134        for attr, _ in six.iteritems(self.swagger_types):
135            value = getattr(self, attr)
136            if isinstance(value, list):
137                result[attr] = list(map(
138                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
139                    value
140                ))
141            elif hasattr(value, "to_dict"):
142                result[attr] = value.to_dict()
143            elif isinstance(value, dict):
144                result[attr] = dict(map(
145                    lambda item: (item[0], item[1].to_dict())
146                    if hasattr(item[1], "to_dict") else item,
147                    value.items()
148                ))
149            else:
150                result[attr] = value
151        if issubclass(CompleteSignHashResponse, dict):
152            for key, value in self.items():
153                result[key] = value
154
155        return result
156
157    def to_str(self):
158        """Returns the string representation of the model"""
159        return pprint.pformat(self.to_dict())
160
161    def __repr__(self):
162        """For `print` and `pprint`"""
163        return self.to_str()
164
165    def __eq__(self, other):
166        """Returns true if both objects are equal"""
167        if not isinstance(other, CompleteSignHashResponse):
168            return False
169
170        return self.__dict__ == other.__dict__
171
172    def __ne__(self, other):
173        """Returns true if both objects are not equal"""
174        return not self == other

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

CompleteSignHashResponse( documents=None, redirection_url=None, remaining_signature_requests=None)
46    def __init__(self, documents=None, redirection_url=None, remaining_signature_requests=None):  # noqa: E501
47        """CompleteSignHashResponse - a model defined in Swagger"""  # noqa: E501
48
49        self._documents = None
50        self._redirection_url = None
51        self._remaining_signature_requests = None
52        self.discriminator = None
53
54        if documents is not None:
55            self.documents = documents
56        if redirection_url is not None:
57            self.redirection_url = redirection_url
58        if remaining_signature_requests is not None:
59            self.remaining_signature_requests = remaining_signature_requests

CompleteSignHashResponse - a model defined in Swagger

swagger_types = {'documents': 'list[SignHashDocument]', 'redirection_url': 'str', 'remaining_signature_requests': 'str'}
attribute_map = {'documents': 'documents', 'redirection_url': 'redirectionUrl', 'remaining_signature_requests': 'remainingSignatureRequests'}
documents

Gets the documents of this CompleteSignHashResponse. # noqa: E501

Complex element contains the details on the documents in the envelope. # noqa: E501

Returns

The documents of this CompleteSignHashResponse. # noqa: E501

redirection_url

Gets the redirection_url of this CompleteSignHashResponse. # noqa: E501

# noqa: E501

Returns

The redirection_url of this CompleteSignHashResponse. # noqa: E501

remaining_signature_requests

Gets the remaining_signature_requests of this CompleteSignHashResponse. # noqa: E501

# noqa: E501

Returns

The remaining_signature_requests of this CompleteSignHashResponse. # noqa: E501

def to_dict(self)
130    def to_dict(self):
131        """Returns the model properties as a dict"""
132        result = {}
133
134        for attr, _ in six.iteritems(self.swagger_types):
135            value = getattr(self, attr)
136            if isinstance(value, list):
137                result[attr] = list(map(
138                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
139                    value
140                ))
141            elif hasattr(value, "to_dict"):
142                result[attr] = value.to_dict()
143            elif isinstance(value, dict):
144                result[attr] = dict(map(
145                    lambda item: (item[0], item[1].to_dict())
146                    if hasattr(item[1], "to_dict") else item,
147                    value.items()
148                ))
149            else:
150                result[attr] = value
151        if issubclass(CompleteSignHashResponse, dict):
152            for key, value in self.items():
153                result[key] = value
154
155        return result

Returns the model properties as a dict

def to_str(self)
157    def to_str(self):
158        """Returns the string representation of the model"""
159        return pprint.pformat(self.to_dict())

Returns the string representation of the model