123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayOpenOperationBizfeeActivityApplyModel(object):
- def __init__(self):
- self._activity_code = None
- self._amount = None
- self._gmt_service = None
- self._out_biz_no = None
- self._partner_id = None
- self._properties = None
- self._user_id = None
- @property
- def activity_code(self):
- return self._activity_code
- @activity_code.setter
- def activity_code(self, value):
- self._activity_code = value
- @property
- def amount(self):
- return self._amount
- @amount.setter
- def amount(self, value):
- self._amount = value
- @property
- def gmt_service(self):
- return self._gmt_service
- @gmt_service.setter
- def gmt_service(self, value):
- self._gmt_service = 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 partner_id(self):
- return self._partner_id
- @partner_id.setter
- def partner_id(self, value):
- self._partner_id = value
- @property
- def properties(self):
- return self._properties
- @properties.setter
- def properties(self, value):
- self._properties = 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.activity_code:
- if hasattr(self.activity_code, 'to_alipay_dict'):
- params['activity_code'] = self.activity_code.to_alipay_dict()
- else:
- params['activity_code'] = self.activity_code
- if self.amount:
- if hasattr(self.amount, 'to_alipay_dict'):
- params['amount'] = self.amount.to_alipay_dict()
- else:
- params['amount'] = self.amount
- 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.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.partner_id:
- if hasattr(self.partner_id, 'to_alipay_dict'):
- params['partner_id'] = self.partner_id.to_alipay_dict()
- else:
- params['partner_id'] = self.partner_id
- if self.properties:
- if hasattr(self.properties, 'to_alipay_dict'):
- params['properties'] = self.properties.to_alipay_dict()
- else:
- params['properties'] = self.properties
- 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 = AlipayOpenOperationBizfeeActivityApplyModel()
- if 'activity_code' in d:
- o.activity_code = d['activity_code']
- if 'amount' in d:
- o.amount = d['amount']
- if 'gmt_service' in d:
- o.gmt_service = d['gmt_service']
- if 'out_biz_no' in d:
- o.out_biz_no = d['out_biz_no']
- if 'partner_id' in d:
- o.partner_id = d['partner_id']
- if 'properties' in d:
- o.properties = d['properties']
- if 'user_id' in d:
- o.user_id = d['user_id']
- return o
|