123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipaySecurityRiskCustomerriskrankGetModel(object):
- def __init__(self):
- self._card_no = None
- self._card_type = None
- self._mobile = None
- self._scene_id = None
- self._user_id = None
- @property
- def card_no(self):
- return self._card_no
- @card_no.setter
- def card_no(self, value):
- self._card_no = value
- @property
- def card_type(self):
- return self._card_type
- @card_type.setter
- def card_type(self, value):
- self._card_type = value
- @property
- def mobile(self):
- return self._mobile
- @mobile.setter
- def mobile(self, value):
- self._mobile = value
- @property
- def scene_id(self):
- return self._scene_id
- @scene_id.setter
- def scene_id(self, value):
- self._scene_id = value
- @property
- def user_id(self):
- return self._user_id
- @user_id.setter
- def user_id(self, value):
- self._user_id = value
- def to_alipay_dict(self):
- params = dict()
- 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.card_type:
- if hasattr(self.card_type, 'to_alipay_dict'):
- params['card_type'] = self.card_type.to_alipay_dict()
- else:
- params['card_type'] = self.card_type
- if self.mobile:
- if hasattr(self.mobile, 'to_alipay_dict'):
- params['mobile'] = self.mobile.to_alipay_dict()
- else:
- params['mobile'] = self.mobile
- if self.scene_id:
- if hasattr(self.scene_id, 'to_alipay_dict'):
- params['scene_id'] = self.scene_id.to_alipay_dict()
- else:
- params['scene_id'] = self.scene_id
- if self.user_id:
- if hasattr(self.user_id, 'to_alipay_dict'):
- params['user_id'] = self.user_id.to_alipay_dict()
- else:
- params['user_id'] = self.user_id
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipaySecurityRiskCustomerriskrankGetModel()
- if 'card_no' in d:
- o.card_no = d['card_no']
- if 'card_type' in d:
- o.card_type = d['card_type']
- if 'mobile' in d:
- o.mobile = d['mobile']
- if 'scene_id' in d:
- o.scene_id = d['scene_id']
- if 'user_id' in d:
- o.user_id = d['user_id']
- return o
|