AlipayEcoCplifePayResultQueryResponse.py 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.TradeAssocBillDetails import TradeAssocBillDetails
  6. from alipay.aop.api.domain.FundBillListEco import FundBillListEco
  7. class AlipayEcoCplifePayResultQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(AlipayEcoCplifePayResultQueryResponse, self).__init__()
  10. self._assoc_bill_details = None
  11. self._biz_entity_id = None
  12. self._biz_type = None
  13. self._buyer_logon_id = None
  14. self._buyer_user_id = None
  15. self._fund_bill_list = None
  16. self._gmt_payment = None
  17. self._seller_id = None
  18. self._total_amount = None
  19. self._trade_no = None
  20. self._trade_status = None
  21. @property
  22. def assoc_bill_details(self):
  23. return self._assoc_bill_details
  24. @assoc_bill_details.setter
  25. def assoc_bill_details(self, value):
  26. if isinstance(value, TradeAssocBillDetails):
  27. self._assoc_bill_details = value
  28. else:
  29. self._assoc_bill_details = TradeAssocBillDetails.from_alipay_dict(value)
  30. @property
  31. def biz_entity_id(self):
  32. return self._biz_entity_id
  33. @biz_entity_id.setter
  34. def biz_entity_id(self, value):
  35. self._biz_entity_id = value
  36. @property
  37. def biz_type(self):
  38. return self._biz_type
  39. @biz_type.setter
  40. def biz_type(self, value):
  41. self._biz_type = value
  42. @property
  43. def buyer_logon_id(self):
  44. return self._buyer_logon_id
  45. @buyer_logon_id.setter
  46. def buyer_logon_id(self, value):
  47. self._buyer_logon_id = value
  48. @property
  49. def buyer_user_id(self):
  50. return self._buyer_user_id
  51. @buyer_user_id.setter
  52. def buyer_user_id(self, value):
  53. self._buyer_user_id = value
  54. @property
  55. def fund_bill_list(self):
  56. return self._fund_bill_list
  57. @fund_bill_list.setter
  58. def fund_bill_list(self, value):
  59. if isinstance(value, FundBillListEco):
  60. self._fund_bill_list = value
  61. else:
  62. self._fund_bill_list = FundBillListEco.from_alipay_dict(value)
  63. @property
  64. def gmt_payment(self):
  65. return self._gmt_payment
  66. @gmt_payment.setter
  67. def gmt_payment(self, value):
  68. self._gmt_payment = value
  69. @property
  70. def seller_id(self):
  71. return self._seller_id
  72. @seller_id.setter
  73. def seller_id(self, value):
  74. self._seller_id = value
  75. @property
  76. def total_amount(self):
  77. return self._total_amount
  78. @total_amount.setter
  79. def total_amount(self, value):
  80. self._total_amount = value
  81. @property
  82. def trade_no(self):
  83. return self._trade_no
  84. @trade_no.setter
  85. def trade_no(self, value):
  86. self._trade_no = value
  87. @property
  88. def trade_status(self):
  89. return self._trade_status
  90. @trade_status.setter
  91. def trade_status(self, value):
  92. self._trade_status = value
  93. def parse_response_content(self, response_content):
  94. response = super(AlipayEcoCplifePayResultQueryResponse, self).parse_response_content(response_content)
  95. if 'assoc_bill_details' in response:
  96. self.assoc_bill_details = response['assoc_bill_details']
  97. if 'biz_entity_id' in response:
  98. self.biz_entity_id = response['biz_entity_id']
  99. if 'biz_type' in response:
  100. self.biz_type = response['biz_type']
  101. if 'buyer_logon_id' in response:
  102. self.buyer_logon_id = response['buyer_logon_id']
  103. if 'buyer_user_id' in response:
  104. self.buyer_user_id = response['buyer_user_id']
  105. if 'fund_bill_list' in response:
  106. self.fund_bill_list = response['fund_bill_list']
  107. if 'gmt_payment' in response:
  108. self.gmt_payment = response['gmt_payment']
  109. if 'seller_id' in response:
  110. self.seller_id = response['seller_id']
  111. if 'total_amount' in response:
  112. self.total_amount = response['total_amount']
  113. if 'trade_no' in response:
  114. self.trade_no = response['trade_no']
  115. if 'trade_status' in response:
  116. self.trade_status = response['trade_status']