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