KoubeiMarketingCampaignItemMerchantactivityQueryResponse.py 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.MerchantActivityVoucherInfo import MerchantActivityVoucherInfo
  6. class KoubeiMarketingCampaignItemMerchantactivityQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(KoubeiMarketingCampaignItemMerchantactivityQueryResponse, self).__init__()
  9. self._activity_id = None
  10. self._camp_id = None
  11. self._count_limit = None
  12. self._count_limit_per_day = None
  13. self._count_limit_per_user = None
  14. self._count_limit_per_user_per_day = None
  15. self._crowd = None
  16. self._deduct_amount = None
  17. self._external_unique_id = None
  18. self._gmt_end = None
  19. self._gmt_start = None
  20. self._item_ids = None
  21. self._memo = None
  22. self._min_cost = None
  23. self._obtain_manually = None
  24. self._voucher_info = None
  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 camp_id(self):
  33. return self._camp_id
  34. @camp_id.setter
  35. def camp_id(self, value):
  36. self._camp_id = value
  37. @property
  38. def count_limit(self):
  39. return self._count_limit
  40. @count_limit.setter
  41. def count_limit(self, value):
  42. self._count_limit = value
  43. @property
  44. def count_limit_per_day(self):
  45. return self._count_limit_per_day
  46. @count_limit_per_day.setter
  47. def count_limit_per_day(self, value):
  48. self._count_limit_per_day = value
  49. @property
  50. def count_limit_per_user(self):
  51. return self._count_limit_per_user
  52. @count_limit_per_user.setter
  53. def count_limit_per_user(self, value):
  54. self._count_limit_per_user = value
  55. @property
  56. def count_limit_per_user_per_day(self):
  57. return self._count_limit_per_user_per_day
  58. @count_limit_per_user_per_day.setter
  59. def count_limit_per_user_per_day(self, value):
  60. self._count_limit_per_user_per_day = value
  61. @property
  62. def crowd(self):
  63. return self._crowd
  64. @crowd.setter
  65. def crowd(self, value):
  66. self._crowd = value
  67. @property
  68. def deduct_amount(self):
  69. return self._deduct_amount
  70. @deduct_amount.setter
  71. def deduct_amount(self, value):
  72. self._deduct_amount = value
  73. @property
  74. def external_unique_id(self):
  75. return self._external_unique_id
  76. @external_unique_id.setter
  77. def external_unique_id(self, value):
  78. self._external_unique_id = value
  79. @property
  80. def gmt_end(self):
  81. return self._gmt_end
  82. @gmt_end.setter
  83. def gmt_end(self, value):
  84. self._gmt_end = value
  85. @property
  86. def gmt_start(self):
  87. return self._gmt_start
  88. @gmt_start.setter
  89. def gmt_start(self, value):
  90. self._gmt_start = value
  91. @property
  92. def item_ids(self):
  93. return self._item_ids
  94. @item_ids.setter
  95. def item_ids(self, value):
  96. if isinstance(value, list):
  97. self._item_ids = list()
  98. for i in value:
  99. self._item_ids.append(i)
  100. @property
  101. def memo(self):
  102. return self._memo
  103. @memo.setter
  104. def memo(self, value):
  105. self._memo = value
  106. @property
  107. def min_cost(self):
  108. return self._min_cost
  109. @min_cost.setter
  110. def min_cost(self, value):
  111. self._min_cost = value
  112. @property
  113. def obtain_manually(self):
  114. return self._obtain_manually
  115. @obtain_manually.setter
  116. def obtain_manually(self, value):
  117. self._obtain_manually = value
  118. @property
  119. def voucher_info(self):
  120. return self._voucher_info
  121. @voucher_info.setter
  122. def voucher_info(self, value):
  123. if isinstance(value, MerchantActivityVoucherInfo):
  124. self._voucher_info = value
  125. else:
  126. self._voucher_info = MerchantActivityVoucherInfo.from_alipay_dict(value)
  127. def parse_response_content(self, response_content):
  128. response = super(KoubeiMarketingCampaignItemMerchantactivityQueryResponse, self).parse_response_content(response_content)
  129. if 'activity_id' in response:
  130. self.activity_id = response['activity_id']
  131. if 'camp_id' in response:
  132. self.camp_id = response['camp_id']
  133. if 'count_limit' in response:
  134. self.count_limit = response['count_limit']
  135. if 'count_limit_per_day' in response:
  136. self.count_limit_per_day = response['count_limit_per_day']
  137. if 'count_limit_per_user' in response:
  138. self.count_limit_per_user = response['count_limit_per_user']
  139. if 'count_limit_per_user_per_day' in response:
  140. self.count_limit_per_user_per_day = response['count_limit_per_user_per_day']
  141. if 'crowd' in response:
  142. self.crowd = response['crowd']
  143. if 'deduct_amount' in response:
  144. self.deduct_amount = response['deduct_amount']
  145. if 'external_unique_id' in response:
  146. self.external_unique_id = response['external_unique_id']
  147. if 'gmt_end' in response:
  148. self.gmt_end = response['gmt_end']
  149. if 'gmt_start' in response:
  150. self.gmt_start = response['gmt_start']
  151. if 'item_ids' in response:
  152. self.item_ids = response['item_ids']
  153. if 'memo' in response:
  154. self.memo = response['memo']
  155. if 'min_cost' in response:
  156. self.min_cost = response['min_cost']
  157. if 'obtain_manually' in response:
  158. self.obtain_manually = response['obtain_manually']
  159. if 'voucher_info' in response:
  160. self.voucher_info = response['voucher_info']