123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayMerchantOrderSecuritydigestConsumerBatchqueryModel(object):
- def __init__(self):
- self._buyer_id = None
- self._end_time = None
- self._merchant_app_id = None
- self._size = None
- self._start_time = None
- @property
- def buyer_id(self):
- return self._buyer_id
- @buyer_id.setter
- def buyer_id(self, value):
- self._buyer_id = value
- @property
- def end_time(self):
- return self._end_time
- @end_time.setter
- def end_time(self, value):
- self._end_time = value
- @property
- def merchant_app_id(self):
- return self._merchant_app_id
- @merchant_app_id.setter
- def merchant_app_id(self, value):
- self._merchant_app_id = value
- @property
- def size(self):
- return self._size
- @size.setter
- def size(self, value):
- self._size = value
- @property
- def start_time(self):
- return self._start_time
- @start_time.setter
- def start_time(self, value):
- self._start_time = value
- def to_alipay_dict(self):
- params = dict()
- if self.buyer_id:
- if hasattr(self.buyer_id, 'to_alipay_dict'):
- params['buyer_id'] = self.buyer_id.to_alipay_dict()
- else:
- params['buyer_id'] = self.buyer_id
- if self.end_time:
- if hasattr(self.end_time, 'to_alipay_dict'):
- params['end_time'] = self.end_time.to_alipay_dict()
- else:
- params['end_time'] = self.end_time
- if self.merchant_app_id:
- if hasattr(self.merchant_app_id, 'to_alipay_dict'):
- params['merchant_app_id'] = self.merchant_app_id.to_alipay_dict()
- else:
- params['merchant_app_id'] = self.merchant_app_id
- if self.size:
- if hasattr(self.size, 'to_alipay_dict'):
- params['size'] = self.size.to_alipay_dict()
- else:
- params['size'] = self.size
- if self.start_time:
- if hasattr(self.start_time, 'to_alipay_dict'):
- params['start_time'] = self.start_time.to_alipay_dict()
- else:
- params['start_time'] = self.start_time
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayMerchantOrderSecuritydigestConsumerBatchqueryModel()
- if 'buyer_id' in d:
- o.buyer_id = d['buyer_id']
- if 'end_time' in d:
- o.end_time = d['end_time']
- if 'merchant_app_id' in d:
- o.merchant_app_id = d['merchant_app_id']
- if 'size' in d:
- o.size = d['size']
- if 'start_time' in d:
- o.start_time = d['start_time']
- return o
|