AlipayCommerceTransportVehicleownerCampaignModifyModel.py 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayCommerceTransportVehicleownerCampaignModifyModel(object):
  6. def __init__(self):
  7. self._activity_icon = None
  8. self._activity_id = None
  9. self._activity_record = None
  10. self._activity_url = None
  11. self._biz_code = None
  12. self._effective_end = None
  13. self._effective_start = None
  14. self._ext_info = None
  15. self._last_platform = None
  16. self._last_store_id = None
  17. self._out_biz_id = None
  18. self._priority_booth = None
  19. @property
  20. def activity_icon(self):
  21. return self._activity_icon
  22. @activity_icon.setter
  23. def activity_icon(self, value):
  24. self._activity_icon = value
  25. @property
  26. def activity_id(self):
  27. return self._activity_id
  28. @activity_id.setter
  29. def activity_id(self, value):
  30. self._activity_id = value
  31. @property
  32. def activity_record(self):
  33. return self._activity_record
  34. @activity_record.setter
  35. def activity_record(self, value):
  36. self._activity_record = value
  37. @property
  38. def activity_url(self):
  39. return self._activity_url
  40. @activity_url.setter
  41. def activity_url(self, value):
  42. self._activity_url = value
  43. @property
  44. def biz_code(self):
  45. return self._biz_code
  46. @biz_code.setter
  47. def biz_code(self, value):
  48. self._biz_code = value
  49. @property
  50. def effective_end(self):
  51. return self._effective_end
  52. @effective_end.setter
  53. def effective_end(self, value):
  54. self._effective_end = value
  55. @property
  56. def effective_start(self):
  57. return self._effective_start
  58. @effective_start.setter
  59. def effective_start(self, value):
  60. self._effective_start = value
  61. @property
  62. def ext_info(self):
  63. return self._ext_info
  64. @ext_info.setter
  65. def ext_info(self, value):
  66. self._ext_info = value
  67. @property
  68. def last_platform(self):
  69. return self._last_platform
  70. @last_platform.setter
  71. def last_platform(self, value):
  72. self._last_platform = value
  73. @property
  74. def last_store_id(self):
  75. return self._last_store_id
  76. @last_store_id.setter
  77. def last_store_id(self, value):
  78. self._last_store_id = value
  79. @property
  80. def out_biz_id(self):
  81. return self._out_biz_id
  82. @out_biz_id.setter
  83. def out_biz_id(self, value):
  84. self._out_biz_id = value
  85. @property
  86. def priority_booth(self):
  87. return self._priority_booth
  88. @priority_booth.setter
  89. def priority_booth(self, value):
  90. self._priority_booth = value
  91. def to_alipay_dict(self):
  92. params = dict()
  93. if self.activity_icon:
  94. if hasattr(self.activity_icon, 'to_alipay_dict'):
  95. params['activity_icon'] = self.activity_icon.to_alipay_dict()
  96. else:
  97. params['activity_icon'] = self.activity_icon
  98. if self.activity_id:
  99. if hasattr(self.activity_id, 'to_alipay_dict'):
  100. params['activity_id'] = self.activity_id.to_alipay_dict()
  101. else:
  102. params['activity_id'] = self.activity_id
  103. if self.activity_record:
  104. if hasattr(self.activity_record, 'to_alipay_dict'):
  105. params['activity_record'] = self.activity_record.to_alipay_dict()
  106. else:
  107. params['activity_record'] = self.activity_record
  108. if self.activity_url:
  109. if hasattr(self.activity_url, 'to_alipay_dict'):
  110. params['activity_url'] = self.activity_url.to_alipay_dict()
  111. else:
  112. params['activity_url'] = self.activity_url
  113. if self.biz_code:
  114. if hasattr(self.biz_code, 'to_alipay_dict'):
  115. params['biz_code'] = self.biz_code.to_alipay_dict()
  116. else:
  117. params['biz_code'] = self.biz_code
  118. if self.effective_end:
  119. if hasattr(self.effective_end, 'to_alipay_dict'):
  120. params['effective_end'] = self.effective_end.to_alipay_dict()
  121. else:
  122. params['effective_end'] = self.effective_end
  123. if self.effective_start:
  124. if hasattr(self.effective_start, 'to_alipay_dict'):
  125. params['effective_start'] = self.effective_start.to_alipay_dict()
  126. else:
  127. params['effective_start'] = self.effective_start
  128. if self.ext_info:
  129. if hasattr(self.ext_info, 'to_alipay_dict'):
  130. params['ext_info'] = self.ext_info.to_alipay_dict()
  131. else:
  132. params['ext_info'] = self.ext_info
  133. if self.last_platform:
  134. if hasattr(self.last_platform, 'to_alipay_dict'):
  135. params['last_platform'] = self.last_platform.to_alipay_dict()
  136. else:
  137. params['last_platform'] = self.last_platform
  138. if self.last_store_id:
  139. if hasattr(self.last_store_id, 'to_alipay_dict'):
  140. params['last_store_id'] = self.last_store_id.to_alipay_dict()
  141. else:
  142. params['last_store_id'] = self.last_store_id
  143. if self.out_biz_id:
  144. if hasattr(self.out_biz_id, 'to_alipay_dict'):
  145. params['out_biz_id'] = self.out_biz_id.to_alipay_dict()
  146. else:
  147. params['out_biz_id'] = self.out_biz_id
  148. if self.priority_booth:
  149. if hasattr(self.priority_booth, 'to_alipay_dict'):
  150. params['priority_booth'] = self.priority_booth.to_alipay_dict()
  151. else:
  152. params['priority_booth'] = self.priority_booth
  153. return params
  154. @staticmethod
  155. def from_alipay_dict(d):
  156. if not d:
  157. return None
  158. o = AlipayCommerceTransportVehicleownerCampaignModifyModel()
  159. if 'activity_icon' in d:
  160. o.activity_icon = d['activity_icon']
  161. if 'activity_id' in d:
  162. o.activity_id = d['activity_id']
  163. if 'activity_record' in d:
  164. o.activity_record = d['activity_record']
  165. if 'activity_url' in d:
  166. o.activity_url = d['activity_url']
  167. if 'biz_code' in d:
  168. o.biz_code = d['biz_code']
  169. if 'effective_end' in d:
  170. o.effective_end = d['effective_end']
  171. if 'effective_start' in d:
  172. o.effective_start = d['effective_start']
  173. if 'ext_info' in d:
  174. o.ext_info = d['ext_info']
  175. if 'last_platform' in d:
  176. o.last_platform = d['last_platform']
  177. if 'last_store_id' in d:
  178. o.last_store_id = d['last_store_id']
  179. if 'out_biz_id' in d:
  180. o.out_biz_id = d['out_biz_id']
  181. if 'priority_booth' in d:
  182. o.priority_booth = d['priority_booth']
  183. return o