AlipayCommerceEducateFacefeatureFileApplyModel.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayCommerceEducateFacefeatureFileApplyModel(object):
  6. def __init__(self):
  7. self._biz_code = None
  8. self._feature_version = None
  9. self._file_date = None
  10. self._file_type = None
  11. self._institution_id = None
  12. self._isv_name = None
  13. @property
  14. def biz_code(self):
  15. return self._biz_code
  16. @biz_code.setter
  17. def biz_code(self, value):
  18. self._biz_code = value
  19. @property
  20. def feature_version(self):
  21. return self._feature_version
  22. @feature_version.setter
  23. def feature_version(self, value):
  24. self._feature_version = value
  25. @property
  26. def file_date(self):
  27. return self._file_date
  28. @file_date.setter
  29. def file_date(self, value):
  30. self._file_date = value
  31. @property
  32. def file_type(self):
  33. return self._file_type
  34. @file_type.setter
  35. def file_type(self, value):
  36. self._file_type = value
  37. @property
  38. def institution_id(self):
  39. return self._institution_id
  40. @institution_id.setter
  41. def institution_id(self, value):
  42. self._institution_id = value
  43. @property
  44. def isv_name(self):
  45. return self._isv_name
  46. @isv_name.setter
  47. def isv_name(self, value):
  48. self._isv_name = value
  49. def to_alipay_dict(self):
  50. params = dict()
  51. if self.biz_code:
  52. if hasattr(self.biz_code, 'to_alipay_dict'):
  53. params['biz_code'] = self.biz_code.to_alipay_dict()
  54. else:
  55. params['biz_code'] = self.biz_code
  56. if self.feature_version:
  57. if hasattr(self.feature_version, 'to_alipay_dict'):
  58. params['feature_version'] = self.feature_version.to_alipay_dict()
  59. else:
  60. params['feature_version'] = self.feature_version
  61. if self.file_date:
  62. if hasattr(self.file_date, 'to_alipay_dict'):
  63. params['file_date'] = self.file_date.to_alipay_dict()
  64. else:
  65. params['file_date'] = self.file_date
  66. if self.file_type:
  67. if hasattr(self.file_type, 'to_alipay_dict'):
  68. params['file_type'] = self.file_type.to_alipay_dict()
  69. else:
  70. params['file_type'] = self.file_type
  71. if self.institution_id:
  72. if hasattr(self.institution_id, 'to_alipay_dict'):
  73. params['institution_id'] = self.institution_id.to_alipay_dict()
  74. else:
  75. params['institution_id'] = self.institution_id
  76. if self.isv_name:
  77. if hasattr(self.isv_name, 'to_alipay_dict'):
  78. params['isv_name'] = self.isv_name.to_alipay_dict()
  79. else:
  80. params['isv_name'] = self.isv_name
  81. return params
  82. @staticmethod
  83. def from_alipay_dict(d):
  84. if not d:
  85. return None
  86. o = AlipayCommerceEducateFacefeatureFileApplyModel()
  87. if 'biz_code' in d:
  88. o.biz_code = d['biz_code']
  89. if 'feature_version' in d:
  90. o.feature_version = d['feature_version']
  91. if 'file_date' in d:
  92. o.file_date = d['file_date']
  93. if 'file_type' in d:
  94. o.file_type = d['file_type']
  95. if 'institution_id' in d:
  96. o.institution_id = d['institution_id']
  97. if 'isv_name' in d:
  98. o.isv_name = d['isv_name']
  99. return o