AlipayEbppInstserviceMessageNotifyModel.py 5.3 KB

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