AntMerchantExpandBenefitVerifyModel.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 AntMerchantExpandBenefitVerifyModel(object):
  6. def __init__(self):
  7. self._biz_ext = None
  8. self._out_biz_time = None
  9. self._out_user_id = None
  10. self._record_id = None
  11. self._user_id = None
  12. @property
  13. def biz_ext(self):
  14. return self._biz_ext
  15. @biz_ext.setter
  16. def biz_ext(self, value):
  17. self._biz_ext = value
  18. @property
  19. def out_biz_time(self):
  20. return self._out_biz_time
  21. @out_biz_time.setter
  22. def out_biz_time(self, value):
  23. self._out_biz_time = value
  24. @property
  25. def out_user_id(self):
  26. return self._out_user_id
  27. @out_user_id.setter
  28. def out_user_id(self, value):
  29. self._out_user_id = value
  30. @property
  31. def record_id(self):
  32. return self._record_id
  33. @record_id.setter
  34. def record_id(self, value):
  35. self._record_id = value
  36. @property
  37. def user_id(self):
  38. return self._user_id
  39. @user_id.setter
  40. def user_id(self, value):
  41. self._user_id = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.biz_ext:
  45. if hasattr(self.biz_ext, 'to_alipay_dict'):
  46. params['biz_ext'] = self.biz_ext.to_alipay_dict()
  47. else:
  48. params['biz_ext'] = self.biz_ext
  49. if self.out_biz_time:
  50. if hasattr(self.out_biz_time, 'to_alipay_dict'):
  51. params['out_biz_time'] = self.out_biz_time.to_alipay_dict()
  52. else:
  53. params['out_biz_time'] = self.out_biz_time
  54. if self.out_user_id:
  55. if hasattr(self.out_user_id, 'to_alipay_dict'):
  56. params['out_user_id'] = self.out_user_id.to_alipay_dict()
  57. else:
  58. params['out_user_id'] = self.out_user_id
  59. if self.record_id:
  60. if hasattr(self.record_id, 'to_alipay_dict'):
  61. params['record_id'] = self.record_id.to_alipay_dict()
  62. else:
  63. params['record_id'] = self.record_id
  64. if self.user_id:
  65. if hasattr(self.user_id, 'to_alipay_dict'):
  66. params['user_id'] = self.user_id.to_alipay_dict()
  67. else:
  68. params['user_id'] = self.user_id
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AntMerchantExpandBenefitVerifyModel()
  75. if 'biz_ext' in d:
  76. o.biz_ext = d['biz_ext']
  77. if 'out_biz_time' in d:
  78. o.out_biz_time = d['out_biz_time']
  79. if 'out_user_id' in d:
  80. o.out_user_id = d['out_user_id']
  81. if 'record_id' in d:
  82. o.record_id = d['record_id']
  83. if 'user_id' in d:
  84. o.user_id = d['user_id']
  85. return o