AlipayInsAutoUserPointQueryResponse.py 2.7 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 AlipayInsAutoUserPointQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayInsAutoUserPointQueryResponse, self).__init__()
  8. self._can_exchange = None
  9. self._can_exchange_amount = None
  10. self._can_save_amount = None
  11. self._can_use_amount = None
  12. self._recommend_exchange = None
  13. self._total_limit = None
  14. self._total_save_amount = None
  15. @property
  16. def can_exchange(self):
  17. return self._can_exchange
  18. @can_exchange.setter
  19. def can_exchange(self, value):
  20. self._can_exchange = value
  21. @property
  22. def can_exchange_amount(self):
  23. return self._can_exchange_amount
  24. @can_exchange_amount.setter
  25. def can_exchange_amount(self, value):
  26. self._can_exchange_amount = value
  27. @property
  28. def can_save_amount(self):
  29. return self._can_save_amount
  30. @can_save_amount.setter
  31. def can_save_amount(self, value):
  32. self._can_save_amount = value
  33. @property
  34. def can_use_amount(self):
  35. return self._can_use_amount
  36. @can_use_amount.setter
  37. def can_use_amount(self, value):
  38. self._can_use_amount = value
  39. @property
  40. def recommend_exchange(self):
  41. return self._recommend_exchange
  42. @recommend_exchange.setter
  43. def recommend_exchange(self, value):
  44. self._recommend_exchange = value
  45. @property
  46. def total_limit(self):
  47. return self._total_limit
  48. @total_limit.setter
  49. def total_limit(self, value):
  50. self._total_limit = value
  51. @property
  52. def total_save_amount(self):
  53. return self._total_save_amount
  54. @total_save_amount.setter
  55. def total_save_amount(self, value):
  56. self._total_save_amount = value
  57. def parse_response_content(self, response_content):
  58. response = super(AlipayInsAutoUserPointQueryResponse, self).parse_response_content(response_content)
  59. if 'can_exchange' in response:
  60. self.can_exchange = response['can_exchange']
  61. if 'can_exchange_amount' in response:
  62. self.can_exchange_amount = response['can_exchange_amount']
  63. if 'can_save_amount' in response:
  64. self.can_save_amount = response['can_save_amount']
  65. if 'can_use_amount' in response:
  66. self.can_use_amount = response['can_use_amount']
  67. if 'recommend_exchange' in response:
  68. self.recommend_exchange = response['recommend_exchange']
  69. if 'total_limit' in response:
  70. self.total_limit = response['total_limit']
  71. if 'total_save_amount' in response:
  72. self.total_save_amount = response['total_save_amount']