123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class EduOneCardBalanceQueryResult(object):
- def __init__(self):
- self._agent_code = None
- self._balance = None
- self._card_name = None
- self._card_no = None
- self._last_update_time = None
- self._pound_amount = None
- @property
- def agent_code(self):
- return self._agent_code
- @agent_code.setter
- def agent_code(self, value):
- self._agent_code = value
- @property
- def balance(self):
- return self._balance
- @balance.setter
- def balance(self, value):
- self._balance = value
- @property
- def card_name(self):
- return self._card_name
- @card_name.setter
- def card_name(self, value):
- self._card_name = value
- @property
- def card_no(self):
- return self._card_no
- @card_no.setter
- def card_no(self, value):
- self._card_no = value
- @property
- def last_update_time(self):
- return self._last_update_time
- @last_update_time.setter
- def last_update_time(self, value):
- self._last_update_time = value
- @property
- def pound_amount(self):
- return self._pound_amount
- @pound_amount.setter
- def pound_amount(self, value):
- self._pound_amount = value
- def to_alipay_dict(self):
- params = dict()
- if self.agent_code:
- if hasattr(self.agent_code, 'to_alipay_dict'):
- params['agent_code'] = self.agent_code.to_alipay_dict()
- else:
- params['agent_code'] = self.agent_code
- if self.balance:
- if hasattr(self.balance, 'to_alipay_dict'):
- params['balance'] = self.balance.to_alipay_dict()
- else:
- params['balance'] = self.balance
- if self.card_name:
- if hasattr(self.card_name, 'to_alipay_dict'):
- params['card_name'] = self.card_name.to_alipay_dict()
- else:
- params['card_name'] = self.card_name
- if self.card_no:
- if hasattr(self.card_no, 'to_alipay_dict'):
- params['card_no'] = self.card_no.to_alipay_dict()
- else:
- params['card_no'] = self.card_no
- if self.last_update_time:
- if hasattr(self.last_update_time, 'to_alipay_dict'):
- params['last_update_time'] = self.last_update_time.to_alipay_dict()
- else:
- params['last_update_time'] = self.last_update_time
- if self.pound_amount:
- if hasattr(self.pound_amount, 'to_alipay_dict'):
- params['pound_amount'] = self.pound_amount.to_alipay_dict()
- else:
- params['pound_amount'] = self.pound_amount
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = EduOneCardBalanceQueryResult()
- if 'agent_code' in d:
- o.agent_code = d['agent_code']
- if 'balance' in d:
- o.balance = d['balance']
- if 'card_name' in d:
- o.card_name = d['card_name']
- if 'card_no' in d:
- o.card_no = d['card_no']
- if 'last_update_time' in d:
- o.last_update_time = d['last_update_time']
- if 'pound_amount' in d:
- o.pound_amount = d['pound_amount']
- return o
|