AlipayEbppJfexportBillQueryModel.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEbppJfexportBillQueryModel(object):
  6. def __init__(self):
  7. self._bill_no = None
  8. self._biz_type = None
  9. self._extend_field = None
  10. @property
  11. def bill_no(self):
  12. return self._bill_no
  13. @bill_no.setter
  14. def bill_no(self, value):
  15. self._bill_no = value
  16. @property
  17. def biz_type(self):
  18. return self._biz_type
  19. @biz_type.setter
  20. def biz_type(self, value):
  21. self._biz_type = value
  22. @property
  23. def extend_field(self):
  24. return self._extend_field
  25. @extend_field.setter
  26. def extend_field(self, value):
  27. self._extend_field = value
  28. def to_alipay_dict(self):
  29. params = dict()
  30. if self.bill_no:
  31. if hasattr(self.bill_no, 'to_alipay_dict'):
  32. params['bill_no'] = self.bill_no.to_alipay_dict()
  33. else:
  34. params['bill_no'] = self.bill_no
  35. if self.biz_type:
  36. if hasattr(self.biz_type, 'to_alipay_dict'):
  37. params['biz_type'] = self.biz_type.to_alipay_dict()
  38. else:
  39. params['biz_type'] = self.biz_type
  40. if self.extend_field:
  41. if hasattr(self.extend_field, 'to_alipay_dict'):
  42. params['extend_field'] = self.extend_field.to_alipay_dict()
  43. else:
  44. params['extend_field'] = self.extend_field
  45. return params
  46. @staticmethod
  47. def from_alipay_dict(d):
  48. if not d:
  49. return None
  50. o = AlipayEbppJfexportBillQueryModel()
  51. if 'bill_no' in d:
  52. o.bill_no = d['bill_no']
  53. if 'biz_type' in d:
  54. o.biz_type = d['biz_type']
  55. if 'extend_field' in d:
  56. o.extend_field = d['extend_field']
  57. return o