KoubeiCateringDishDictionaryQueryModel.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class KoubeiCateringDishDictionaryQueryModel(object):
  6. def __init__(self):
  7. self._biz_type = None
  8. self._dictionary_id = None
  9. self._ext_info = None
  10. self._merchant_id = None
  11. self._status = None
  12. @property
  13. def biz_type(self):
  14. return self._biz_type
  15. @biz_type.setter
  16. def biz_type(self, value):
  17. self._biz_type = value
  18. @property
  19. def dictionary_id(self):
  20. return self._dictionary_id
  21. @dictionary_id.setter
  22. def dictionary_id(self, value):
  23. self._dictionary_id = value
  24. @property
  25. def ext_info(self):
  26. return self._ext_info
  27. @ext_info.setter
  28. def ext_info(self, value):
  29. self._ext_info = value
  30. @property
  31. def merchant_id(self):
  32. return self._merchant_id
  33. @merchant_id.setter
  34. def merchant_id(self, value):
  35. self._merchant_id = value
  36. @property
  37. def status(self):
  38. return self._status
  39. @status.setter
  40. def status(self, value):
  41. self._status = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.biz_type:
  45. if hasattr(self.biz_type, 'to_alipay_dict'):
  46. params['biz_type'] = self.biz_type.to_alipay_dict()
  47. else:
  48. params['biz_type'] = self.biz_type
  49. if self.dictionary_id:
  50. if hasattr(self.dictionary_id, 'to_alipay_dict'):
  51. params['dictionary_id'] = self.dictionary_id.to_alipay_dict()
  52. else:
  53. params['dictionary_id'] = self.dictionary_id
  54. if self.ext_info:
  55. if hasattr(self.ext_info, 'to_alipay_dict'):
  56. params['ext_info'] = self.ext_info.to_alipay_dict()
  57. else:
  58. params['ext_info'] = self.ext_info
  59. if self.merchant_id:
  60. if hasattr(self.merchant_id, 'to_alipay_dict'):
  61. params['merchant_id'] = self.merchant_id.to_alipay_dict()
  62. else:
  63. params['merchant_id'] = self.merchant_id
  64. if self.status:
  65. if hasattr(self.status, 'to_alipay_dict'):
  66. params['status'] = self.status.to_alipay_dict()
  67. else:
  68. params['status'] = self.status
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = KoubeiCateringDishDictionaryQueryModel()
  75. if 'biz_type' in d:
  76. o.biz_type = d['biz_type']
  77. if 'dictionary_id' in d:
  78. o.dictionary_id = d['dictionary_id']
  79. if 'ext_info' in d:
  80. o.ext_info = d['ext_info']
  81. if 'merchant_id' in d:
  82. o.merchant_id = d['merchant_id']
  83. if 'status' in d:
  84. o.status = d['status']
  85. return o