AlipayFinanceFundFundquotationQueryResponse.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayFinanceFundFundquotationQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayFinanceFundFundquotationQueryResponse, self).__init__()
  8. self._last_half_year = None
  9. self._last_month = None
  10. self._last_quarter = None
  11. self._last_week = None
  12. self._last_year = None
  13. self._report_date = None
  14. self._since_establishment = None
  15. self._this_year = None
  16. self._yield_3_year = None
  17. self._yield_5_year = None
  18. @property
  19. def last_half_year(self):
  20. return self._last_half_year
  21. @last_half_year.setter
  22. def last_half_year(self, value):
  23. self._last_half_year = value
  24. @property
  25. def last_month(self):
  26. return self._last_month
  27. @last_month.setter
  28. def last_month(self, value):
  29. self._last_month = value
  30. @property
  31. def last_quarter(self):
  32. return self._last_quarter
  33. @last_quarter.setter
  34. def last_quarter(self, value):
  35. self._last_quarter = value
  36. @property
  37. def last_week(self):
  38. return self._last_week
  39. @last_week.setter
  40. def last_week(self, value):
  41. self._last_week = value
  42. @property
  43. def last_year(self):
  44. return self._last_year
  45. @last_year.setter
  46. def last_year(self, value):
  47. self._last_year = value
  48. @property
  49. def report_date(self):
  50. return self._report_date
  51. @report_date.setter
  52. def report_date(self, value):
  53. self._report_date = value
  54. @property
  55. def since_establishment(self):
  56. return self._since_establishment
  57. @since_establishment.setter
  58. def since_establishment(self, value):
  59. self._since_establishment = value
  60. @property
  61. def this_year(self):
  62. return self._this_year
  63. @this_year.setter
  64. def this_year(self, value):
  65. self._this_year = value
  66. @property
  67. def yield_3_year(self):
  68. return self._yield_3_year
  69. @yield_3_year.setter
  70. def yield_3_year(self, value):
  71. self._yield_3_year = value
  72. @property
  73. def yield_5_year(self):
  74. return self._yield_5_year
  75. @yield_5_year.setter
  76. def yield_5_year(self, value):
  77. self._yield_5_year = value
  78. def parse_response_content(self, response_content):
  79. response = super(AlipayFinanceFundFundquotationQueryResponse, self).parse_response_content(response_content)
  80. if 'last_half_year' in response:
  81. self.last_half_year = response['last_half_year']
  82. if 'last_month' in response:
  83. self.last_month = response['last_month']
  84. if 'last_quarter' in response:
  85. self.last_quarter = response['last_quarter']
  86. if 'last_week' in response:
  87. self.last_week = response['last_week']
  88. if 'last_year' in response:
  89. self.last_year = response['last_year']
  90. if 'report_date' in response:
  91. self.report_date = response['report_date']
  92. if 'since_establishment' in response:
  93. self.since_establishment = response['since_establishment']
  94. if 'this_year' in response:
  95. self.this_year = response['this_year']
  96. if 'yield_3_year' in response:
  97. self.yield_3_year = response['yield_3_year']
  98. if 'yield_5_year' in response:
  99. self.yield_5_year = response['yield_5_year']