SceneProdPaymentAccountInfo.py 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class SceneProdPaymentAccountInfo(object):
  6. def __init__(self):
  7. self._account_ext_no = None
  8. self._account_fip_code = None
  9. self._account_fip_name = None
  10. self._account_no = None
  11. self._account_type = None
  12. self._amt = None
  13. self._bank_card_category = None
  14. self._card_holder_name = None
  15. self._ext_card_type = None
  16. self._ext_info = None
  17. self._inst_out_code = None
  18. self._ip_id = None
  19. self._ip_role_id = None
  20. self._payment_mark = None
  21. @property
  22. def account_ext_no(self):
  23. return self._account_ext_no
  24. @account_ext_no.setter
  25. def account_ext_no(self, value):
  26. self._account_ext_no = value
  27. @property
  28. def account_fip_code(self):
  29. return self._account_fip_code
  30. @account_fip_code.setter
  31. def account_fip_code(self, value):
  32. self._account_fip_code = value
  33. @property
  34. def account_fip_name(self):
  35. return self._account_fip_name
  36. @account_fip_name.setter
  37. def account_fip_name(self, value):
  38. self._account_fip_name = value
  39. @property
  40. def account_no(self):
  41. return self._account_no
  42. @account_no.setter
  43. def account_no(self, value):
  44. self._account_no = value
  45. @property
  46. def account_type(self):
  47. return self._account_type
  48. @account_type.setter
  49. def account_type(self, value):
  50. self._account_type = value
  51. @property
  52. def amt(self):
  53. return self._amt
  54. @amt.setter
  55. def amt(self, value):
  56. self._amt = value
  57. @property
  58. def bank_card_category(self):
  59. return self._bank_card_category
  60. @bank_card_category.setter
  61. def bank_card_category(self, value):
  62. self._bank_card_category = value
  63. @property
  64. def card_holder_name(self):
  65. return self._card_holder_name
  66. @card_holder_name.setter
  67. def card_holder_name(self, value):
  68. self._card_holder_name = value
  69. @property
  70. def ext_card_type(self):
  71. return self._ext_card_type
  72. @ext_card_type.setter
  73. def ext_card_type(self, value):
  74. self._ext_card_type = value
  75. @property
  76. def ext_info(self):
  77. return self._ext_info
  78. @ext_info.setter
  79. def ext_info(self, value):
  80. self._ext_info = value
  81. @property
  82. def inst_out_code(self):
  83. return self._inst_out_code
  84. @inst_out_code.setter
  85. def inst_out_code(self, value):
  86. self._inst_out_code = value
  87. @property
  88. def ip_id(self):
  89. return self._ip_id
  90. @ip_id.setter
  91. def ip_id(self, value):
  92. self._ip_id = value
  93. @property
  94. def ip_role_id(self):
  95. return self._ip_role_id
  96. @ip_role_id.setter
  97. def ip_role_id(self, value):
  98. self._ip_role_id = value
  99. @property
  100. def payment_mark(self):
  101. return self._payment_mark
  102. @payment_mark.setter
  103. def payment_mark(self, value):
  104. self._payment_mark = value
  105. def to_alipay_dict(self):
  106. params = dict()
  107. if self.account_ext_no:
  108. if hasattr(self.account_ext_no, 'to_alipay_dict'):
  109. params['account_ext_no'] = self.account_ext_no.to_alipay_dict()
  110. else:
  111. params['account_ext_no'] = self.account_ext_no
  112. if self.account_fip_code:
  113. if hasattr(self.account_fip_code, 'to_alipay_dict'):
  114. params['account_fip_code'] = self.account_fip_code.to_alipay_dict()
  115. else:
  116. params['account_fip_code'] = self.account_fip_code
  117. if self.account_fip_name:
  118. if hasattr(self.account_fip_name, 'to_alipay_dict'):
  119. params['account_fip_name'] = self.account_fip_name.to_alipay_dict()
  120. else:
  121. params['account_fip_name'] = self.account_fip_name
  122. if self.account_no:
  123. if hasattr(self.account_no, 'to_alipay_dict'):
  124. params['account_no'] = self.account_no.to_alipay_dict()
  125. else:
  126. params['account_no'] = self.account_no
  127. if self.account_type:
  128. if hasattr(self.account_type, 'to_alipay_dict'):
  129. params['account_type'] = self.account_type.to_alipay_dict()
  130. else:
  131. params['account_type'] = self.account_type
  132. if self.amt:
  133. if hasattr(self.amt, 'to_alipay_dict'):
  134. params['amt'] = self.amt.to_alipay_dict()
  135. else:
  136. params['amt'] = self.amt
  137. if self.bank_card_category:
  138. if hasattr(self.bank_card_category, 'to_alipay_dict'):
  139. params['bank_card_category'] = self.bank_card_category.to_alipay_dict()
  140. else:
  141. params['bank_card_category'] = self.bank_card_category
  142. if self.card_holder_name:
  143. if hasattr(self.card_holder_name, 'to_alipay_dict'):
  144. params['card_holder_name'] = self.card_holder_name.to_alipay_dict()
  145. else:
  146. params['card_holder_name'] = self.card_holder_name
  147. if self.ext_card_type:
  148. if hasattr(self.ext_card_type, 'to_alipay_dict'):
  149. params['ext_card_type'] = self.ext_card_type.to_alipay_dict()
  150. else:
  151. params['ext_card_type'] = self.ext_card_type
  152. if self.ext_info:
  153. if hasattr(self.ext_info, 'to_alipay_dict'):
  154. params['ext_info'] = self.ext_info.to_alipay_dict()
  155. else:
  156. params['ext_info'] = self.ext_info
  157. if self.inst_out_code:
  158. if hasattr(self.inst_out_code, 'to_alipay_dict'):
  159. params['inst_out_code'] = self.inst_out_code.to_alipay_dict()
  160. else:
  161. params['inst_out_code'] = self.inst_out_code
  162. if self.ip_id:
  163. if hasattr(self.ip_id, 'to_alipay_dict'):
  164. params['ip_id'] = self.ip_id.to_alipay_dict()
  165. else:
  166. params['ip_id'] = self.ip_id
  167. if self.ip_role_id:
  168. if hasattr(self.ip_role_id, 'to_alipay_dict'):
  169. params['ip_role_id'] = self.ip_role_id.to_alipay_dict()
  170. else:
  171. params['ip_role_id'] = self.ip_role_id
  172. if self.payment_mark:
  173. if hasattr(self.payment_mark, 'to_alipay_dict'):
  174. params['payment_mark'] = self.payment_mark.to_alipay_dict()
  175. else:
  176. params['payment_mark'] = self.payment_mark
  177. return params
  178. @staticmethod
  179. def from_alipay_dict(d):
  180. if not d:
  181. return None
  182. o = SceneProdPaymentAccountInfo()
  183. if 'account_ext_no' in d:
  184. o.account_ext_no = d['account_ext_no']
  185. if 'account_fip_code' in d:
  186. o.account_fip_code = d['account_fip_code']
  187. if 'account_fip_name' in d:
  188. o.account_fip_name = d['account_fip_name']
  189. if 'account_no' in d:
  190. o.account_no = d['account_no']
  191. if 'account_type' in d:
  192. o.account_type = d['account_type']
  193. if 'amt' in d:
  194. o.amt = d['amt']
  195. if 'bank_card_category' in d:
  196. o.bank_card_category = d['bank_card_category']
  197. if 'card_holder_name' in d:
  198. o.card_holder_name = d['card_holder_name']
  199. if 'ext_card_type' in d:
  200. o.ext_card_type = d['ext_card_type']
  201. if 'ext_info' in d:
  202. o.ext_info = d['ext_info']
  203. if 'inst_out_code' in d:
  204. o.inst_out_code = d['inst_out_code']
  205. if 'ip_id' in d:
  206. o.ip_id = d['ip_id']
  207. if 'ip_role_id' in d:
  208. o.ip_role_id = d['ip_role_id']
  209. if 'payment_mark' in d:
  210. o.payment_mark = d['payment_mark']
  211. return o