AlipayFundTransAacollectBatchCreateModel.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 AlipayFundTransAacollectBatchCreateModel(object):
  6. def __init__(self):
  7. self._batch_memo = None
  8. self._channel = None
  9. self._ext_param = None
  10. self._limit_items_total = None
  11. self._pay_amount_single = None
  12. self._pay_amount_total = None
  13. self._payee_user_id = None
  14. self._payer_user_ids = None
  15. self._real_items_total = None
  16. self._show_items_total = None
  17. self._source = None
  18. @property
  19. def batch_memo(self):
  20. return self._batch_memo
  21. @batch_memo.setter
  22. def batch_memo(self, value):
  23. self._batch_memo = value
  24. @property
  25. def channel(self):
  26. return self._channel
  27. @channel.setter
  28. def channel(self, value):
  29. self._channel = value
  30. @property
  31. def ext_param(self):
  32. return self._ext_param
  33. @ext_param.setter
  34. def ext_param(self, value):
  35. self._ext_param = value
  36. @property
  37. def limit_items_total(self):
  38. return self._limit_items_total
  39. @limit_items_total.setter
  40. def limit_items_total(self, value):
  41. self._limit_items_total = value
  42. @property
  43. def pay_amount_single(self):
  44. return self._pay_amount_single
  45. @pay_amount_single.setter
  46. def pay_amount_single(self, value):
  47. self._pay_amount_single = value
  48. @property
  49. def pay_amount_total(self):
  50. return self._pay_amount_total
  51. @pay_amount_total.setter
  52. def pay_amount_total(self, value):
  53. self._pay_amount_total = value
  54. @property
  55. def payee_user_id(self):
  56. return self._payee_user_id
  57. @payee_user_id.setter
  58. def payee_user_id(self, value):
  59. self._payee_user_id = value
  60. @property
  61. def payer_user_ids(self):
  62. return self._payer_user_ids
  63. @payer_user_ids.setter
  64. def payer_user_ids(self, value):
  65. self._payer_user_ids = value
  66. @property
  67. def real_items_total(self):
  68. return self._real_items_total
  69. @real_items_total.setter
  70. def real_items_total(self, value):
  71. self._real_items_total = value
  72. @property
  73. def show_items_total(self):
  74. return self._show_items_total
  75. @show_items_total.setter
  76. def show_items_total(self, value):
  77. self._show_items_total = value
  78. @property
  79. def source(self):
  80. return self._source
  81. @source.setter
  82. def source(self, value):
  83. self._source = value
  84. def to_alipay_dict(self):
  85. params = dict()
  86. if self.batch_memo:
  87. if hasattr(self.batch_memo, 'to_alipay_dict'):
  88. params['batch_memo'] = self.batch_memo.to_alipay_dict()
  89. else:
  90. params['batch_memo'] = self.batch_memo
  91. if self.channel:
  92. if hasattr(self.channel, 'to_alipay_dict'):
  93. params['channel'] = self.channel.to_alipay_dict()
  94. else:
  95. params['channel'] = self.channel
  96. if self.ext_param:
  97. if hasattr(self.ext_param, 'to_alipay_dict'):
  98. params['ext_param'] = self.ext_param.to_alipay_dict()
  99. else:
  100. params['ext_param'] = self.ext_param
  101. if self.limit_items_total:
  102. if hasattr(self.limit_items_total, 'to_alipay_dict'):
  103. params['limit_items_total'] = self.limit_items_total.to_alipay_dict()
  104. else:
  105. params['limit_items_total'] = self.limit_items_total
  106. if self.pay_amount_single:
  107. if hasattr(self.pay_amount_single, 'to_alipay_dict'):
  108. params['pay_amount_single'] = self.pay_amount_single.to_alipay_dict()
  109. else:
  110. params['pay_amount_single'] = self.pay_amount_single
  111. if self.pay_amount_total:
  112. if hasattr(self.pay_amount_total, 'to_alipay_dict'):
  113. params['pay_amount_total'] = self.pay_amount_total.to_alipay_dict()
  114. else:
  115. params['pay_amount_total'] = self.pay_amount_total
  116. if self.payee_user_id:
  117. if hasattr(self.payee_user_id, 'to_alipay_dict'):
  118. params['payee_user_id'] = self.payee_user_id.to_alipay_dict()
  119. else:
  120. params['payee_user_id'] = self.payee_user_id
  121. if self.payer_user_ids:
  122. if hasattr(self.payer_user_ids, 'to_alipay_dict'):
  123. params['payer_user_ids'] = self.payer_user_ids.to_alipay_dict()
  124. else:
  125. params['payer_user_ids'] = self.payer_user_ids
  126. if self.real_items_total:
  127. if hasattr(self.real_items_total, 'to_alipay_dict'):
  128. params['real_items_total'] = self.real_items_total.to_alipay_dict()
  129. else:
  130. params['real_items_total'] = self.real_items_total
  131. if self.show_items_total:
  132. if hasattr(self.show_items_total, 'to_alipay_dict'):
  133. params['show_items_total'] = self.show_items_total.to_alipay_dict()
  134. else:
  135. params['show_items_total'] = self.show_items_total
  136. if self.source:
  137. if hasattr(self.source, 'to_alipay_dict'):
  138. params['source'] = self.source.to_alipay_dict()
  139. else:
  140. params['source'] = self.source
  141. return params
  142. @staticmethod
  143. def from_alipay_dict(d):
  144. if not d:
  145. return None
  146. o = AlipayFundTransAacollectBatchCreateModel()
  147. if 'batch_memo' in d:
  148. o.batch_memo = d['batch_memo']
  149. if 'channel' in d:
  150. o.channel = d['channel']
  151. if 'ext_param' in d:
  152. o.ext_param = d['ext_param']
  153. if 'limit_items_total' in d:
  154. o.limit_items_total = d['limit_items_total']
  155. if 'pay_amount_single' in d:
  156. o.pay_amount_single = d['pay_amount_single']
  157. if 'pay_amount_total' in d:
  158. o.pay_amount_total = d['pay_amount_total']
  159. if 'payee_user_id' in d:
  160. o.payee_user_id = d['payee_user_id']
  161. if 'payer_user_ids' in d:
  162. o.payer_user_ids = d['payer_user_ids']
  163. if 'real_items_total' in d:
  164. o.real_items_total = d['real_items_total']
  165. if 'show_items_total' in d:
  166. o.show_items_total = d['show_items_total']
  167. if 'source' in d:
  168. o.source = d['source']
  169. return o