AlipayUserGroupshoppingBenefitQueryResponse.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayUserGroupshoppingBenefitQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserGroupshoppingBenefitQueryResponse, self).__init__()
  8. self._amount = None
  9. self._have_benefit = None
  10. self._icon = None
  11. self._link = None
  12. self._reason = None
  13. self._sub_title = None
  14. self._title = None
  15. @property
  16. def amount(self):
  17. return self._amount
  18. @amount.setter
  19. def amount(self, value):
  20. self._amount = value
  21. @property
  22. def have_benefit(self):
  23. return self._have_benefit
  24. @have_benefit.setter
  25. def have_benefit(self, value):
  26. self._have_benefit = value
  27. @property
  28. def icon(self):
  29. return self._icon
  30. @icon.setter
  31. def icon(self, value):
  32. self._icon = value
  33. @property
  34. def link(self):
  35. return self._link
  36. @link.setter
  37. def link(self, value):
  38. self._link = value
  39. @property
  40. def reason(self):
  41. return self._reason
  42. @reason.setter
  43. def reason(self, value):
  44. self._reason = value
  45. @property
  46. def sub_title(self):
  47. return self._sub_title
  48. @sub_title.setter
  49. def sub_title(self, value):
  50. self._sub_title = value
  51. @property
  52. def title(self):
  53. return self._title
  54. @title.setter
  55. def title(self, value):
  56. self._title = value
  57. def parse_response_content(self, response_content):
  58. response = super(AlipayUserGroupshoppingBenefitQueryResponse, self).parse_response_content(response_content)
  59. if 'amount' in response:
  60. self.amount = response['amount']
  61. if 'have_benefit' in response:
  62. self.have_benefit = response['have_benefit']
  63. if 'icon' in response:
  64. self.icon = response['icon']
  65. if 'link' in response:
  66. self.link = response['link']
  67. if 'reason' in response:
  68. self.reason = response['reason']
  69. if 'sub_title' in response:
  70. self.sub_title = response['sub_title']
  71. if 'title' in response:
  72. self.title = response['title']