AlipayMarketingCampaignDiscountBudgetCreateResponse.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 AlipayMarketingCampaignDiscountBudgetCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMarketingCampaignDiscountBudgetCreateResponse, self).__init__()
  8. self._budget_id = None
  9. self._confirm_uri = None
  10. self._fund_order_no = None
  11. @property
  12. def budget_id(self):
  13. return self._budget_id
  14. @budget_id.setter
  15. def budget_id(self, value):
  16. self._budget_id = value
  17. @property
  18. def confirm_uri(self):
  19. return self._confirm_uri
  20. @confirm_uri.setter
  21. def confirm_uri(self, value):
  22. self._confirm_uri = value
  23. @property
  24. def fund_order_no(self):
  25. return self._fund_order_no
  26. @fund_order_no.setter
  27. def fund_order_no(self, value):
  28. self._fund_order_no = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayMarketingCampaignDiscountBudgetCreateResponse, self).parse_response_content(response_content)
  31. if 'budget_id' in response:
  32. self.budget_id = response['budget_id']
  33. if 'confirm_uri' in response:
  34. self.confirm_uri = response['confirm_uri']
  35. if 'fund_order_no' in response:
  36. self.fund_order_no = response['fund_order_no']