AlipayMerchantWeikeBilltaxModifyModel.py 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayMerchantWeikeBilltaxModifyModel(object):
  6. def __init__(self):
  7. self._actual_tax = 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._expect_tax = None
  13. self._gmt_modified = None
  14. self._out_biz_no = None
  15. self._tax_rebate = None
  16. self._tax_rebate_gmt_pay = None
  17. self._tax_rebate_serial_no = None
  18. self._weike_user_id = None
  19. @property
  20. def actual_tax(self):
  21. return self._actual_tax
  22. @actual_tax.setter
  23. def actual_tax(self, value):
  24. self._actual_tax = value
  25. @property
  26. def alipay_trans_serial_no(self):
  27. return self._alipay_trans_serial_no
  28. @alipay_trans_serial_no.setter
  29. def alipay_trans_serial_no(self, value):
  30. self._alipay_trans_serial_no = value
  31. @property
  32. def bill_month(self):
  33. return self._bill_month
  34. @bill_month.setter
  35. def bill_month(self, value):
  36. self._bill_month = value
  37. @property
  38. def bill_no(self):
  39. return self._bill_no
  40. @bill_no.setter
  41. def bill_no(self, value):
  42. self._bill_no = value
  43. @property
  44. def bill_version(self):
  45. return self._bill_version
  46. @bill_version.setter
  47. def bill_version(self, value):
  48. self._bill_version = value
  49. @property
  50. def expect_tax(self):
  51. return self._expect_tax
  52. @expect_tax.setter
  53. def expect_tax(self, value):
  54. self._expect_tax = value
  55. @property
  56. def gmt_modified(self):
  57. return self._gmt_modified
  58. @gmt_modified.setter
  59. def gmt_modified(self, value):
  60. self._gmt_modified = value
  61. @property
  62. def out_biz_no(self):
  63. return self._out_biz_no
  64. @out_biz_no.setter
  65. def out_biz_no(self, value):
  66. self._out_biz_no = value
  67. @property
  68. def tax_rebate(self):
  69. return self._tax_rebate
  70. @tax_rebate.setter
  71. def tax_rebate(self, value):
  72. self._tax_rebate = value
  73. @property
  74. def tax_rebate_gmt_pay(self):
  75. return self._tax_rebate_gmt_pay
  76. @tax_rebate_gmt_pay.setter
  77. def tax_rebate_gmt_pay(self, value):
  78. self._tax_rebate_gmt_pay = value
  79. @property
  80. def tax_rebate_serial_no(self):
  81. return self._tax_rebate_serial_no
  82. @tax_rebate_serial_no.setter
  83. def tax_rebate_serial_no(self, value):
  84. self._tax_rebate_serial_no = value
  85. @property
  86. def weike_user_id(self):
  87. return self._weike_user_id
  88. @weike_user_id.setter
  89. def weike_user_id(self, value):
  90. self._weike_user_id = value
  91. def to_alipay_dict(self):
  92. params = dict()
  93. if self.actual_tax:
  94. if hasattr(self.actual_tax, 'to_alipay_dict'):
  95. params['actual_tax'] = self.actual_tax.to_alipay_dict()
  96. else:
  97. params['actual_tax'] = self.actual_tax
  98. if self.alipay_trans_serial_no:
  99. if hasattr(self.alipay_trans_serial_no, 'to_alipay_dict'):
  100. params['alipay_trans_serial_no'] = self.alipay_trans_serial_no.to_alipay_dict()
  101. else:
  102. params['alipay_trans_serial_no'] = self.alipay_trans_serial_no
  103. if self.bill_month:
  104. if hasattr(self.bill_month, 'to_alipay_dict'):
  105. params['bill_month'] = self.bill_month.to_alipay_dict()
  106. else:
  107. params['bill_month'] = self.bill_month
  108. if self.bill_no:
  109. if hasattr(self.bill_no, 'to_alipay_dict'):
  110. params['bill_no'] = self.bill_no.to_alipay_dict()
  111. else:
  112. params['bill_no'] = self.bill_no
  113. if self.bill_version:
  114. if hasattr(self.bill_version, 'to_alipay_dict'):
  115. params['bill_version'] = self.bill_version.to_alipay_dict()
  116. else:
  117. params['bill_version'] = self.bill_version
  118. if self.expect_tax:
  119. if hasattr(self.expect_tax, 'to_alipay_dict'):
  120. params['expect_tax'] = self.expect_tax.to_alipay_dict()
  121. else:
  122. params['expect_tax'] = self.expect_tax
  123. if self.gmt_modified:
  124. if hasattr(self.gmt_modified, 'to_alipay_dict'):
  125. params['gmt_modified'] = self.gmt_modified.to_alipay_dict()
  126. else:
  127. params['gmt_modified'] = self.gmt_modified
  128. if self.out_biz_no:
  129. if hasattr(self.out_biz_no, 'to_alipay_dict'):
  130. params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
  131. else:
  132. params['out_biz_no'] = self.out_biz_no
  133. if self.tax_rebate:
  134. if hasattr(self.tax_rebate, 'to_alipay_dict'):
  135. params['tax_rebate'] = self.tax_rebate.to_alipay_dict()
  136. else:
  137. params['tax_rebate'] = self.tax_rebate
  138. if self.tax_rebate_gmt_pay:
  139. if hasattr(self.tax_rebate_gmt_pay, 'to_alipay_dict'):
  140. params['tax_rebate_gmt_pay'] = self.tax_rebate_gmt_pay.to_alipay_dict()
  141. else:
  142. params['tax_rebate_gmt_pay'] = self.tax_rebate_gmt_pay
  143. if self.tax_rebate_serial_no:
  144. if hasattr(self.tax_rebate_serial_no, 'to_alipay_dict'):
  145. params['tax_rebate_serial_no'] = self.tax_rebate_serial_no.to_alipay_dict()
  146. else:
  147. params['tax_rebate_serial_no'] = self.tax_rebate_serial_no
  148. if self.weike_user_id:
  149. if hasattr(self.weike_user_id, 'to_alipay_dict'):
  150. params['weike_user_id'] = self.weike_user_id.to_alipay_dict()
  151. else:
  152. params['weike_user_id'] = self.weike_user_id
  153. return params
  154. @staticmethod
  155. def from_alipay_dict(d):
  156. if not d:
  157. return None
  158. o = AlipayMerchantWeikeBilltaxModifyModel()
  159. if 'actual_tax' in d:
  160. o.actual_tax = d['actual_tax']
  161. if 'alipay_trans_serial_no' in d:
  162. o.alipay_trans_serial_no = d['alipay_trans_serial_no']
  163. if 'bill_month' in d:
  164. o.bill_month = d['bill_month']
  165. if 'bill_no' in d:
  166. o.bill_no = d['bill_no']
  167. if 'bill_version' in d:
  168. o.bill_version = d['bill_version']
  169. if 'expect_tax' in d:
  170. o.expect_tax = d['expect_tax']
  171. if 'gmt_modified' in d:
  172. o.gmt_modified = d['gmt_modified']
  173. if 'out_biz_no' in d:
  174. o.out_biz_no = d['out_biz_no']
  175. if 'tax_rebate' in d:
  176. o.tax_rebate = d['tax_rebate']
  177. if 'tax_rebate_gmt_pay' in d:
  178. o.tax_rebate_gmt_pay = d['tax_rebate_gmt_pay']
  179. if 'tax_rebate_serial_no' in d:
  180. o.tax_rebate_serial_no = d['tax_rebate_serial_no']
  181. if 'weike_user_id' in d:
  182. o.weike_user_id = d['weike_user_id']
  183. return o