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 AlipayFundTransGroupfundsPayauthConsultModel(object):
def __init__(self):
self._current_user_id = None
self._ext_param = None
self._fund_type = None
self._source = None
@property
def current_user_id(self):
return self._current_user_id
@current_user_id.setter
def current_user_id(self, value):
self._current_user_id = value
@property
def ext_param(self):
return self._ext_param
@ext_param.setter
def ext_param(self, value):
self._ext_param = value
@property
def fund_type(self):
return self._fund_type
@fund_type.setter
def fund_type(self, value):
self._fund_type = value
@property
def source(self):
return self._source
@source.setter
def source(self, value):
self._source = value
def to_alipay_dict(self):
params = dict()
if self.current_user_id:
if hasattr(self.current_user_id, 'to_alipay_dict'):
params['current_user_id'] = self.current_user_id.to_alipay_dict()
else:
params['current_user_id'] = self.current_user_id
if self.ext_param:
if hasattr(self.ext_param, 'to_alipay_dict'):
params['ext_param'] = self.ext_param.to_alipay_dict()
else:
params['ext_param'] = self.ext_param
if self.fund_type:
if hasattr(self.fund_type, 'to_alipay_dict'):
params['fund_type'] = self.fund_type.to_alipay_dict()
else:
params['fund_type'] = self.fund_type
if self.source:
if hasattr(self.source, 'to_alipay_dict'):
params['source'] = self.source.to_alipay_dict()
else:
params['source'] = self.source
return params
@staticmethod
def from_alipay_dict(d):
if not d:
return None
o = AlipayFundTransGroupfundsPayauthConsultModel()
if 'current_user_id' in d:
o.current_user_id = d['current_user_id']
if 'ext_param' in d:
o.ext_param = d['ext_param']
if 'fund_type' in d:
o.fund_type = d['fund_type']
if 'source' in d:
o.source = d['source']
return o