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 ZhimaMerchantContractStatusModifyModel(object):
def __init__(self):
self._action_time = None
self._action_type = None
self._contract_no = None
@property
def action_time(self):
return self._action_time
@action_time.setter
def action_time(self, value):
self._action_time = value
@property
def action_type(self):
return self._action_type
@action_type.setter
def action_type(self, value):
self._action_type = value
@property
def contract_no(self):
return self._contract_no
@contract_no.setter
def contract_no(self, value):
self._contract_no = value
def to_alipay_dict(self):
params = dict()
if self.action_time:
if hasattr(self.action_time, 'to_alipay_dict'):
params['action_time'] = self.action_time.to_alipay_dict()
else:
params['action_time'] = self.action_time
if self.action_type:
if hasattr(self.action_type, 'to_alipay_dict'):
params['action_type'] = self.action_type.to_alipay_dict()
else:
params['action_type'] = self.action_type
if self.contract_no:
if hasattr(self.contract_no, 'to_alipay_dict'):
params['contract_no'] = self.contract_no.to_alipay_dict()
else:
params['contract_no'] = self.contract_no
return params
@staticmethod
def from_alipay_dict(d):
if not d:
return None
o = ZhimaMerchantContractStatusModifyModel()
if 'action_time' in d:
o.action_time = d['action_time']
if 'action_type' in d:
o.action_type = d['action_type']
if 'contract_no' in d:
o.contract_no = d['contract_no']
return o