AlipayEbppIndustryOrderCreateModel.py 7.9 KB

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