KoubeiMarketingCampaignRetailDmQueryResponse.py 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiMarketingCampaignRetailDmQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiMarketingCampaignRetailDmQueryResponse, self).__init__()
  8. self._action_url = None
  9. self._activity_end_time = None
  10. self._activity_start_time = None
  11. self._brief = None
  12. self._campaign_end_time = None
  13. self._campaign_type = None
  14. self._coupon_type = None
  15. self._description = None
  16. self._ext_info = None
  17. self._image_id = None
  18. self._item_brand = None
  19. self._item_category = None
  20. self._item_code = None
  21. self._item_name = None
  22. self._member_only = None
  23. self._shop_ids = None
  24. self._status = None
  25. self._thumbnail_image_id = None
  26. @property
  27. def action_url(self):
  28. return self._action_url
  29. @action_url.setter
  30. def action_url(self, value):
  31. self._action_url = value
  32. @property
  33. def activity_end_time(self):
  34. return self._activity_end_time
  35. @activity_end_time.setter
  36. def activity_end_time(self, value):
  37. self._activity_end_time = value
  38. @property
  39. def activity_start_time(self):
  40. return self._activity_start_time
  41. @activity_start_time.setter
  42. def activity_start_time(self, value):
  43. self._activity_start_time = value
  44. @property
  45. def brief(self):
  46. return self._brief
  47. @brief.setter
  48. def brief(self, value):
  49. self._brief = value
  50. @property
  51. def campaign_end_time(self):
  52. return self._campaign_end_time
  53. @campaign_end_time.setter
  54. def campaign_end_time(self, value):
  55. self._campaign_end_time = value
  56. @property
  57. def campaign_type(self):
  58. return self._campaign_type
  59. @campaign_type.setter
  60. def campaign_type(self, value):
  61. self._campaign_type = value
  62. @property
  63. def coupon_type(self):
  64. return self._coupon_type
  65. @coupon_type.setter
  66. def coupon_type(self, value):
  67. self._coupon_type = value
  68. @property
  69. def description(self):
  70. return self._description
  71. @description.setter
  72. def description(self, value):
  73. self._description = value
  74. @property
  75. def ext_info(self):
  76. return self._ext_info
  77. @ext_info.setter
  78. def ext_info(self, value):
  79. self._ext_info = value
  80. @property
  81. def image_id(self):
  82. return self._image_id
  83. @image_id.setter
  84. def image_id(self, value):
  85. self._image_id = value
  86. @property
  87. def item_brand(self):
  88. return self._item_brand
  89. @item_brand.setter
  90. def item_brand(self, value):
  91. self._item_brand = value
  92. @property
  93. def item_category(self):
  94. return self._item_category
  95. @item_category.setter
  96. def item_category(self, value):
  97. self._item_category = value
  98. @property
  99. def item_code(self):
  100. return self._item_code
  101. @item_code.setter
  102. def item_code(self, value):
  103. self._item_code = value
  104. @property
  105. def item_name(self):
  106. return self._item_name
  107. @item_name.setter
  108. def item_name(self, value):
  109. self._item_name = value
  110. @property
  111. def member_only(self):
  112. return self._member_only
  113. @member_only.setter
  114. def member_only(self, value):
  115. self._member_only = value
  116. @property
  117. def shop_ids(self):
  118. return self._shop_ids
  119. @shop_ids.setter
  120. def shop_ids(self, value):
  121. if isinstance(value, list):
  122. self._shop_ids = list()
  123. for i in value:
  124. self._shop_ids.append(i)
  125. @property
  126. def status(self):
  127. return self._status
  128. @status.setter
  129. def status(self, value):
  130. self._status = value
  131. @property
  132. def thumbnail_image_id(self):
  133. return self._thumbnail_image_id
  134. @thumbnail_image_id.setter
  135. def thumbnail_image_id(self, value):
  136. self._thumbnail_image_id = value
  137. def parse_response_content(self, response_content):
  138. response = super(KoubeiMarketingCampaignRetailDmQueryResponse, self).parse_response_content(response_content)
  139. if 'action_url' in response:
  140. self.action_url = response['action_url']
  141. if 'activity_end_time' in response:
  142. self.activity_end_time = response['activity_end_time']
  143. if 'activity_start_time' in response:
  144. self.activity_start_time = response['activity_start_time']
  145. if 'brief' in response:
  146. self.brief = response['brief']
  147. if 'campaign_end_time' in response:
  148. self.campaign_end_time = response['campaign_end_time']
  149. if 'campaign_type' in response:
  150. self.campaign_type = response['campaign_type']
  151. if 'coupon_type' in response:
  152. self.coupon_type = response['coupon_type']
  153. if 'description' in response:
  154. self.description = response['description']
  155. if 'ext_info' in response:
  156. self.ext_info = response['ext_info']
  157. if 'image_id' in response:
  158. self.image_id = response['image_id']
  159. if 'item_brand' in response:
  160. self.item_brand = response['item_brand']
  161. if 'item_category' in response:
  162. self.item_category = response['item_category']
  163. if 'item_code' in response:
  164. self.item_code = response['item_code']
  165. if 'item_name' in response:
  166. self.item_name = response['item_name']
  167. if 'member_only' in response:
  168. self.member_only = response['member_only']
  169. if 'shop_ids' in response:
  170. self.shop_ids = response['shop_ids']
  171. if 'status' in response:
  172. self.status = response['status']
  173. if 'thumbnail_image_id' in response:
  174. self.thumbnail_image_id = response['thumbnail_image_id']