AccountLogItemResult.py 7.3 KB

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