AlipayFundTransGroupfundsBatchCreateResponse.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.GroupFundBill import GroupFundBill
  6. from alipay.aop.api.domain.GroupFundBill import GroupFundBill
  7. class AlipayFundTransGroupfundsBatchCreateResponse(AlipayResponse):
  8. def __init__(self):
  9. super(AlipayFundTransGroupfundsBatchCreateResponse, self).__init__()
  10. self._batch_no = None
  11. self._current_fund_bill = None
  12. self._fund_bills = None
  13. @property
  14. def batch_no(self):
  15. return self._batch_no
  16. @batch_no.setter
  17. def batch_no(self, value):
  18. self._batch_no = value
  19. @property
  20. def current_fund_bill(self):
  21. return self._current_fund_bill
  22. @current_fund_bill.setter
  23. def current_fund_bill(self, value):
  24. if isinstance(value, GroupFundBill):
  25. self._current_fund_bill = value
  26. else:
  27. self._current_fund_bill = GroupFundBill.from_alipay_dict(value)
  28. @property
  29. def fund_bills(self):
  30. return self._fund_bills
  31. @fund_bills.setter
  32. def fund_bills(self, value):
  33. if isinstance(value, list):
  34. self._fund_bills = list()
  35. for i in value:
  36. if isinstance(i, GroupFundBill):
  37. self._fund_bills.append(i)
  38. else:
  39. self._fund_bills.append(GroupFundBill.from_alipay_dict(i))
  40. def parse_response_content(self, response_content):
  41. response = super(AlipayFundTransGroupfundsBatchCreateResponse, self).parse_response_content(response_content)
  42. if 'batch_no' in response:
  43. self.batch_no = response['batch_no']
  44. if 'current_fund_bill' in response:
  45. self.current_fund_bill = response['current_fund_bill']
  46. if 'fund_bills' in response:
  47. self.fund_bills = response['fund_bills']