AlipaySecurityDataInfoSecuritydataQueryModel.py 2.6 KB

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