AlipayMarketingCampaignCashCreateResponse.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMarketingCampaignCashCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMarketingCampaignCashCreateResponse, self).__init__()
  8. self._crowd_no = None
  9. self._origin_crowd_no = None
  10. self._pay_url = None
  11. @property
  12. def crowd_no(self):
  13. return self._crowd_no
  14. @crowd_no.setter
  15. def crowd_no(self, value):
  16. self._crowd_no = value
  17. @property
  18. def origin_crowd_no(self):
  19. return self._origin_crowd_no
  20. @origin_crowd_no.setter
  21. def origin_crowd_no(self, value):
  22. self._origin_crowd_no = value
  23. @property
  24. def pay_url(self):
  25. return self._pay_url
  26. @pay_url.setter
  27. def pay_url(self, value):
  28. self._pay_url = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayMarketingCampaignCashCreateResponse, self).parse_response_content(response_content)
  31. if 'crowd_no' in response:
  32. self.crowd_no = response['crowd_no']
  33. if 'origin_crowd_no' in response:
  34. self.origin_crowd_no = response['origin_crowd_no']
  35. if 'pay_url' in response:
  36. self.pay_url = response['pay_url']