12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayEcoRenthouseBillOrderDownloadModel(object):
- def __init__(self):
- self._bill_date = None
- self._merchant_no = None
- @property
- def bill_date(self):
- return self._bill_date
- @bill_date.setter
- def bill_date(self, value):
- self._bill_date = value
- @property
- def merchant_no(self):
- return self._merchant_no
- @merchant_no.setter
- def merchant_no(self, value):
- self._merchant_no = value
- def to_alipay_dict(self):
- params = dict()
- if self.bill_date:
- if hasattr(self.bill_date, 'to_alipay_dict'):
- params['bill_date'] = self.bill_date.to_alipay_dict()
- else:
- params['bill_date'] = self.bill_date
- if self.merchant_no:
- if hasattr(self.merchant_no, 'to_alipay_dict'):
- params['merchant_no'] = self.merchant_no.to_alipay_dict()
- else:
- params['merchant_no'] = self.merchant_no
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayEcoRenthouseBillOrderDownloadModel()
- if 'bill_date' in d:
- o.bill_date = d['bill_date']
- if 'merchant_no' in d:
- o.merchant_no = d['merchant_no']
- return o
|