ZhimaCreditEpFreedepositInitializeModel.py 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class ZhimaCreditEpFreedepositInitializeModel(object):
  6. def __init__(self):
  7. self._biz_channel = None
  8. self._biz_source = None
  9. self._cert_no = None
  10. self._cert_type = None
  11. self._credit_category = None
  12. self._ep_cert_no = None
  13. self._ep_cert_type = None
  14. self._ep_name = None
  15. self._goto_url = None
  16. self._member_type = None
  17. self._merchant_order_no = None
  18. self._name = None
  19. self._out_request_no = None
  20. self._product_code = None
  21. self._request_id = None
  22. @property
  23. def biz_channel(self):
  24. return self._biz_channel
  25. @biz_channel.setter
  26. def biz_channel(self, value):
  27. self._biz_channel = value
  28. @property
  29. def biz_source(self):
  30. return self._biz_source
  31. @biz_source.setter
  32. def biz_source(self, value):
  33. self._biz_source = value
  34. @property
  35. def cert_no(self):
  36. return self._cert_no
  37. @cert_no.setter
  38. def cert_no(self, value):
  39. self._cert_no = value
  40. @property
  41. def cert_type(self):
  42. return self._cert_type
  43. @cert_type.setter
  44. def cert_type(self, value):
  45. self._cert_type = value
  46. @property
  47. def credit_category(self):
  48. return self._credit_category
  49. @credit_category.setter
  50. def credit_category(self, value):
  51. self._credit_category = value
  52. @property
  53. def ep_cert_no(self):
  54. return self._ep_cert_no
  55. @ep_cert_no.setter
  56. def ep_cert_no(self, value):
  57. self._ep_cert_no = value
  58. @property
  59. def ep_cert_type(self):
  60. return self._ep_cert_type
  61. @ep_cert_type.setter
  62. def ep_cert_type(self, value):
  63. self._ep_cert_type = value
  64. @property
  65. def ep_name(self):
  66. return self._ep_name
  67. @ep_name.setter
  68. def ep_name(self, value):
  69. self._ep_name = value
  70. @property
  71. def goto_url(self):
  72. return self._goto_url
  73. @goto_url.setter
  74. def goto_url(self, value):
  75. self._goto_url = value
  76. @property
  77. def member_type(self):
  78. return self._member_type
  79. @member_type.setter
  80. def member_type(self, value):
  81. self._member_type = value
  82. @property
  83. def merchant_order_no(self):
  84. return self._merchant_order_no
  85. @merchant_order_no.setter
  86. def merchant_order_no(self, value):
  87. self._merchant_order_no = value
  88. @property
  89. def name(self):
  90. return self._name
  91. @name.setter
  92. def name(self, value):
  93. self._name = value
  94. @property
  95. def out_request_no(self):
  96. return self._out_request_no
  97. @out_request_no.setter
  98. def out_request_no(self, value):
  99. self._out_request_no = value
  100. @property
  101. def product_code(self):
  102. return self._product_code
  103. @product_code.setter
  104. def product_code(self, value):
  105. self._product_code = value
  106. @property
  107. def request_id(self):
  108. return self._request_id
  109. @request_id.setter
  110. def request_id(self, value):
  111. self._request_id = value
  112. def to_alipay_dict(self):
  113. params = dict()
  114. if self.biz_channel:
  115. if hasattr(self.biz_channel, 'to_alipay_dict'):
  116. params['biz_channel'] = self.biz_channel.to_alipay_dict()
  117. else:
  118. params['biz_channel'] = self.biz_channel
  119. if self.biz_source:
  120. if hasattr(self.biz_source, 'to_alipay_dict'):
  121. params['biz_source'] = self.biz_source.to_alipay_dict()
  122. else:
  123. params['biz_source'] = self.biz_source
  124. if self.cert_no:
  125. if hasattr(self.cert_no, 'to_alipay_dict'):
  126. params['cert_no'] = self.cert_no.to_alipay_dict()
  127. else:
  128. params['cert_no'] = self.cert_no
  129. if self.cert_type:
  130. if hasattr(self.cert_type, 'to_alipay_dict'):
  131. params['cert_type'] = self.cert_type.to_alipay_dict()
  132. else:
  133. params['cert_type'] = self.cert_type
  134. if self.credit_category:
  135. if hasattr(self.credit_category, 'to_alipay_dict'):
  136. params['credit_category'] = self.credit_category.to_alipay_dict()
  137. else:
  138. params['credit_category'] = self.credit_category
  139. if self.ep_cert_no:
  140. if hasattr(self.ep_cert_no, 'to_alipay_dict'):
  141. params['ep_cert_no'] = self.ep_cert_no.to_alipay_dict()
  142. else:
  143. params['ep_cert_no'] = self.ep_cert_no
  144. if self.ep_cert_type:
  145. if hasattr(self.ep_cert_type, 'to_alipay_dict'):
  146. params['ep_cert_type'] = self.ep_cert_type.to_alipay_dict()
  147. else:
  148. params['ep_cert_type'] = self.ep_cert_type
  149. if self.ep_name:
  150. if hasattr(self.ep_name, 'to_alipay_dict'):
  151. params['ep_name'] = self.ep_name.to_alipay_dict()
  152. else:
  153. params['ep_name'] = self.ep_name
  154. if self.goto_url:
  155. if hasattr(self.goto_url, 'to_alipay_dict'):
  156. params['goto_url'] = self.goto_url.to_alipay_dict()
  157. else:
  158. params['goto_url'] = self.goto_url
  159. if self.member_type:
  160. if hasattr(self.member_type, 'to_alipay_dict'):
  161. params['member_type'] = self.member_type.to_alipay_dict()
  162. else:
  163. params['member_type'] = self.member_type
  164. if self.merchant_order_no:
  165. if hasattr(self.merchant_order_no, 'to_alipay_dict'):
  166. params['merchant_order_no'] = self.merchant_order_no.to_alipay_dict()
  167. else:
  168. params['merchant_order_no'] = self.merchant_order_no
  169. if self.name:
  170. if hasattr(self.name, 'to_alipay_dict'):
  171. params['name'] = self.name.to_alipay_dict()
  172. else:
  173. params['name'] = self.name
  174. if self.out_request_no:
  175. if hasattr(self.out_request_no, 'to_alipay_dict'):
  176. params['out_request_no'] = self.out_request_no.to_alipay_dict()
  177. else:
  178. params['out_request_no'] = self.out_request_no
  179. if self.product_code:
  180. if hasattr(self.product_code, 'to_alipay_dict'):
  181. params['product_code'] = self.product_code.to_alipay_dict()
  182. else:
  183. params['product_code'] = self.product_code
  184. if self.request_id:
  185. if hasattr(self.request_id, 'to_alipay_dict'):
  186. params['request_id'] = self.request_id.to_alipay_dict()
  187. else:
  188. params['request_id'] = self.request_id
  189. return params
  190. @staticmethod
  191. def from_alipay_dict(d):
  192. if not d:
  193. return None
  194. o = ZhimaCreditEpFreedepositInitializeModel()
  195. if 'biz_channel' in d:
  196. o.biz_channel = d['biz_channel']
  197. if 'biz_source' in d:
  198. o.biz_source = d['biz_source']
  199. if 'cert_no' in d:
  200. o.cert_no = d['cert_no']
  201. if 'cert_type' in d:
  202. o.cert_type = d['cert_type']
  203. if 'credit_category' in d:
  204. o.credit_category = d['credit_category']
  205. if 'ep_cert_no' in d:
  206. o.ep_cert_no = d['ep_cert_no']
  207. if 'ep_cert_type' in d:
  208. o.ep_cert_type = d['ep_cert_type']
  209. if 'ep_name' in d:
  210. o.ep_name = d['ep_name']
  211. if 'goto_url' in d:
  212. o.goto_url = d['goto_url']
  213. if 'member_type' in d:
  214. o.member_type = d['member_type']
  215. if 'merchant_order_no' in d:
  216. o.merchant_order_no = d['merchant_order_no']
  217. if 'name' in d:
  218. o.name = d['name']
  219. if 'out_request_no' in d:
  220. o.out_request_no = d['out_request_no']
  221. if 'product_code' in d:
  222. o.product_code = d['product_code']
  223. if 'request_id' in d:
  224. o.request_id = d['request_id']
  225. return o