12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class MybankPaymentTradeDepositVerifyMatchModel(object):
- def __init__(self):
- self._amount = None
- self._currency = None
- self._verify_id = None
- @property
- def amount(self):
- return self._amount
- @amount.setter
- def amount(self, value):
- self._amount = value
- @property
- def currency(self):
- return self._currency
- @currency.setter
- def currency(self, value):
- self._currency = value
- @property
- def verify_id(self):
- return self._verify_id
- @verify_id.setter
- def verify_id(self, value):
- self._verify_id = value
- def to_alipay_dict(self):
- params = dict()
- if self.amount:
- if hasattr(self.amount, 'to_alipay_dict'):
- params['amount'] = self.amount.to_alipay_dict()
- else:
- params['amount'] = self.amount
- if self.currency:
- if hasattr(self.currency, 'to_alipay_dict'):
- params['currency'] = self.currency.to_alipay_dict()
- else:
- params['currency'] = self.currency
- if self.verify_id:
- if hasattr(self.verify_id, 'to_alipay_dict'):
- params['verify_id'] = self.verify_id.to_alipay_dict()
- else:
- params['verify_id'] = self.verify_id
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = MybankPaymentTradeDepositVerifyMatchModel()
- if 'amount' in d:
- o.amount = d['amount']
- if 'currency' in d:
- o.currency = d['currency']
- if 'verify_id' in d:
- o.verify_id = d['verify_id']
- return o
|