docusign_esign.models.update_transaction_request
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 UpdateTransactionRequest(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 'code': 'str', 35 'message': 'str', 36 'state': 'str' 37 } 38 39 attribute_map = { 40 'code': 'code', 41 'message': 'message', 42 'state': 'state' 43 } 44 45 def __init__(self, code=None, message=None, state=None): # noqa: E501 46 """UpdateTransactionRequest - a model defined in Swagger""" # noqa: E501 47 48 self._code = None 49 self._message = None 50 self._state = None 51 self.discriminator = None 52 53 if code is not None: 54 self.code = code 55 if message is not None: 56 self.message = message 57 if state is not None: 58 self.state = state 59 60 @property 61 def code(self): 62 """Gets the code of this UpdateTransactionRequest. # noqa: E501 63 64 # noqa: E501 65 66 :return: The code of this UpdateTransactionRequest. # noqa: E501 67 :rtype: str 68 """ 69 return self._code 70 71 @code.setter 72 def code(self, code): 73 """Sets the code of this UpdateTransactionRequest. 74 75 # noqa: E501 76 77 :param code: The code of this UpdateTransactionRequest. # noqa: E501 78 :type: str 79 """ 80 81 self._code = code 82 83 @property 84 def message(self): 85 """Gets the message of this UpdateTransactionRequest. # noqa: E501 86 87 # noqa: E501 88 89 :return: The message of this UpdateTransactionRequest. # noqa: E501 90 :rtype: str 91 """ 92 return self._message 93 94 @message.setter 95 def message(self, message): 96 """Sets the message of this UpdateTransactionRequest. 97 98 # noqa: E501 99 100 :param message: The message of this UpdateTransactionRequest. # noqa: E501 101 :type: str 102 """ 103 104 self._message = message 105 106 @property 107 def state(self): 108 """Gets the state of this UpdateTransactionRequest. # noqa: E501 109 110 The state or province associated with the address. # noqa: E501 111 112 :return: The state of this UpdateTransactionRequest. # noqa: E501 113 :rtype: str 114 """ 115 return self._state 116 117 @state.setter 118 def state(self, state): 119 """Sets the state of this UpdateTransactionRequest. 120 121 The state or province associated with the address. # noqa: E501 122 123 :param state: The state of this UpdateTransactionRequest. # noqa: E501 124 :type: str 125 """ 126 127 self._state = state 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(UpdateTransactionRequest, 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, UpdateTransactionRequest): 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
21class UpdateTransactionRequest(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 'code': 'str', 36 'message': 'str', 37 'state': 'str' 38 } 39 40 attribute_map = { 41 'code': 'code', 42 'message': 'message', 43 'state': 'state' 44 } 45 46 def __init__(self, code=None, message=None, state=None): # noqa: E501 47 """UpdateTransactionRequest - a model defined in Swagger""" # noqa: E501 48 49 self._code = None 50 self._message = None 51 self._state = None 52 self.discriminator = None 53 54 if code is not None: 55 self.code = code 56 if message is not None: 57 self.message = message 58 if state is not None: 59 self.state = state 60 61 @property 62 def code(self): 63 """Gets the code of this UpdateTransactionRequest. # noqa: E501 64 65 # noqa: E501 66 67 :return: The code of this UpdateTransactionRequest. # noqa: E501 68 :rtype: str 69 """ 70 return self._code 71 72 @code.setter 73 def code(self, code): 74 """Sets the code of this UpdateTransactionRequest. 75 76 # noqa: E501 77 78 :param code: The code of this UpdateTransactionRequest. # noqa: E501 79 :type: str 80 """ 81 82 self._code = code 83 84 @property 85 def message(self): 86 """Gets the message of this UpdateTransactionRequest. # noqa: E501 87 88 # noqa: E501 89 90 :return: The message of this UpdateTransactionRequest. # noqa: E501 91 :rtype: str 92 """ 93 return self._message 94 95 @message.setter 96 def message(self, message): 97 """Sets the message of this UpdateTransactionRequest. 98 99 # noqa: E501 100 101 :param message: The message of this UpdateTransactionRequest. # noqa: E501 102 :type: str 103 """ 104 105 self._message = message 106 107 @property 108 def state(self): 109 """Gets the state of this UpdateTransactionRequest. # noqa: E501 110 111 The state or province associated with the address. # noqa: E501 112 113 :return: The state of this UpdateTransactionRequest. # noqa: E501 114 :rtype: str 115 """ 116 return self._state 117 118 @state.setter 119 def state(self, state): 120 """Sets the state of this UpdateTransactionRequest. 121 122 The state or province associated with the address. # noqa: E501 123 124 :param state: The state of this UpdateTransactionRequest. # noqa: E501 125 :type: str 126 """ 127 128 self._state = state 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(UpdateTransactionRequest, 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, UpdateTransactionRequest): 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.
46 def __init__(self, code=None, message=None, state=None): # noqa: E501 47 """UpdateTransactionRequest - a model defined in Swagger""" # noqa: E501 48 49 self._code = None 50 self._message = None 51 self._state = None 52 self.discriminator = None 53 54 if code is not None: 55 self.code = code 56 if message is not None: 57 self.message = message 58 if state is not None: 59 self.state = state
UpdateTransactionRequest - a model defined in Swagger
Gets the code of this UpdateTransactionRequest. # noqa: E501
# noqa: E501
Returns
The code of this UpdateTransactionRequest. # noqa: E501
Gets the message of this UpdateTransactionRequest. # noqa: E501
# noqa: E501
Returns
The message of this UpdateTransactionRequest. # noqa: E501
Gets the state of this UpdateTransactionRequest. # noqa: E501
The state or province associated with the address. # noqa: E501
Returns
The state of this UpdateTransactionRequest. # noqa: E501
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(UpdateTransactionRequest, dict): 152 for key, value in self.items(): 153 result[key] = value 154 155 return result
Returns the model properties as a dict