OpenApiSignQueryResponse.py 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class OpenApiSignQueryResponse(object):
  6. def __init__(self):
  7. self._agreement_no = None
  8. self._invalid_time = None
  9. self._personal_product_code = None
  10. self._pricipal_type = None
  11. self._principal_id = None
  12. self._sign_scene = None
  13. self._sign_time = None
  14. self._status = None
  15. self._third_party_type = None
  16. self._valid_time = None
  17. @property
  18. def agreement_no(self):
  19. return self._agreement_no
  20. @agreement_no.setter
  21. def agreement_no(self, value):
  22. self._agreement_no = value
  23. @property
  24. def invalid_time(self):
  25. return self._invalid_time
  26. @invalid_time.setter
  27. def invalid_time(self, value):
  28. self._invalid_time = value
  29. @property
  30. def personal_product_code(self):
  31. return self._personal_product_code
  32. @personal_product_code.setter
  33. def personal_product_code(self, value):
  34. self._personal_product_code = value
  35. @property
  36. def pricipal_type(self):
  37. return self._pricipal_type
  38. @pricipal_type.setter
  39. def pricipal_type(self, value):
  40. self._pricipal_type = value
  41. @property
  42. def principal_id(self):
  43. return self._principal_id
  44. @principal_id.setter
  45. def principal_id(self, value):
  46. self._principal_id = value
  47. @property
  48. def sign_scene(self):
  49. return self._sign_scene
  50. @sign_scene.setter
  51. def sign_scene(self, value):
  52. self._sign_scene = value
  53. @property
  54. def sign_time(self):
  55. return self._sign_time
  56. @sign_time.setter
  57. def sign_time(self, value):
  58. self._sign_time = value
  59. @property
  60. def status(self):
  61. return self._status
  62. @status.setter
  63. def status(self, value):
  64. self._status = value
  65. @property
  66. def third_party_type(self):
  67. return self._third_party_type
  68. @third_party_type.setter
  69. def third_party_type(self, value):
  70. self._third_party_type = value
  71. @property
  72. def valid_time(self):
  73. return self._valid_time
  74. @valid_time.setter
  75. def valid_time(self, value):
  76. self._valid_time = value
  77. def to_alipay_dict(self):
  78. params = dict()
  79. if self.agreement_no:
  80. if hasattr(self.agreement_no, 'to_alipay_dict'):
  81. params['agreement_no'] = self.agreement_no.to_alipay_dict()
  82. else:
  83. params['agreement_no'] = self.agreement_no
  84. if self.invalid_time:
  85. if hasattr(self.invalid_time, 'to_alipay_dict'):
  86. params['invalid_time'] = self.invalid_time.to_alipay_dict()
  87. else:
  88. params['invalid_time'] = self.invalid_time
  89. if self.personal_product_code:
  90. if hasattr(self.personal_product_code, 'to_alipay_dict'):
  91. params['personal_product_code'] = self.personal_product_code.to_alipay_dict()
  92. else:
  93. params['personal_product_code'] = self.personal_product_code
  94. if self.pricipal_type:
  95. if hasattr(self.pricipal_type, 'to_alipay_dict'):
  96. params['pricipal_type'] = self.pricipal_type.to_alipay_dict()
  97. else:
  98. params['pricipal_type'] = self.pricipal_type
  99. if self.principal_id:
  100. if hasattr(self.principal_id, 'to_alipay_dict'):
  101. params['principal_id'] = self.principal_id.to_alipay_dict()
  102. else:
  103. params['principal_id'] = self.principal_id
  104. if self.sign_scene:
  105. if hasattr(self.sign_scene, 'to_alipay_dict'):
  106. params['sign_scene'] = self.sign_scene.to_alipay_dict()
  107. else:
  108. params['sign_scene'] = self.sign_scene
  109. if self.sign_time:
  110. if hasattr(self.sign_time, 'to_alipay_dict'):
  111. params['sign_time'] = self.sign_time.to_alipay_dict()
  112. else:
  113. params['sign_time'] = self.sign_time
  114. if self.status:
  115. if hasattr(self.status, 'to_alipay_dict'):
  116. params['status'] = self.status.to_alipay_dict()
  117. else:
  118. params['status'] = self.status
  119. if self.third_party_type:
  120. if hasattr(self.third_party_type, 'to_alipay_dict'):
  121. params['third_party_type'] = self.third_party_type.to_alipay_dict()
  122. else:
  123. params['third_party_type'] = self.third_party_type
  124. if self.valid_time:
  125. if hasattr(self.valid_time, 'to_alipay_dict'):
  126. params['valid_time'] = self.valid_time.to_alipay_dict()
  127. else:
  128. params['valid_time'] = self.valid_time
  129. return params
  130. @staticmethod
  131. def from_alipay_dict(d):
  132. if not d:
  133. return None
  134. o = OpenApiSignQueryResponse()
  135. if 'agreement_no' in d:
  136. o.agreement_no = d['agreement_no']
  137. if 'invalid_time' in d:
  138. o.invalid_time = d['invalid_time']
  139. if 'personal_product_code' in d:
  140. o.personal_product_code = d['personal_product_code']
  141. if 'pricipal_type' in d:
  142. o.pricipal_type = d['pricipal_type']
  143. if 'principal_id' in d:
  144. o.principal_id = d['principal_id']
  145. if 'sign_scene' in d:
  146. o.sign_scene = d['sign_scene']
  147. if 'sign_time' in d:
  148. o.sign_time = d['sign_time']
  149. if 'status' in d:
  150. o.status = d['status']
  151. if 'third_party_type' in d:
  152. o.third_party_type = d['third_party_type']
  153. if 'valid_time' in d:
  154. o.valid_time = d['valid_time']
  155. return o