AlipayOpenOperationBizfeeAftechCancelModel.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayOpenOperationBizfeeAftechCancelModel(object):
  6. def __init__(self):
  7. self._app_name = None
  8. self._gmt_service = None
  9. self._order_no = None
  10. self._out_biz_no = None
  11. self._tnt_inst_id = None
  12. @property
  13. def app_name(self):
  14. return self._app_name
  15. @app_name.setter
  16. def app_name(self, value):
  17. self._app_name = value
  18. @property
  19. def gmt_service(self):
  20. return self._gmt_service
  21. @gmt_service.setter
  22. def gmt_service(self, value):
  23. self._gmt_service = value
  24. @property
  25. def order_no(self):
  26. return self._order_no
  27. @order_no.setter
  28. def order_no(self, value):
  29. self._order_no = value
  30. @property
  31. def out_biz_no(self):
  32. return self._out_biz_no
  33. @out_biz_no.setter
  34. def out_biz_no(self, value):
  35. self._out_biz_no = value
  36. @property
  37. def tnt_inst_id(self):
  38. return self._tnt_inst_id
  39. @tnt_inst_id.setter
  40. def tnt_inst_id(self, value):
  41. self._tnt_inst_id = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.app_name:
  45. if hasattr(self.app_name, 'to_alipay_dict'):
  46. params['app_name'] = self.app_name.to_alipay_dict()
  47. else:
  48. params['app_name'] = self.app_name
  49. if self.gmt_service:
  50. if hasattr(self.gmt_service, 'to_alipay_dict'):
  51. params['gmt_service'] = self.gmt_service.to_alipay_dict()
  52. else:
  53. params['gmt_service'] = self.gmt_service
  54. if self.order_no:
  55. if hasattr(self.order_no, 'to_alipay_dict'):
  56. params['order_no'] = self.order_no.to_alipay_dict()
  57. else:
  58. params['order_no'] = self.order_no
  59. if self.out_biz_no:
  60. if hasattr(self.out_biz_no, 'to_alipay_dict'):
  61. params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
  62. else:
  63. params['out_biz_no'] = self.out_biz_no
  64. if self.tnt_inst_id:
  65. if hasattr(self.tnt_inst_id, 'to_alipay_dict'):
  66. params['tnt_inst_id'] = self.tnt_inst_id.to_alipay_dict()
  67. else:
  68. params['tnt_inst_id'] = self.tnt_inst_id
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AlipayOpenOperationBizfeeAftechCancelModel()
  75. if 'app_name' in d:
  76. o.app_name = d['app_name']
  77. if 'gmt_service' in d:
  78. o.gmt_service = d['gmt_service']
  79. if 'order_no' in d:
  80. o.order_no = d['order_no']
  81. if 'out_biz_no' in d:
  82. o.out_biz_no = d['out_biz_no']
  83. if 'tnt_inst_id' in d:
  84. o.tnt_inst_id = d['tnt_inst_id']
  85. return o