123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class ZhimaCreditPeUserRiskConsultModel(object):
- def __init__(self):
- self._apply_amount = None
- self._biz_action = None
- self._category_code = None
- self._credit_scene = None
- self._ext = None
- self._out_order_no = None
- self._product_code = None
- self._risk_info = None
- @property
- def apply_amount(self):
- return self._apply_amount
- @apply_amount.setter
- def apply_amount(self, value):
- self._apply_amount = value
- @property
- def biz_action(self):
- return self._biz_action
- @biz_action.setter
- def biz_action(self, value):
- self._biz_action = value
- @property
- def category_code(self):
- return self._category_code
- @category_code.setter
- def category_code(self, value):
- self._category_code = value
- @property
- def credit_scene(self):
- return self._credit_scene
- @credit_scene.setter
- def credit_scene(self, value):
- self._credit_scene = value
- @property
- def ext(self):
- return self._ext
- @ext.setter
- def ext(self, value):
- self._ext = value
- @property
- def out_order_no(self):
- return self._out_order_no
- @out_order_no.setter
- def out_order_no(self, value):
- self._out_order_no = value
- @property
- def product_code(self):
- return self._product_code
- @product_code.setter
- def product_code(self, value):
- self._product_code = value
- @property
- def risk_info(self):
- return self._risk_info
- @risk_info.setter
- def risk_info(self, value):
- self._risk_info = value
- def to_alipay_dict(self):
- params = dict()
- if self.apply_amount:
- if hasattr(self.apply_amount, 'to_alipay_dict'):
- params['apply_amount'] = self.apply_amount.to_alipay_dict()
- else:
- params['apply_amount'] = self.apply_amount
- if self.biz_action:
- if hasattr(self.biz_action, 'to_alipay_dict'):
- params['biz_action'] = self.biz_action.to_alipay_dict()
- else:
- params['biz_action'] = self.biz_action
- if self.category_code:
- if hasattr(self.category_code, 'to_alipay_dict'):
- params['category_code'] = self.category_code.to_alipay_dict()
- else:
- params['category_code'] = self.category_code
- if self.credit_scene:
- if hasattr(self.credit_scene, 'to_alipay_dict'):
- params['credit_scene'] = self.credit_scene.to_alipay_dict()
- else:
- params['credit_scene'] = self.credit_scene
- if self.ext:
- if hasattr(self.ext, 'to_alipay_dict'):
- params['ext'] = self.ext.to_alipay_dict()
- else:
- params['ext'] = self.ext
- if self.out_order_no:
- if hasattr(self.out_order_no, 'to_alipay_dict'):
- params['out_order_no'] = self.out_order_no.to_alipay_dict()
- else:
- params['out_order_no'] = self.out_order_no
- if self.product_code:
- if hasattr(self.product_code, 'to_alipay_dict'):
- params['product_code'] = self.product_code.to_alipay_dict()
- else:
- params['product_code'] = self.product_code
- if self.risk_info:
- if hasattr(self.risk_info, 'to_alipay_dict'):
- params['risk_info'] = self.risk_info.to_alipay_dict()
- else:
- params['risk_info'] = self.risk_info
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = ZhimaCreditPeUserRiskConsultModel()
- if 'apply_amount' in d:
- o.apply_amount = d['apply_amount']
- if 'biz_action' in d:
- o.biz_action = d['biz_action']
- if 'category_code' in d:
- o.category_code = d['category_code']
- if 'credit_scene' in d:
- o.credit_scene = d['credit_scene']
- if 'ext' in d:
- o.ext = d['ext']
- if 'out_order_no' in d:
- o.out_order_no = d['out_order_no']
- if 'product_code' in d:
- o.product_code = d['product_code']
- if 'risk_info' in d:
- o.risk_info = d['risk_info']
- return o
|