Repository URL to install this package:
|
Version:
3.3.202-c2ee258 ▾
|
#!/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