MybankFinanceAccountRysenterpriseQueryModel.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class MybankFinanceAccountRysenterpriseQueryModel(object):
  6. def __init__(self):
  7. self._account_no = None
  8. self._ip_id = None
  9. self._ip_role_id = None
  10. self._out_channel_id = None
  11. self._out_channel_type = None
  12. self._scene_code = None
  13. self._tnt_inst_id = None
  14. @property
  15. def account_no(self):
  16. return self._account_no
  17. @account_no.setter
  18. def account_no(self, value):
  19. self._account_no = value
  20. @property
  21. def ip_id(self):
  22. return self._ip_id
  23. @ip_id.setter
  24. def ip_id(self, value):
  25. self._ip_id = value
  26. @property
  27. def ip_role_id(self):
  28. return self._ip_role_id
  29. @ip_role_id.setter
  30. def ip_role_id(self, value):
  31. self._ip_role_id = value
  32. @property
  33. def out_channel_id(self):
  34. return self._out_channel_id
  35. @out_channel_id.setter
  36. def out_channel_id(self, value):
  37. self._out_channel_id = value
  38. @property
  39. def out_channel_type(self):
  40. return self._out_channel_type
  41. @out_channel_type.setter
  42. def out_channel_type(self, value):
  43. self._out_channel_type = value
  44. @property
  45. def scene_code(self):
  46. return self._scene_code
  47. @scene_code.setter
  48. def scene_code(self, value):
  49. self._scene_code = value
  50. @property
  51. def tnt_inst_id(self):
  52. return self._tnt_inst_id
  53. @tnt_inst_id.setter
  54. def tnt_inst_id(self, value):
  55. self._tnt_inst_id = value
  56. def to_alipay_dict(self):
  57. params = dict()
  58. if self.account_no:
  59. if hasattr(self.account_no, 'to_alipay_dict'):
  60. params['account_no'] = self.account_no.to_alipay_dict()
  61. else:
  62. params['account_no'] = self.account_no
  63. if self.ip_id:
  64. if hasattr(self.ip_id, 'to_alipay_dict'):
  65. params['ip_id'] = self.ip_id.to_alipay_dict()
  66. else:
  67. params['ip_id'] = self.ip_id
  68. if self.ip_role_id:
  69. if hasattr(self.ip_role_id, 'to_alipay_dict'):
  70. params['ip_role_id'] = self.ip_role_id.to_alipay_dict()
  71. else:
  72. params['ip_role_id'] = self.ip_role_id
  73. if self.out_channel_id:
  74. if hasattr(self.out_channel_id, 'to_alipay_dict'):
  75. params['out_channel_id'] = self.out_channel_id.to_alipay_dict()
  76. else:
  77. params['out_channel_id'] = self.out_channel_id
  78. if self.out_channel_type:
  79. if hasattr(self.out_channel_type, 'to_alipay_dict'):
  80. params['out_channel_type'] = self.out_channel_type.to_alipay_dict()
  81. else:
  82. params['out_channel_type'] = self.out_channel_type
  83. if self.scene_code:
  84. if hasattr(self.scene_code, 'to_alipay_dict'):
  85. params['scene_code'] = self.scene_code.to_alipay_dict()
  86. else:
  87. params['scene_code'] = self.scene_code
  88. if self.tnt_inst_id:
  89. if hasattr(self.tnt_inst_id, 'to_alipay_dict'):
  90. params['tnt_inst_id'] = self.tnt_inst_id.to_alipay_dict()
  91. else:
  92. params['tnt_inst_id'] = self.tnt_inst_id
  93. return params
  94. @staticmethod
  95. def from_alipay_dict(d):
  96. if not d:
  97. return None
  98. o = MybankFinanceAccountRysenterpriseQueryModel()
  99. if 'account_no' in d:
  100. o.account_no = d['account_no']
  101. if 'ip_id' in d:
  102. o.ip_id = d['ip_id']
  103. if 'ip_role_id' in d:
  104. o.ip_role_id = d['ip_role_id']
  105. if 'out_channel_id' in d:
  106. o.out_channel_id = d['out_channel_id']
  107. if 'out_channel_type' in d:
  108. o.out_channel_type = d['out_channel_type']
  109. if 'scene_code' in d:
  110. o.scene_code = d['scene_code']
  111. if 'tnt_inst_id' in d:
  112. o.tnt_inst_id = d['tnt_inst_id']
  113. return o