AlipayEbppIndustryBizinfoApplyModel.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEbppIndustryBizinfoApplyModel(object):
  6. def __init__(self):
  7. self._ability_code = None
  8. self._bill_key = None
  9. self._biz_inst = None
  10. self._biz_type = None
  11. self._out_apply_no = None
  12. self._request_context = None
  13. @property
  14. def ability_code(self):
  15. return self._ability_code
  16. @ability_code.setter
  17. def ability_code(self, value):
  18. self._ability_code = value
  19. @property
  20. def bill_key(self):
  21. return self._bill_key
  22. @bill_key.setter
  23. def bill_key(self, value):
  24. self._bill_key = value
  25. @property
  26. def biz_inst(self):
  27. return self._biz_inst
  28. @biz_inst.setter
  29. def biz_inst(self, value):
  30. self._biz_inst = value
  31. @property
  32. def biz_type(self):
  33. return self._biz_type
  34. @biz_type.setter
  35. def biz_type(self, value):
  36. self._biz_type = value
  37. @property
  38. def out_apply_no(self):
  39. return self._out_apply_no
  40. @out_apply_no.setter
  41. def out_apply_no(self, value):
  42. self._out_apply_no = value
  43. @property
  44. def request_context(self):
  45. return self._request_context
  46. @request_context.setter
  47. def request_context(self, value):
  48. self._request_context = value
  49. def to_alipay_dict(self):
  50. params = dict()
  51. if self.ability_code:
  52. if hasattr(self.ability_code, 'to_alipay_dict'):
  53. params['ability_code'] = self.ability_code.to_alipay_dict()
  54. else:
  55. params['ability_code'] = self.ability_code
  56. if self.bill_key:
  57. if hasattr(self.bill_key, 'to_alipay_dict'):
  58. params['bill_key'] = self.bill_key.to_alipay_dict()
  59. else:
  60. params['bill_key'] = self.bill_key
  61. if self.biz_inst:
  62. if hasattr(self.biz_inst, 'to_alipay_dict'):
  63. params['biz_inst'] = self.biz_inst.to_alipay_dict()
  64. else:
  65. params['biz_inst'] = self.biz_inst
  66. if self.biz_type:
  67. if hasattr(self.biz_type, 'to_alipay_dict'):
  68. params['biz_type'] = self.biz_type.to_alipay_dict()
  69. else:
  70. params['biz_type'] = self.biz_type
  71. if self.out_apply_no:
  72. if hasattr(self.out_apply_no, 'to_alipay_dict'):
  73. params['out_apply_no'] = self.out_apply_no.to_alipay_dict()
  74. else:
  75. params['out_apply_no'] = self.out_apply_no
  76. if self.request_context:
  77. if hasattr(self.request_context, 'to_alipay_dict'):
  78. params['request_context'] = self.request_context.to_alipay_dict()
  79. else:
  80. params['request_context'] = self.request_context
  81. return params
  82. @staticmethod
  83. def from_alipay_dict(d):
  84. if not d:
  85. return None
  86. o = AlipayEbppIndustryBizinfoApplyModel()
  87. if 'ability_code' in d:
  88. o.ability_code = d['ability_code']
  89. if 'bill_key' in d:
  90. o.bill_key = d['bill_key']
  91. if 'biz_inst' in d:
  92. o.biz_inst = d['biz_inst']
  93. if 'biz_type' in d:
  94. o.biz_type = d['biz_type']
  95. if 'out_apply_no' in d:
  96. o.out_apply_no = d['out_apply_no']
  97. if 'request_context' in d:
  98. o.request_context = d['request_context']
  99. return o