AlipayEbppFlowModeQueryResponse.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayEbppFlowModeQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEbppFlowModeQueryResponse, self).__init__()
  8. self._activity_id = None
  9. self._ext_msg = None
  10. self._mobile = None
  11. self._product_id = None
  12. @property
  13. def activity_id(self):
  14. return self._activity_id
  15. @activity_id.setter
  16. def activity_id(self, value):
  17. self._activity_id = value
  18. @property
  19. def ext_msg(self):
  20. return self._ext_msg
  21. @ext_msg.setter
  22. def ext_msg(self, value):
  23. self._ext_msg = value
  24. @property
  25. def mobile(self):
  26. return self._mobile
  27. @mobile.setter
  28. def mobile(self, value):
  29. self._mobile = value
  30. @property
  31. def product_id(self):
  32. return self._product_id
  33. @product_id.setter
  34. def product_id(self, value):
  35. self._product_id = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayEbppFlowModeQueryResponse, self).parse_response_content(response_content)
  38. if 'activity_id' in response:
  39. self.activity_id = response['activity_id']
  40. if 'ext_msg' in response:
  41. self.ext_msg = response['ext_msg']
  42. if 'mobile' in response:
  43. self.mobile = response['mobile']
  44. if 'product_id' in response:
  45. self.product_id = response['product_id']