AlipayUserUnicomMobileSyncModel.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayUserUnicomMobileSyncModel(object):
  6. def __init__(self):
  7. self._gmt_status_change = None
  8. self._mobile = None
  9. self._operation_type = None
  10. self._out_biz_no = None
  11. self._product_name = None
  12. @property
  13. def gmt_status_change(self):
  14. return self._gmt_status_change
  15. @gmt_status_change.setter
  16. def gmt_status_change(self, value):
  17. self._gmt_status_change = value
  18. @property
  19. def mobile(self):
  20. return self._mobile
  21. @mobile.setter
  22. def mobile(self, value):
  23. self._mobile = value
  24. @property
  25. def operation_type(self):
  26. return self._operation_type
  27. @operation_type.setter
  28. def operation_type(self, value):
  29. self._operation_type = 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 product_name(self):
  38. return self._product_name
  39. @product_name.setter
  40. def product_name(self, value):
  41. self._product_name = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.gmt_status_change:
  45. if hasattr(self.gmt_status_change, 'to_alipay_dict'):
  46. params['gmt_status_change'] = self.gmt_status_change.to_alipay_dict()
  47. else:
  48. params['gmt_status_change'] = self.gmt_status_change
  49. if self.mobile:
  50. if hasattr(self.mobile, 'to_alipay_dict'):
  51. params['mobile'] = self.mobile.to_alipay_dict()
  52. else:
  53. params['mobile'] = self.mobile
  54. if self.operation_type:
  55. if hasattr(self.operation_type, 'to_alipay_dict'):
  56. params['operation_type'] = self.operation_type.to_alipay_dict()
  57. else:
  58. params['operation_type'] = self.operation_type
  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.product_name:
  65. if hasattr(self.product_name, 'to_alipay_dict'):
  66. params['product_name'] = self.product_name.to_alipay_dict()
  67. else:
  68. params['product_name'] = self.product_name
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AlipayUserUnicomMobileSyncModel()
  75. if 'gmt_status_change' in d:
  76. o.gmt_status_change = d['gmt_status_change']
  77. if 'mobile' in d:
  78. o.mobile = d['mobile']
  79. if 'operation_type' in d:
  80. o.operation_type = d['operation_type']
  81. if 'out_biz_no' in d:
  82. o.out_biz_no = d['out_biz_no']
  83. if 'product_name' in d:
  84. o.product_name = d['product_name']
  85. return o