AlipayMerchantWeikeBillModifyModel.py 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayMerchantWeikeBillModifyModel(object):
  6. def __init__(self):
  7. self._actual_service_charge = None
  8. self._alipay_trans_serial_no = None
  9. self._bill_month = None
  10. self._bill_no = None
  11. self._bill_version = None
  12. self._current_actual_service_charge = None
  13. self._current_expect_service_charge = None
  14. self._current_user_task_count = None
  15. self._expect_service_charge = None
  16. self._expect_tax = None
  17. self._gmt_modified = None
  18. self._gmt_pay = None
  19. self._out_biz_no = None
  20. self._paid_charge_tax_include = None
  21. self._paid_service_charge = None
  22. self._service_charge_serial_no = None
  23. self._to_pay_service_charge = None
  24. self._weike_user_id = None
  25. @property
  26. def actual_service_charge(self):
  27. return self._actual_service_charge
  28. @actual_service_charge.setter
  29. def actual_service_charge(self, value):
  30. self._actual_service_charge = value
  31. @property
  32. def alipay_trans_serial_no(self):
  33. return self._alipay_trans_serial_no
  34. @alipay_trans_serial_no.setter
  35. def alipay_trans_serial_no(self, value):
  36. self._alipay_trans_serial_no = value
  37. @property
  38. def bill_month(self):
  39. return self._bill_month
  40. @bill_month.setter
  41. def bill_month(self, value):
  42. self._bill_month = value
  43. @property
  44. def bill_no(self):
  45. return self._bill_no
  46. @bill_no.setter
  47. def bill_no(self, value):
  48. self._bill_no = value
  49. @property
  50. def bill_version(self):
  51. return self._bill_version
  52. @bill_version.setter
  53. def bill_version(self, value):
  54. self._bill_version = value
  55. @property
  56. def current_actual_service_charge(self):
  57. return self._current_actual_service_charge
  58. @current_actual_service_charge.setter
  59. def current_actual_service_charge(self, value):
  60. self._current_actual_service_charge = value
  61. @property
  62. def current_expect_service_charge(self):
  63. return self._current_expect_service_charge
  64. @current_expect_service_charge.setter
  65. def current_expect_service_charge(self, value):
  66. self._current_expect_service_charge = value
  67. @property
  68. def current_user_task_count(self):
  69. return self._current_user_task_count
  70. @current_user_task_count.setter
  71. def current_user_task_count(self, value):
  72. self._current_user_task_count = value
  73. @property
  74. def expect_service_charge(self):
  75. return self._expect_service_charge
  76. @expect_service_charge.setter
  77. def expect_service_charge(self, value):
  78. self._expect_service_charge = value
  79. @property
  80. def expect_tax(self):
  81. return self._expect_tax
  82. @expect_tax.setter
  83. def expect_tax(self, value):
  84. self._expect_tax = value
  85. @property
  86. def gmt_modified(self):
  87. return self._gmt_modified
  88. @gmt_modified.setter
  89. def gmt_modified(self, value):
  90. self._gmt_modified = value
  91. @property
  92. def gmt_pay(self):
  93. return self._gmt_pay
  94. @gmt_pay.setter
  95. def gmt_pay(self, value):
  96. self._gmt_pay = value
  97. @property
  98. def out_biz_no(self):
  99. return self._out_biz_no
  100. @out_biz_no.setter
  101. def out_biz_no(self, value):
  102. self._out_biz_no = value
  103. @property
  104. def paid_charge_tax_include(self):
  105. return self._paid_charge_tax_include
  106. @paid_charge_tax_include.setter
  107. def paid_charge_tax_include(self, value):
  108. self._paid_charge_tax_include = value
  109. @property
  110. def paid_service_charge(self):
  111. return self._paid_service_charge
  112. @paid_service_charge.setter
  113. def paid_service_charge(self, value):
  114. self._paid_service_charge = value
  115. @property
  116. def service_charge_serial_no(self):
  117. return self._service_charge_serial_no
  118. @service_charge_serial_no.setter
  119. def service_charge_serial_no(self, value):
  120. self._service_charge_serial_no = value
  121. @property
  122. def to_pay_service_charge(self):
  123. return self._to_pay_service_charge
  124. @to_pay_service_charge.setter
  125. def to_pay_service_charge(self, value):
  126. self._to_pay_service_charge = value
  127. @property
  128. def weike_user_id(self):
  129. return self._weike_user_id
  130. @weike_user_id.setter
  131. def weike_user_id(self, value):
  132. self._weike_user_id = value
  133. def to_alipay_dict(self):
  134. params = dict()
  135. if self.actual_service_charge:
  136. if hasattr(self.actual_service_charge, 'to_alipay_dict'):
  137. params['actual_service_charge'] = self.actual_service_charge.to_alipay_dict()
  138. else:
  139. params['actual_service_charge'] = self.actual_service_charge
  140. if self.alipay_trans_serial_no:
  141. if hasattr(self.alipay_trans_serial_no, 'to_alipay_dict'):
  142. params['alipay_trans_serial_no'] = self.alipay_trans_serial_no.to_alipay_dict()
  143. else:
  144. params['alipay_trans_serial_no'] = self.alipay_trans_serial_no
  145. if self.bill_month:
  146. if hasattr(self.bill_month, 'to_alipay_dict'):
  147. params['bill_month'] = self.bill_month.to_alipay_dict()
  148. else:
  149. params['bill_month'] = self.bill_month
  150. if self.bill_no:
  151. if hasattr(self.bill_no, 'to_alipay_dict'):
  152. params['bill_no'] = self.bill_no.to_alipay_dict()
  153. else:
  154. params['bill_no'] = self.bill_no
  155. if self.bill_version:
  156. if hasattr(self.bill_version, 'to_alipay_dict'):
  157. params['bill_version'] = self.bill_version.to_alipay_dict()
  158. else:
  159. params['bill_version'] = self.bill_version
  160. if self.current_actual_service_charge:
  161. if hasattr(self.current_actual_service_charge, 'to_alipay_dict'):
  162. params['current_actual_service_charge'] = self.current_actual_service_charge.to_alipay_dict()
  163. else:
  164. params['current_actual_service_charge'] = self.current_actual_service_charge
  165. if self.current_expect_service_charge:
  166. if hasattr(self.current_expect_service_charge, 'to_alipay_dict'):
  167. params['current_expect_service_charge'] = self.current_expect_service_charge.to_alipay_dict()
  168. else:
  169. params['current_expect_service_charge'] = self.current_expect_service_charge
  170. if self.current_user_task_count:
  171. if hasattr(self.current_user_task_count, 'to_alipay_dict'):
  172. params['current_user_task_count'] = self.current_user_task_count.to_alipay_dict()
  173. else:
  174. params['current_user_task_count'] = self.current_user_task_count
  175. if self.expect_service_charge:
  176. if hasattr(self.expect_service_charge, 'to_alipay_dict'):
  177. params['expect_service_charge'] = self.expect_service_charge.to_alipay_dict()
  178. else:
  179. params['expect_service_charge'] = self.expect_service_charge
  180. if self.expect_tax:
  181. if hasattr(self.expect_tax, 'to_alipay_dict'):
  182. params['expect_tax'] = self.expect_tax.to_alipay_dict()
  183. else:
  184. params['expect_tax'] = self.expect_tax
  185. if self.gmt_modified:
  186. if hasattr(self.gmt_modified, 'to_alipay_dict'):
  187. params['gmt_modified'] = self.gmt_modified.to_alipay_dict()
  188. else:
  189. params['gmt_modified'] = self.gmt_modified
  190. if self.gmt_pay:
  191. if hasattr(self.gmt_pay, 'to_alipay_dict'):
  192. params['gmt_pay'] = self.gmt_pay.to_alipay_dict()
  193. else:
  194. params['gmt_pay'] = self.gmt_pay
  195. if self.out_biz_no:
  196. if hasattr(self.out_biz_no, 'to_alipay_dict'):
  197. params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
  198. else:
  199. params['out_biz_no'] = self.out_biz_no
  200. if self.paid_charge_tax_include:
  201. if hasattr(self.paid_charge_tax_include, 'to_alipay_dict'):
  202. params['paid_charge_tax_include'] = self.paid_charge_tax_include.to_alipay_dict()
  203. else:
  204. params['paid_charge_tax_include'] = self.paid_charge_tax_include
  205. if self.paid_service_charge:
  206. if hasattr(self.paid_service_charge, 'to_alipay_dict'):
  207. params['paid_service_charge'] = self.paid_service_charge.to_alipay_dict()
  208. else:
  209. params['paid_service_charge'] = self.paid_service_charge
  210. if self.service_charge_serial_no:
  211. if hasattr(self.service_charge_serial_no, 'to_alipay_dict'):
  212. params['service_charge_serial_no'] = self.service_charge_serial_no.to_alipay_dict()
  213. else:
  214. params['service_charge_serial_no'] = self.service_charge_serial_no
  215. if self.to_pay_service_charge:
  216. if hasattr(self.to_pay_service_charge, 'to_alipay_dict'):
  217. params['to_pay_service_charge'] = self.to_pay_service_charge.to_alipay_dict()
  218. else:
  219. params['to_pay_service_charge'] = self.to_pay_service_charge
  220. if self.weike_user_id:
  221. if hasattr(self.weike_user_id, 'to_alipay_dict'):
  222. params['weike_user_id'] = self.weike_user_id.to_alipay_dict()
  223. else:
  224. params['weike_user_id'] = self.weike_user_id
  225. return params
  226. @staticmethod
  227. def from_alipay_dict(d):
  228. if not d:
  229. return None
  230. o = AlipayMerchantWeikeBillModifyModel()
  231. if 'actual_service_charge' in d:
  232. o.actual_service_charge = d['actual_service_charge']
  233. if 'alipay_trans_serial_no' in d:
  234. o.alipay_trans_serial_no = d['alipay_trans_serial_no']
  235. if 'bill_month' in d:
  236. o.bill_month = d['bill_month']
  237. if 'bill_no' in d:
  238. o.bill_no = d['bill_no']
  239. if 'bill_version' in d:
  240. o.bill_version = d['bill_version']
  241. if 'current_actual_service_charge' in d:
  242. o.current_actual_service_charge = d['current_actual_service_charge']
  243. if 'current_expect_service_charge' in d:
  244. o.current_expect_service_charge = d['current_expect_service_charge']
  245. if 'current_user_task_count' in d:
  246. o.current_user_task_count = d['current_user_task_count']
  247. if 'expect_service_charge' in d:
  248. o.expect_service_charge = d['expect_service_charge']
  249. if 'expect_tax' in d:
  250. o.expect_tax = d['expect_tax']
  251. if 'gmt_modified' in d:
  252. o.gmt_modified = d['gmt_modified']
  253. if 'gmt_pay' in d:
  254. o.gmt_pay = d['gmt_pay']
  255. if 'out_biz_no' in d:
  256. o.out_biz_no = d['out_biz_no']
  257. if 'paid_charge_tax_include' in d:
  258. o.paid_charge_tax_include = d['paid_charge_tax_include']
  259. if 'paid_service_charge' in d:
  260. o.paid_service_charge = d['paid_service_charge']
  261. if 'service_charge_serial_no' in d:
  262. o.service_charge_serial_no = d['service_charge_serial_no']
  263. if 'to_pay_service_charge' in d:
  264. o.to_pay_service_charge = d['to_pay_service_charge']
  265. if 'weike_user_id' in d:
  266. o.weike_user_id = d['weike_user_id']
  267. return o