MybankCreditSupplychainTradeBillrepaybudgetQueryResponse.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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.CustScpBillAmtVO import CustScpBillAmtVO
  6. from alipay.aop.api.domain.CustScpInstallmentBudgetVO import CustScpInstallmentBudgetVO
  7. class MybankCreditSupplychainTradeBillrepaybudgetQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(MybankCreditSupplychainTradeBillrepaybudgetQueryResponse, self).__init__()
  10. self._bill_amt_detail = None
  11. self._can_repay = None
  12. self._exempt_amt = None
  13. self._install_budget_detail_list = None
  14. self._out_order = None
  15. self._status = None
  16. self._total_amt = None
  17. @property
  18. def bill_amt_detail(self):
  19. return self._bill_amt_detail
  20. @bill_amt_detail.setter
  21. def bill_amt_detail(self, value):
  22. if isinstance(value, CustScpBillAmtVO):
  23. self._bill_amt_detail = value
  24. else:
  25. self._bill_amt_detail = CustScpBillAmtVO.from_alipay_dict(value)
  26. @property
  27. def can_repay(self):
  28. return self._can_repay
  29. @can_repay.setter
  30. def can_repay(self, value):
  31. self._can_repay = value
  32. @property
  33. def exempt_amt(self):
  34. return self._exempt_amt
  35. @exempt_amt.setter
  36. def exempt_amt(self, value):
  37. self._exempt_amt = value
  38. @property
  39. def install_budget_detail_list(self):
  40. return self._install_budget_detail_list
  41. @install_budget_detail_list.setter
  42. def install_budget_detail_list(self, value):
  43. if isinstance(value, list):
  44. self._install_budget_detail_list = list()
  45. for i in value:
  46. if isinstance(i, CustScpInstallmentBudgetVO):
  47. self._install_budget_detail_list.append(i)
  48. else:
  49. self._install_budget_detail_list.append(CustScpInstallmentBudgetVO.from_alipay_dict(i))
  50. @property
  51. def out_order(self):
  52. return self._out_order
  53. @out_order.setter
  54. def out_order(self, value):
  55. self._out_order = value
  56. @property
  57. def status(self):
  58. return self._status
  59. @status.setter
  60. def status(self, value):
  61. self._status = value
  62. @property
  63. def total_amt(self):
  64. return self._total_amt
  65. @total_amt.setter
  66. def total_amt(self, value):
  67. self._total_amt = value
  68. def parse_response_content(self, response_content):
  69. response = super(MybankCreditSupplychainTradeBillrepaybudgetQueryResponse, self).parse_response_content(response_content)
  70. if 'bill_amt_detail' in response:
  71. self.bill_amt_detail = response['bill_amt_detail']
  72. if 'can_repay' in response:
  73. self.can_repay = response['can_repay']
  74. if 'exempt_amt' in response:
  75. self.exempt_amt = response['exempt_amt']
  76. if 'install_budget_detail_list' in response:
  77. self.install_budget_detail_list = response['install_budget_detail_list']
  78. if 'out_order' in response:
  79. self.out_order = response['out_order']
  80. if 'status' in response:
  81. self.status = response['status']
  82. if 'total_amt' in response:
  83. self.total_amt = response['total_amt']