MybankCreditLoanapplyApplyQueryResponse.py 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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.ApproveCreditResult import ApproveCreditResult
  6. from alipay.aop.api.domain.InvestigCategoryResult import InvestigCategoryResult
  7. class MybankCreditLoanapplyApplyQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(MybankCreditLoanapplyApplyQueryResponse, self).__init__()
  10. self._apply_amt = None
  11. self._apply_date = None
  12. self._apply_no = None
  13. self._apply_status = None
  14. self._approve_conclu = None
  15. self._approve_credit_result = None
  16. self._approve_finish_date = None
  17. self._cust_inst_appid = None
  18. self._cust_inst_code = None
  19. self._ext_json = None
  20. self._investig_category_result = None
  21. self._ip_role_id = None
  22. self._loan_type = None
  23. self._op_prod_code = None
  24. self._op_prod_code_version = None
  25. self._refuse_code = None
  26. self._result = None
  27. self._state = None
  28. @property
  29. def apply_amt(self):
  30. return self._apply_amt
  31. @apply_amt.setter
  32. def apply_amt(self, value):
  33. self._apply_amt = value
  34. @property
  35. def apply_date(self):
  36. return self._apply_date
  37. @apply_date.setter
  38. def apply_date(self, value):
  39. self._apply_date = value
  40. @property
  41. def apply_no(self):
  42. return self._apply_no
  43. @apply_no.setter
  44. def apply_no(self, value):
  45. self._apply_no = value
  46. @property
  47. def apply_status(self):
  48. return self._apply_status
  49. @apply_status.setter
  50. def apply_status(self, value):
  51. self._apply_status = value
  52. @property
  53. def approve_conclu(self):
  54. return self._approve_conclu
  55. @approve_conclu.setter
  56. def approve_conclu(self, value):
  57. self._approve_conclu = value
  58. @property
  59. def approve_credit_result(self):
  60. return self._approve_credit_result
  61. @approve_credit_result.setter
  62. def approve_credit_result(self, value):
  63. if isinstance(value, ApproveCreditResult):
  64. self._approve_credit_result = value
  65. else:
  66. self._approve_credit_result = ApproveCreditResult.from_alipay_dict(value)
  67. @property
  68. def approve_finish_date(self):
  69. return self._approve_finish_date
  70. @approve_finish_date.setter
  71. def approve_finish_date(self, value):
  72. self._approve_finish_date = value
  73. @property
  74. def cust_inst_appid(self):
  75. return self._cust_inst_appid
  76. @cust_inst_appid.setter
  77. def cust_inst_appid(self, value):
  78. self._cust_inst_appid = value
  79. @property
  80. def cust_inst_code(self):
  81. return self._cust_inst_code
  82. @cust_inst_code.setter
  83. def cust_inst_code(self, value):
  84. self._cust_inst_code = value
  85. @property
  86. def ext_json(self):
  87. return self._ext_json
  88. @ext_json.setter
  89. def ext_json(self, value):
  90. self._ext_json = value
  91. @property
  92. def investig_category_result(self):
  93. return self._investig_category_result
  94. @investig_category_result.setter
  95. def investig_category_result(self, value):
  96. if isinstance(value, list):
  97. self._investig_category_result = list()
  98. for i in value:
  99. if isinstance(i, InvestigCategoryResult):
  100. self._investig_category_result.append(i)
  101. else:
  102. self._investig_category_result.append(InvestigCategoryResult.from_alipay_dict(i))
  103. @property
  104. def ip_role_id(self):
  105. return self._ip_role_id
  106. @ip_role_id.setter
  107. def ip_role_id(self, value):
  108. self._ip_role_id = value
  109. @property
  110. def loan_type(self):
  111. return self._loan_type
  112. @loan_type.setter
  113. def loan_type(self, value):
  114. self._loan_type = value
  115. @property
  116. def op_prod_code(self):
  117. return self._op_prod_code
  118. @op_prod_code.setter
  119. def op_prod_code(self, value):
  120. self._op_prod_code = value
  121. @property
  122. def op_prod_code_version(self):
  123. return self._op_prod_code_version
  124. @op_prod_code_version.setter
  125. def op_prod_code_version(self, value):
  126. self._op_prod_code_version = value
  127. @property
  128. def refuse_code(self):
  129. return self._refuse_code
  130. @refuse_code.setter
  131. def refuse_code(self, value):
  132. self._refuse_code = value
  133. @property
  134. def result(self):
  135. return self._result
  136. @result.setter
  137. def result(self, value):
  138. self._result = value
  139. @property
  140. def state(self):
  141. return self._state
  142. @state.setter
  143. def state(self, value):
  144. self._state = value
  145. def parse_response_content(self, response_content):
  146. response = super(MybankCreditLoanapplyApplyQueryResponse, self).parse_response_content(response_content)
  147. if 'apply_amt' in response:
  148. self.apply_amt = response['apply_amt']
  149. if 'apply_date' in response:
  150. self.apply_date = response['apply_date']
  151. if 'apply_no' in response:
  152. self.apply_no = response['apply_no']
  153. if 'apply_status' in response:
  154. self.apply_status = response['apply_status']
  155. if 'approve_conclu' in response:
  156. self.approve_conclu = response['approve_conclu']
  157. if 'approve_credit_result' in response:
  158. self.approve_credit_result = response['approve_credit_result']
  159. if 'approve_finish_date' in response:
  160. self.approve_finish_date = response['approve_finish_date']
  161. if 'cust_inst_appid' in response:
  162. self.cust_inst_appid = response['cust_inst_appid']
  163. if 'cust_inst_code' in response:
  164. self.cust_inst_code = response['cust_inst_code']
  165. if 'ext_json' in response:
  166. self.ext_json = response['ext_json']
  167. if 'investig_category_result' in response:
  168. self.investig_category_result = response['investig_category_result']
  169. if 'ip_role_id' in response:
  170. self.ip_role_id = response['ip_role_id']
  171. if 'loan_type' in response:
  172. self.loan_type = response['loan_type']
  173. if 'op_prod_code' in response:
  174. self.op_prod_code = response['op_prod_code']
  175. if 'op_prod_code_version' in response:
  176. self.op_prod_code_version = response['op_prod_code_version']
  177. if 'refuse_code' in response:
  178. self.refuse_code = response['refuse_code']
  179. if 'result' in response:
  180. self.result = response['result']
  181. if 'state' in response:
  182. self.state = response['state']