AlipayCommerceTransportVehicleownerCampaignPublishModel.py 6.2 KB

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