AlipayOpenOperationBizfeeAftechApplyModel.py 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayOpenOperationBizfeeAftechApplyModel(object):
  6. def __init__(self):
  7. self._app_name = None
  8. self._ar_no = None
  9. self._biz_no = None
  10. self._customer = None
  11. self._fee_amount = None
  12. self._fee_currency = None
  13. self._gmt_charge = None
  14. self._gmt_receive = None
  15. self._gmt_service = None
  16. self._op_mode = None
  17. self._out_biz_no = None
  18. self._product_code = None
  19. self._properties = None
  20. self._service_amount = None
  21. self._settle_period = None
  22. self._settle_postponed_time = None
  23. self._settle_type = None
  24. self._tnt_inst_id = None
  25. @property
  26. def app_name(self):
  27. return self._app_name
  28. @app_name.setter
  29. def app_name(self, value):
  30. self._app_name = value
  31. @property
  32. def ar_no(self):
  33. return self._ar_no
  34. @ar_no.setter
  35. def ar_no(self, value):
  36. self._ar_no = value
  37. @property
  38. def biz_no(self):
  39. return self._biz_no
  40. @biz_no.setter
  41. def biz_no(self, value):
  42. self._biz_no = value
  43. @property
  44. def customer(self):
  45. return self._customer
  46. @customer.setter
  47. def customer(self, value):
  48. self._customer = value
  49. @property
  50. def fee_amount(self):
  51. return self._fee_amount
  52. @fee_amount.setter
  53. def fee_amount(self, value):
  54. self._fee_amount = value
  55. @property
  56. def fee_currency(self):
  57. return self._fee_currency
  58. @fee_currency.setter
  59. def fee_currency(self, value):
  60. self._fee_currency = value
  61. @property
  62. def gmt_charge(self):
  63. return self._gmt_charge
  64. @gmt_charge.setter
  65. def gmt_charge(self, value):
  66. self._gmt_charge = value
  67. @property
  68. def gmt_receive(self):
  69. return self._gmt_receive
  70. @gmt_receive.setter
  71. def gmt_receive(self, value):
  72. self._gmt_receive = value
  73. @property
  74. def gmt_service(self):
  75. return self._gmt_service
  76. @gmt_service.setter
  77. def gmt_service(self, value):
  78. self._gmt_service = value
  79. @property
  80. def op_mode(self):
  81. return self._op_mode
  82. @op_mode.setter
  83. def op_mode(self, value):
  84. self._op_mode = value
  85. @property
  86. def out_biz_no(self):
  87. return self._out_biz_no
  88. @out_biz_no.setter
  89. def out_biz_no(self, value):
  90. self._out_biz_no = value
  91. @property
  92. def product_code(self):
  93. return self._product_code
  94. @product_code.setter
  95. def product_code(self, value):
  96. self._product_code = value
  97. @property
  98. def properties(self):
  99. return self._properties
  100. @properties.setter
  101. def properties(self, value):
  102. self._properties = value
  103. @property
  104. def service_amount(self):
  105. return self._service_amount
  106. @service_amount.setter
  107. def service_amount(self, value):
  108. self._service_amount = value
  109. @property
  110. def settle_period(self):
  111. return self._settle_period
  112. @settle_period.setter
  113. def settle_period(self, value):
  114. self._settle_period = value
  115. @property
  116. def settle_postponed_time(self):
  117. return self._settle_postponed_time
  118. @settle_postponed_time.setter
  119. def settle_postponed_time(self, value):
  120. self._settle_postponed_time = value
  121. @property
  122. def settle_type(self):
  123. return self._settle_type
  124. @settle_type.setter
  125. def settle_type(self, value):
  126. self._settle_type = value
  127. @property
  128. def tnt_inst_id(self):
  129. return self._tnt_inst_id
  130. @tnt_inst_id.setter
  131. def tnt_inst_id(self, value):
  132. self._tnt_inst_id = value
  133. def to_alipay_dict(self):
  134. params = dict()
  135. if self.app_name:
  136. if hasattr(self.app_name, 'to_alipay_dict'):
  137. params['app_name'] = self.app_name.to_alipay_dict()
  138. else:
  139. params['app_name'] = self.app_name
  140. if self.ar_no:
  141. if hasattr(self.ar_no, 'to_alipay_dict'):
  142. params['ar_no'] = self.ar_no.to_alipay_dict()
  143. else:
  144. params['ar_no'] = self.ar_no
  145. if self.biz_no:
  146. if hasattr(self.biz_no, 'to_alipay_dict'):
  147. params['biz_no'] = self.biz_no.to_alipay_dict()
  148. else:
  149. params['biz_no'] = self.biz_no
  150. if self.customer:
  151. if hasattr(self.customer, 'to_alipay_dict'):
  152. params['customer'] = self.customer.to_alipay_dict()
  153. else:
  154. params['customer'] = self.customer
  155. if self.fee_amount:
  156. if hasattr(self.fee_amount, 'to_alipay_dict'):
  157. params['fee_amount'] = self.fee_amount.to_alipay_dict()
  158. else:
  159. params['fee_amount'] = self.fee_amount
  160. if self.fee_currency:
  161. if hasattr(self.fee_currency, 'to_alipay_dict'):
  162. params['fee_currency'] = self.fee_currency.to_alipay_dict()
  163. else:
  164. params['fee_currency'] = self.fee_currency
  165. if self.gmt_charge:
  166. if hasattr(self.gmt_charge, 'to_alipay_dict'):
  167. params['gmt_charge'] = self.gmt_charge.to_alipay_dict()
  168. else:
  169. params['gmt_charge'] = self.gmt_charge
  170. if self.gmt_receive:
  171. if hasattr(self.gmt_receive, 'to_alipay_dict'):
  172. params['gmt_receive'] = self.gmt_receive.to_alipay_dict()
  173. else:
  174. params['gmt_receive'] = self.gmt_receive
  175. if self.gmt_service:
  176. if hasattr(self.gmt_service, 'to_alipay_dict'):
  177. params['gmt_service'] = self.gmt_service.to_alipay_dict()
  178. else:
  179. params['gmt_service'] = self.gmt_service
  180. if self.op_mode:
  181. if hasattr(self.op_mode, 'to_alipay_dict'):
  182. params['op_mode'] = self.op_mode.to_alipay_dict()
  183. else:
  184. params['op_mode'] = self.op_mode
  185. if self.out_biz_no:
  186. if hasattr(self.out_biz_no, 'to_alipay_dict'):
  187. params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
  188. else:
  189. params['out_biz_no'] = self.out_biz_no
  190. if self.product_code:
  191. if hasattr(self.product_code, 'to_alipay_dict'):
  192. params['product_code'] = self.product_code.to_alipay_dict()
  193. else:
  194. params['product_code'] = self.product_code
  195. if self.properties:
  196. if hasattr(self.properties, 'to_alipay_dict'):
  197. params['properties'] = self.properties.to_alipay_dict()
  198. else:
  199. params['properties'] = self.properties
  200. if self.service_amount:
  201. if hasattr(self.service_amount, 'to_alipay_dict'):
  202. params['service_amount'] = self.service_amount.to_alipay_dict()
  203. else:
  204. params['service_amount'] = self.service_amount
  205. if self.settle_period:
  206. if hasattr(self.settle_period, 'to_alipay_dict'):
  207. params['settle_period'] = self.settle_period.to_alipay_dict()
  208. else:
  209. params['settle_period'] = self.settle_period
  210. if self.settle_postponed_time:
  211. if hasattr(self.settle_postponed_time, 'to_alipay_dict'):
  212. params['settle_postponed_time'] = self.settle_postponed_time.to_alipay_dict()
  213. else:
  214. params['settle_postponed_time'] = self.settle_postponed_time
  215. if self.settle_type:
  216. if hasattr(self.settle_type, 'to_alipay_dict'):
  217. params['settle_type'] = self.settle_type.to_alipay_dict()
  218. else:
  219. params['settle_type'] = self.settle_type
  220. if self.tnt_inst_id:
  221. if hasattr(self.tnt_inst_id, 'to_alipay_dict'):
  222. params['tnt_inst_id'] = self.tnt_inst_id.to_alipay_dict()
  223. else:
  224. params['tnt_inst_id'] = self.tnt_inst_id
  225. return params
  226. @staticmethod
  227. def from_alipay_dict(d):
  228. if not d:
  229. return None
  230. o = AlipayOpenOperationBizfeeAftechApplyModel()
  231. if 'app_name' in d:
  232. o.app_name = d['app_name']
  233. if 'ar_no' in d:
  234. o.ar_no = d['ar_no']
  235. if 'biz_no' in d:
  236. o.biz_no = d['biz_no']
  237. if 'customer' in d:
  238. o.customer = d['customer']
  239. if 'fee_amount' in d:
  240. o.fee_amount = d['fee_amount']
  241. if 'fee_currency' in d:
  242. o.fee_currency = d['fee_currency']
  243. if 'gmt_charge' in d:
  244. o.gmt_charge = d['gmt_charge']
  245. if 'gmt_receive' in d:
  246. o.gmt_receive = d['gmt_receive']
  247. if 'gmt_service' in d:
  248. o.gmt_service = d['gmt_service']
  249. if 'op_mode' in d:
  250. o.op_mode = d['op_mode']
  251. if 'out_biz_no' in d:
  252. o.out_biz_no = d['out_biz_no']
  253. if 'product_code' in d:
  254. o.product_code = d['product_code']
  255. if 'properties' in d:
  256. o.properties = d['properties']
  257. if 'service_amount' in d:
  258. o.service_amount = d['service_amount']
  259. if 'settle_period' in d:
  260. o.settle_period = d['settle_period']
  261. if 'settle_postponed_time' in d:
  262. o.settle_postponed_time = d['settle_postponed_time']
  263. if 'settle_type' in d:
  264. o.settle_type = d['settle_type']
  265. if 'tnt_inst_id' in d:
  266. o.tnt_inst_id = d['tnt_inst_id']
  267. return o