123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class TrusteeshipAccountBillQueryResponse(object):
- def __init__(self):
- self._account_date = None
- self._action = None
- self._amount = None
- self._balance = None
- self._currency = None
- self._id = None
- self._memo = None
- self._trans_dt = None
- self._uid = None
- @property
- def account_date(self):
- return self._account_date
- @account_date.setter
- def account_date(self, value):
- self._account_date = value
- @property
- def action(self):
- return self._action
- @action.setter
- def action(self, value):
- self._action = value
- @property
- def amount(self):
- return self._amount
- @amount.setter
- def amount(self, value):
- self._amount = value
- @property
- def balance(self):
- return self._balance
- @balance.setter
- def balance(self, value):
- self._balance = value
- @property
- def currency(self):
- return self._currency
- @currency.setter
- def currency(self, value):
- self._currency = value
- @property
- def id(self):
- return self._id
- @id.setter
- def id(self, value):
- self._id = value
- @property
- def memo(self):
- return self._memo
- @memo.setter
- def memo(self, value):
- self._memo = value
- @property
- def trans_dt(self):
- return self._trans_dt
- @trans_dt.setter
- def trans_dt(self, value):
- self._trans_dt = value
- @property
- def uid(self):
- return self._uid
- @uid.setter
- def uid(self, value):
- self._uid = value
- def to_alipay_dict(self):
- params = dict()
- if self.account_date:
- if hasattr(self.account_date, 'to_alipay_dict'):
- params['account_date'] = self.account_date.to_alipay_dict()
- else:
- params['account_date'] = self.account_date
- if self.action:
- if hasattr(self.action, 'to_alipay_dict'):
- params['action'] = self.action.to_alipay_dict()
- else:
- params['action'] = self.action
- if self.amount:
- if hasattr(self.amount, 'to_alipay_dict'):
- params['amount'] = self.amount.to_alipay_dict()
- else:
- params['amount'] = self.amount
- if self.balance:
- if hasattr(self.balance, 'to_alipay_dict'):
- params['balance'] = self.balance.to_alipay_dict()
- else:
- params['balance'] = self.balance
- if self.currency:
- if hasattr(self.currency, 'to_alipay_dict'):
- params['currency'] = self.currency.to_alipay_dict()
- else:
- params['currency'] = self.currency
- if self.id:
- if hasattr(self.id, 'to_alipay_dict'):
- params['id'] = self.id.to_alipay_dict()
- else:
- params['id'] = self.id
- if self.memo:
- if hasattr(self.memo, 'to_alipay_dict'):
- params['memo'] = self.memo.to_alipay_dict()
- else:
- params['memo'] = self.memo
- if self.trans_dt:
- if hasattr(self.trans_dt, 'to_alipay_dict'):
- params['trans_dt'] = self.trans_dt.to_alipay_dict()
- else:
- params['trans_dt'] = self.trans_dt
- if self.uid:
- if hasattr(self.uid, 'to_alipay_dict'):
- params['uid'] = self.uid.to_alipay_dict()
- else:
- params['uid'] = self.uid
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = TrusteeshipAccountBillQueryResponse()
- if 'account_date' in d:
- o.account_date = d['account_date']
- if 'action' in d:
- o.action = d['action']
- if 'amount' in d:
- o.amount = d['amount']
- if 'balance' in d:
- o.balance = d['balance']
- if 'currency' in d:
- o.currency = d['currency']
- if 'id' in d:
- o.id = d['id']
- if 'memo' in d:
- o.memo = d['memo']
- if 'trans_dt' in d:
- o.trans_dt = d['trans_dt']
- if 'uid' in d:
- o.uid = d['uid']
- return o
|