天择加密量化开放框架下载
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

263 lines
7.1 KiB

1 year ago
  1. # coding: utf-8
  2. """
  3. Gate API v4
  4. Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
  5. Contact: support@mail.gate.io
  6. Generated by: https://openapi-generator.tech
  7. """
  8. import pprint
  9. import re # noqa: F401
  10. import six
  11. from gate_api.configuration import Configuration
  12. class SavedAddress(object):
  13. """NOTE: This class is auto generated by OpenAPI Generator.
  14. Ref: https://openapi-generator.tech
  15. Do not edit the class manually.
  16. """
  17. """
  18. Attributes:
  19. openapi_types (dict): The key is attribute name
  20. and the value is attribute type.
  21. attribute_map (dict): The key is attribute name
  22. and the value is json key in definition.
  23. """
  24. openapi_types = {
  25. 'currency': 'str',
  26. 'chain': 'str',
  27. 'address': 'str',
  28. 'name': 'str',
  29. 'tag': 'str',
  30. 'verified': 'str',
  31. }
  32. attribute_map = {
  33. 'currency': 'currency',
  34. 'chain': 'chain',
  35. 'address': 'address',
  36. 'name': 'name',
  37. 'tag': 'tag',
  38. 'verified': 'verified',
  39. }
  40. def __init__(
  41. self, currency=None, chain=None, address=None, name=None, tag=None, verified=None, local_vars_configuration=None
  42. ): # noqa: E501
  43. # type: (str, str, str, str, str, str, Configuration) -> None
  44. """SavedAddress - a model defined in OpenAPI""" # noqa: E501
  45. if local_vars_configuration is None:
  46. local_vars_configuration = Configuration()
  47. self.local_vars_configuration = local_vars_configuration
  48. self._currency = None
  49. self._chain = None
  50. self._address = None
  51. self._name = None
  52. self._tag = None
  53. self._verified = None
  54. self.discriminator = None
  55. if currency is not None:
  56. self.currency = currency
  57. if chain is not None:
  58. self.chain = chain
  59. if address is not None:
  60. self.address = address
  61. if name is not None:
  62. self.name = name
  63. if tag is not None:
  64. self.tag = tag
  65. if verified is not None:
  66. self.verified = verified
  67. @property
  68. def currency(self):
  69. """Gets the currency of this SavedAddress. # noqa: E501
  70. Currency # noqa: E501
  71. :return: The currency of this SavedAddress. # noqa: E501
  72. :rtype: str
  73. """
  74. return self._currency
  75. @currency.setter
  76. def currency(self, currency):
  77. """Sets the currency of this SavedAddress.
  78. Currency # noqa: E501
  79. :param currency: The currency of this SavedAddress. # noqa: E501
  80. :type: str
  81. """
  82. self._currency = currency
  83. @property
  84. def chain(self):
  85. """Gets the chain of this SavedAddress. # noqa: E501
  86. Chain name # noqa: E501
  87. :return: The chain of this SavedAddress. # noqa: E501
  88. :rtype: str
  89. """
  90. return self._chain
  91. @chain.setter
  92. def chain(self, chain):
  93. """Sets the chain of this SavedAddress.
  94. Chain name # noqa: E501
  95. :param chain: The chain of this SavedAddress. # noqa: E501
  96. :type: str
  97. """
  98. self._chain = chain
  99. @property
  100. def address(self):
  101. """Gets the address of this SavedAddress. # noqa: E501
  102. Address # noqa: E501
  103. :return: The address of this SavedAddress. # noqa: E501
  104. :rtype: str
  105. """
  106. return self._address
  107. @address.setter
  108. def address(self, address):
  109. """Sets the address of this SavedAddress.
  110. Address # noqa: E501
  111. :param address: The address of this SavedAddress. # noqa: E501
  112. :type: str
  113. """
  114. self._address = address
  115. @property
  116. def name(self):
  117. """Gets the name of this SavedAddress. # noqa: E501
  118. Name # noqa: E501
  119. :return: The name of this SavedAddress. # noqa: E501
  120. :rtype: str
  121. """
  122. return self._name
  123. @name.setter
  124. def name(self, name):
  125. """Sets the name of this SavedAddress.
  126. Name # noqa: E501
  127. :param name: The name of this SavedAddress. # noqa: E501
  128. :type: str
  129. """
  130. self._name = name
  131. @property
  132. def tag(self):
  133. """Gets the tag of this SavedAddress. # noqa: E501
  134. Tag # noqa: E501
  135. :return: The tag of this SavedAddress. # noqa: E501
  136. :rtype: str
  137. """
  138. return self._tag
  139. @tag.setter
  140. def tag(self, tag):
  141. """Sets the tag of this SavedAddress.
  142. Tag # noqa: E501
  143. :param tag: The tag of this SavedAddress. # noqa: E501
  144. :type: str
  145. """
  146. self._tag = tag
  147. @property
  148. def verified(self):
  149. """Gets the verified of this SavedAddress. # noqa: E501
  150. Whether to pass the verification 0-unverified, 1-verified # noqa: E501
  151. :return: The verified of this SavedAddress. # noqa: E501
  152. :rtype: str
  153. """
  154. return self._verified
  155. @verified.setter
  156. def verified(self, verified):
  157. """Sets the verified of this SavedAddress.
  158. Whether to pass the verification 0-unverified, 1-verified # noqa: E501
  159. :param verified: The verified of this SavedAddress. # noqa: E501
  160. :type: str
  161. """
  162. self._verified = verified
  163. def to_dict(self):
  164. """Returns the model properties as a dict"""
  165. result = {}
  166. for attr, _ in six.iteritems(self.openapi_types):
  167. value = getattr(self, attr)
  168. if isinstance(value, list):
  169. result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
  170. elif hasattr(value, "to_dict"):
  171. result[attr] = value.to_dict()
  172. elif isinstance(value, dict):
  173. result[attr] = dict(
  174. map(
  175. lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
  176. value.items(),
  177. )
  178. )
  179. else:
  180. result[attr] = value
  181. return result
  182. def to_str(self):
  183. """Returns the string representation of the model"""
  184. return pprint.pformat(self.to_dict())
  185. def __repr__(self):
  186. """For `print` and `pprint`"""
  187. return self.to_str()
  188. def __eq__(self, other):
  189. """Returns true if both objects are equal"""
  190. if not isinstance(other, SavedAddress):
  191. return False
  192. return self.to_dict() == other.to_dict()
  193. def __ne__(self, other):
  194. """Returns true if both objects are not equal"""
  195. if not isinstance(other, SavedAddress):
  196. return True
  197. return self.to_dict() != other.to_dict()