KoubeiAdvertCommissionBillQueryResponse.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.KbAdvertDealBillResponse import KbAdvertDealBillResponse
  6. from alipay.aop.api.domain.KbAdvertSettleBillResponse import KbAdvertSettleBillResponse
  7. class KoubeiAdvertCommissionBillQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(KoubeiAdvertCommissionBillQueryResponse, self).__init__()
  10. self._date = None
  11. self._deal_bill = None
  12. self._settle_bill = None
  13. self._type = None
  14. @property
  15. def date(self):
  16. return self._date
  17. @date.setter
  18. def date(self, value):
  19. self._date = value
  20. @property
  21. def deal_bill(self):
  22. return self._deal_bill
  23. @deal_bill.setter
  24. def deal_bill(self, value):
  25. if isinstance(value, KbAdvertDealBillResponse):
  26. self._deal_bill = value
  27. else:
  28. self._deal_bill = KbAdvertDealBillResponse.from_alipay_dict(value)
  29. @property
  30. def settle_bill(self):
  31. return self._settle_bill
  32. @settle_bill.setter
  33. def settle_bill(self, value):
  34. if isinstance(value, KbAdvertSettleBillResponse):
  35. self._settle_bill = value
  36. else:
  37. self._settle_bill = KbAdvertSettleBillResponse.from_alipay_dict(value)
  38. @property
  39. def type(self):
  40. return self._type
  41. @type.setter
  42. def type(self, value):
  43. self._type = value
  44. def parse_response_content(self, response_content):
  45. response = super(KoubeiAdvertCommissionBillQueryResponse, self).parse_response_content(response_content)
  46. if 'date' in response:
  47. self.date = response['date']
  48. if 'deal_bill' in response:
  49. self.deal_bill = response['deal_bill']
  50. if 'settle_bill' in response:
  51. self.settle_bill = response['settle_bill']
  52. if 'type' in response:
  53. self.type = response['type']