TrusteeshipAccountBillQueryResponse.py 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class TrusteeshipAccountBillQueryResponse(object):
  6. def __init__(self):
  7. self._account_date = None
  8. self._action = None
  9. self._amount = None
  10. self._balance = None
  11. self._currency = None
  12. self._id = None
  13. self._memo = None
  14. self._trans_dt = None
  15. self._uid = None
  16. @property
  17. def account_date(self):
  18. return self._account_date
  19. @account_date.setter
  20. def account_date(self, value):
  21. self._account_date = value
  22. @property
  23. def action(self):
  24. return self._action
  25. @action.setter
  26. def action(self, value):
  27. self._action = value
  28. @property
  29. def amount(self):
  30. return self._amount
  31. @amount.setter
  32. def amount(self, value):
  33. self._amount = value
  34. @property
  35. def balance(self):
  36. return self._balance
  37. @balance.setter
  38. def balance(self, value):
  39. self._balance = value
  40. @property
  41. def currency(self):
  42. return self._currency
  43. @currency.setter
  44. def currency(self, value):
  45. self._currency = value
  46. @property
  47. def id(self):
  48. return self._id
  49. @id.setter
  50. def id(self, value):
  51. self._id = value
  52. @property
  53. def memo(self):
  54. return self._memo
  55. @memo.setter
  56. def memo(self, value):
  57. self._memo = value
  58. @property
  59. def trans_dt(self):
  60. return self._trans_dt
  61. @trans_dt.setter
  62. def trans_dt(self, value):
  63. self._trans_dt = value
  64. @property
  65. def uid(self):
  66. return self._uid
  67. @uid.setter
  68. def uid(self, value):
  69. self._uid = value
  70. def to_alipay_dict(self):
  71. params = dict()
  72. if self.account_date:
  73. if hasattr(self.account_date, 'to_alipay_dict'):
  74. params['account_date'] = self.account_date.to_alipay_dict()
  75. else:
  76. params['account_date'] = self.account_date
  77. if self.action:
  78. if hasattr(self.action, 'to_alipay_dict'):
  79. params['action'] = self.action.to_alipay_dict()
  80. else:
  81. params['action'] = self.action
  82. if self.amount:
  83. if hasattr(self.amount, 'to_alipay_dict'):
  84. params['amount'] = self.amount.to_alipay_dict()
  85. else:
  86. params['amount'] = self.amount
  87. if self.balance:
  88. if hasattr(self.balance, 'to_alipay_dict'):
  89. params['balance'] = self.balance.to_alipay_dict()
  90. else:
  91. params['balance'] = self.balance
  92. if self.currency:
  93. if hasattr(self.currency, 'to_alipay_dict'):
  94. params['currency'] = self.currency.to_alipay_dict()
  95. else:
  96. params['currency'] = self.currency
  97. if self.id:
  98. if hasattr(self.id, 'to_alipay_dict'):
  99. params['id'] = self.id.to_alipay_dict()
  100. else:
  101. params['id'] = self.id
  102. if self.memo:
  103. if hasattr(self.memo, 'to_alipay_dict'):
  104. params['memo'] = self.memo.to_alipay_dict()
  105. else:
  106. params['memo'] = self.memo
  107. if self.trans_dt:
  108. if hasattr(self.trans_dt, 'to_alipay_dict'):
  109. params['trans_dt'] = self.trans_dt.to_alipay_dict()
  110. else:
  111. params['trans_dt'] = self.trans_dt
  112. if self.uid:
  113. if hasattr(self.uid, 'to_alipay_dict'):
  114. params['uid'] = self.uid.to_alipay_dict()
  115. else:
  116. params['uid'] = self.uid
  117. return params
  118. @staticmethod
  119. def from_alipay_dict(d):
  120. if not d:
  121. return None
  122. o = TrusteeshipAccountBillQueryResponse()
  123. if 'account_date' in d:
  124. o.account_date = d['account_date']
  125. if 'action' in d:
  126. o.action = d['action']
  127. if 'amount' in d:
  128. o.amount = d['amount']
  129. if 'balance' in d:
  130. o.balance = d['balance']
  131. if 'currency' in d:
  132. o.currency = d['currency']
  133. if 'id' in d:
  134. o.id = d['id']
  135. if 'memo' in d:
  136. o.memo = d['memo']
  137. if 'trans_dt' in d:
  138. o.trans_dt = d['trans_dt']
  139. if 'uid' in d:
  140. o.uid = d['uid']
  141. return o