AlipayOpenOperationBizfeeAftechSubscribeModel.py 8.2 KB

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