BizOrderQueryResponse.py 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class BizOrderQueryResponse(object):
  6. def __init__(self):
  7. self._action = None
  8. self._action_mode = None
  9. self._apply_id = None
  10. self._biz_context_info = None
  11. self._biz_id = None
  12. self._biz_type = None
  13. self._create_time = None
  14. self._op_id = None
  15. self._request_id = None
  16. self._result_code = None
  17. self._result_desc = None
  18. self._status = None
  19. self._sub_status = None
  20. self._update_time = None
  21. @property
  22. def action(self):
  23. return self._action
  24. @action.setter
  25. def action(self, value):
  26. self._action = value
  27. @property
  28. def action_mode(self):
  29. return self._action_mode
  30. @action_mode.setter
  31. def action_mode(self, value):
  32. self._action_mode = value
  33. @property
  34. def apply_id(self):
  35. return self._apply_id
  36. @apply_id.setter
  37. def apply_id(self, value):
  38. self._apply_id = value
  39. @property
  40. def biz_context_info(self):
  41. return self._biz_context_info
  42. @biz_context_info.setter
  43. def biz_context_info(self, value):
  44. self._biz_context_info = value
  45. @property
  46. def biz_id(self):
  47. return self._biz_id
  48. @biz_id.setter
  49. def biz_id(self, value):
  50. self._biz_id = value
  51. @property
  52. def biz_type(self):
  53. return self._biz_type
  54. @biz_type.setter
  55. def biz_type(self, value):
  56. self._biz_type = value
  57. @property
  58. def create_time(self):
  59. return self._create_time
  60. @create_time.setter
  61. def create_time(self, value):
  62. self._create_time = value
  63. @property
  64. def op_id(self):
  65. return self._op_id
  66. @op_id.setter
  67. def op_id(self, value):
  68. self._op_id = value
  69. @property
  70. def request_id(self):
  71. return self._request_id
  72. @request_id.setter
  73. def request_id(self, value):
  74. self._request_id = value
  75. @property
  76. def result_code(self):
  77. return self._result_code
  78. @result_code.setter
  79. def result_code(self, value):
  80. self._result_code = value
  81. @property
  82. def result_desc(self):
  83. return self._result_desc
  84. @result_desc.setter
  85. def result_desc(self, value):
  86. self._result_desc = value
  87. @property
  88. def status(self):
  89. return self._status
  90. @status.setter
  91. def status(self, value):
  92. self._status = value
  93. @property
  94. def sub_status(self):
  95. return self._sub_status
  96. @sub_status.setter
  97. def sub_status(self, value):
  98. self._sub_status = value
  99. @property
  100. def update_time(self):
  101. return self._update_time
  102. @update_time.setter
  103. def update_time(self, value):
  104. self._update_time = value
  105. def to_alipay_dict(self):
  106. params = dict()
  107. if self.action:
  108. if hasattr(self.action, 'to_alipay_dict'):
  109. params['action'] = self.action.to_alipay_dict()
  110. else:
  111. params['action'] = self.action
  112. if self.action_mode:
  113. if hasattr(self.action_mode, 'to_alipay_dict'):
  114. params['action_mode'] = self.action_mode.to_alipay_dict()
  115. else:
  116. params['action_mode'] = self.action_mode
  117. if self.apply_id:
  118. if hasattr(self.apply_id, 'to_alipay_dict'):
  119. params['apply_id'] = self.apply_id.to_alipay_dict()
  120. else:
  121. params['apply_id'] = self.apply_id
  122. if self.biz_context_info:
  123. if hasattr(self.biz_context_info, 'to_alipay_dict'):
  124. params['biz_context_info'] = self.biz_context_info.to_alipay_dict()
  125. else:
  126. params['biz_context_info'] = self.biz_context_info
  127. if self.biz_id:
  128. if hasattr(self.biz_id, 'to_alipay_dict'):
  129. params['biz_id'] = self.biz_id.to_alipay_dict()
  130. else:
  131. params['biz_id'] = self.biz_id
  132. if self.biz_type:
  133. if hasattr(self.biz_type, 'to_alipay_dict'):
  134. params['biz_type'] = self.biz_type.to_alipay_dict()
  135. else:
  136. params['biz_type'] = self.biz_type
  137. if self.create_time:
  138. if hasattr(self.create_time, 'to_alipay_dict'):
  139. params['create_time'] = self.create_time.to_alipay_dict()
  140. else:
  141. params['create_time'] = self.create_time
  142. if self.op_id:
  143. if hasattr(self.op_id, 'to_alipay_dict'):
  144. params['op_id'] = self.op_id.to_alipay_dict()
  145. else:
  146. params['op_id'] = self.op_id
  147. if self.request_id:
  148. if hasattr(self.request_id, 'to_alipay_dict'):
  149. params['request_id'] = self.request_id.to_alipay_dict()
  150. else:
  151. params['request_id'] = self.request_id
  152. if self.result_code:
  153. if hasattr(self.result_code, 'to_alipay_dict'):
  154. params['result_code'] = self.result_code.to_alipay_dict()
  155. else:
  156. params['result_code'] = self.result_code
  157. if self.result_desc:
  158. if hasattr(self.result_desc, 'to_alipay_dict'):
  159. params['result_desc'] = self.result_desc.to_alipay_dict()
  160. else:
  161. params['result_desc'] = self.result_desc
  162. if self.status:
  163. if hasattr(self.status, 'to_alipay_dict'):
  164. params['status'] = self.status.to_alipay_dict()
  165. else:
  166. params['status'] = self.status
  167. if self.sub_status:
  168. if hasattr(self.sub_status, 'to_alipay_dict'):
  169. params['sub_status'] = self.sub_status.to_alipay_dict()
  170. else:
  171. params['sub_status'] = self.sub_status
  172. if self.update_time:
  173. if hasattr(self.update_time, 'to_alipay_dict'):
  174. params['update_time'] = self.update_time.to_alipay_dict()
  175. else:
  176. params['update_time'] = self.update_time
  177. return params
  178. @staticmethod
  179. def from_alipay_dict(d):
  180. if not d:
  181. return None
  182. o = BizOrderQueryResponse()
  183. if 'action' in d:
  184. o.action = d['action']
  185. if 'action_mode' in d:
  186. o.action_mode = d['action_mode']
  187. if 'apply_id' in d:
  188. o.apply_id = d['apply_id']
  189. if 'biz_context_info' in d:
  190. o.biz_context_info = d['biz_context_info']
  191. if 'biz_id' in d:
  192. o.biz_id = d['biz_id']
  193. if 'biz_type' in d:
  194. o.biz_type = d['biz_type']
  195. if 'create_time' in d:
  196. o.create_time = d['create_time']
  197. if 'op_id' in d:
  198. o.op_id = d['op_id']
  199. if 'request_id' in d:
  200. o.request_id = d['request_id']
  201. if 'result_code' in d:
  202. o.result_code = d['result_code']
  203. if 'result_desc' in d:
  204. o.result_desc = d['result_desc']
  205. if 'status' in d:
  206. o.status = d['status']
  207. if 'sub_status' in d:
  208. o.sub_status = d['sub_status']
  209. if 'update_time' in d:
  210. o.update_time = d['update_time']
  211. return o