123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayOpenOperationBizfeeAftechCancelModel(object):
- def __init__(self):
- self._app_name = None
- self._gmt_service = None
- self._order_no = None
- self._out_biz_no = None
- self._tnt_inst_id = None
- @property
- def app_name(self):
- return self._app_name
- @app_name.setter
- def app_name(self, value):
- self._app_name = value
- @property
- def gmt_service(self):
- return self._gmt_service
- @gmt_service.setter
- def gmt_service(self, value):
- self._gmt_service = value
- @property
- def order_no(self):
- return self._order_no
- @order_no.setter
- def order_no(self, value):
- self._order_no = value
- @property
- def out_biz_no(self):
- return self._out_biz_no
- @out_biz_no.setter
- def out_biz_no(self, value):
- self._out_biz_no = value
- @property
- def tnt_inst_id(self):
- return self._tnt_inst_id
- @tnt_inst_id.setter
- def tnt_inst_id(self, value):
- self._tnt_inst_id = value
- def to_alipay_dict(self):
- params = dict()
- if self.app_name:
- if hasattr(self.app_name, 'to_alipay_dict'):
- params['app_name'] = self.app_name.to_alipay_dict()
- else:
- params['app_name'] = self.app_name
- if self.gmt_service:
- if hasattr(self.gmt_service, 'to_alipay_dict'):
- params['gmt_service'] = self.gmt_service.to_alipay_dict()
- else:
- params['gmt_service'] = self.gmt_service
- if self.order_no:
- if hasattr(self.order_no, 'to_alipay_dict'):
- params['order_no'] = self.order_no.to_alipay_dict()
- else:
- params['order_no'] = self.order_no
- if self.out_biz_no:
- if hasattr(self.out_biz_no, 'to_alipay_dict'):
- params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
- else:
- params['out_biz_no'] = self.out_biz_no
- if self.tnt_inst_id:
- if hasattr(self.tnt_inst_id, 'to_alipay_dict'):
- params['tnt_inst_id'] = self.tnt_inst_id.to_alipay_dict()
- else:
- params['tnt_inst_id'] = self.tnt_inst_id
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayOpenOperationBizfeeAftechCancelModel()
- if 'app_name' in d:
- o.app_name = d['app_name']
- if 'gmt_service' in d:
- o.gmt_service = d['gmt_service']
- if 'order_no' in d:
- o.order_no = d['order_no']
- if 'out_biz_no' in d:
- o.out_biz_no = d['out_biz_no']
- if 'tnt_inst_id' in d:
- o.tnt_inst_id = d['tnt_inst_id']
- return o
|