AlipayEbppFacepayBillPayModel.py 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEbppFacepayBillPayModel(object):
  6. def __init__(self):
  7. self._bill_date = None
  8. self._bill_key = None
  9. self._biz_type = None
  10. self._charge_inst = None
  11. self._extend_field = None
  12. self._fine_amount = None
  13. self._inst_no = None
  14. self._out_order_no = None
  15. self._pay_amount = None
  16. self._pid = None
  17. self._sub_biz_type = None
  18. self._user_identity_code = None
  19. @property
  20. def bill_date(self):
  21. return self._bill_date
  22. @bill_date.setter
  23. def bill_date(self, value):
  24. self._bill_date = value
  25. @property
  26. def bill_key(self):
  27. return self._bill_key
  28. @bill_key.setter
  29. def bill_key(self, value):
  30. self._bill_key = value
  31. @property
  32. def biz_type(self):
  33. return self._biz_type
  34. @biz_type.setter
  35. def biz_type(self, value):
  36. self._biz_type = value
  37. @property
  38. def charge_inst(self):
  39. return self._charge_inst
  40. @charge_inst.setter
  41. def charge_inst(self, value):
  42. self._charge_inst = value
  43. @property
  44. def extend_field(self):
  45. return self._extend_field
  46. @extend_field.setter
  47. def extend_field(self, value):
  48. self._extend_field = value
  49. @property
  50. def fine_amount(self):
  51. return self._fine_amount
  52. @fine_amount.setter
  53. def fine_amount(self, value):
  54. self._fine_amount = value
  55. @property
  56. def inst_no(self):
  57. return self._inst_no
  58. @inst_no.setter
  59. def inst_no(self, value):
  60. self._inst_no = value
  61. @property
  62. def out_order_no(self):
  63. return self._out_order_no
  64. @out_order_no.setter
  65. def out_order_no(self, value):
  66. self._out_order_no = value
  67. @property
  68. def pay_amount(self):
  69. return self._pay_amount
  70. @pay_amount.setter
  71. def pay_amount(self, value):
  72. self._pay_amount = value
  73. @property
  74. def pid(self):
  75. return self._pid
  76. @pid.setter
  77. def pid(self, value):
  78. self._pid = value
  79. @property
  80. def sub_biz_type(self):
  81. return self._sub_biz_type
  82. @sub_biz_type.setter
  83. def sub_biz_type(self, value):
  84. self._sub_biz_type = value
  85. @property
  86. def user_identity_code(self):
  87. return self._user_identity_code
  88. @user_identity_code.setter
  89. def user_identity_code(self, value):
  90. self._user_identity_code = value
  91. def to_alipay_dict(self):
  92. params = dict()
  93. if self.bill_date:
  94. if hasattr(self.bill_date, 'to_alipay_dict'):
  95. params['bill_date'] = self.bill_date.to_alipay_dict()
  96. else:
  97. params['bill_date'] = self.bill_date
  98. if self.bill_key:
  99. if hasattr(self.bill_key, 'to_alipay_dict'):
  100. params['bill_key'] = self.bill_key.to_alipay_dict()
  101. else:
  102. params['bill_key'] = self.bill_key
  103. if self.biz_type:
  104. if hasattr(self.biz_type, 'to_alipay_dict'):
  105. params['biz_type'] = self.biz_type.to_alipay_dict()
  106. else:
  107. params['biz_type'] = self.biz_type
  108. if self.charge_inst:
  109. if hasattr(self.charge_inst, 'to_alipay_dict'):
  110. params['charge_inst'] = self.charge_inst.to_alipay_dict()
  111. else:
  112. params['charge_inst'] = self.charge_inst
  113. if self.extend_field:
  114. if hasattr(self.extend_field, 'to_alipay_dict'):
  115. params['extend_field'] = self.extend_field.to_alipay_dict()
  116. else:
  117. params['extend_field'] = self.extend_field
  118. if self.fine_amount:
  119. if hasattr(self.fine_amount, 'to_alipay_dict'):
  120. params['fine_amount'] = self.fine_amount.to_alipay_dict()
  121. else:
  122. params['fine_amount'] = self.fine_amount
  123. if self.inst_no:
  124. if hasattr(self.inst_no, 'to_alipay_dict'):
  125. params['inst_no'] = self.inst_no.to_alipay_dict()
  126. else:
  127. params['inst_no'] = self.inst_no
  128. if self.out_order_no:
  129. if hasattr(self.out_order_no, 'to_alipay_dict'):
  130. params['out_order_no'] = self.out_order_no.to_alipay_dict()
  131. else:
  132. params['out_order_no'] = self.out_order_no
  133. if self.pay_amount:
  134. if hasattr(self.pay_amount, 'to_alipay_dict'):
  135. params['pay_amount'] = self.pay_amount.to_alipay_dict()
  136. else:
  137. params['pay_amount'] = self.pay_amount
  138. if self.pid:
  139. if hasattr(self.pid, 'to_alipay_dict'):
  140. params['pid'] = self.pid.to_alipay_dict()
  141. else:
  142. params['pid'] = self.pid
  143. if self.sub_biz_type:
  144. if hasattr(self.sub_biz_type, 'to_alipay_dict'):
  145. params['sub_biz_type'] = self.sub_biz_type.to_alipay_dict()
  146. else:
  147. params['sub_biz_type'] = self.sub_biz_type
  148. if self.user_identity_code:
  149. if hasattr(self.user_identity_code, 'to_alipay_dict'):
  150. params['user_identity_code'] = self.user_identity_code.to_alipay_dict()
  151. else:
  152. params['user_identity_code'] = self.user_identity_code
  153. return params
  154. @staticmethod
  155. def from_alipay_dict(d):
  156. if not d:
  157. return None
  158. o = AlipayEbppFacepayBillPayModel()
  159. if 'bill_date' in d:
  160. o.bill_date = d['bill_date']
  161. if 'bill_key' in d:
  162. o.bill_key = d['bill_key']
  163. if 'biz_type' in d:
  164. o.biz_type = d['biz_type']
  165. if 'charge_inst' in d:
  166. o.charge_inst = d['charge_inst']
  167. if 'extend_field' in d:
  168. o.extend_field = d['extend_field']
  169. if 'fine_amount' in d:
  170. o.fine_amount = d['fine_amount']
  171. if 'inst_no' in d:
  172. o.inst_no = d['inst_no']
  173. if 'out_order_no' in d:
  174. o.out_order_no = d['out_order_no']
  175. if 'pay_amount' in d:
  176. o.pay_amount = d['pay_amount']
  177. if 'pid' in d:
  178. o.pid = d['pid']
  179. if 'sub_biz_type' in d:
  180. o.sub_biz_type = d['sub_biz_type']
  181. if 'user_identity_code' in d:
  182. o.user_identity_code = d['user_identity_code']
  183. return o