MybankCreditLoantradeLoanschemeQueryModel.py 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class MybankCreditLoantradeLoanschemeQueryModel(object):
  6. def __init__(self):
  7. self._biz = None
  8. self._biz_no = None
  9. self._entity_code = None
  10. self._entity_name = None
  11. self._entity_type = None
  12. self._loan_policy_code = None
  13. self._out_uni_code = None
  14. self._sale_pd_code = None
  15. self._scen = None
  16. @property
  17. def biz(self):
  18. return self._biz
  19. @biz.setter
  20. def biz(self, value):
  21. self._biz = value
  22. @property
  23. def biz_no(self):
  24. return self._biz_no
  25. @biz_no.setter
  26. def biz_no(self, value):
  27. self._biz_no = value
  28. @property
  29. def entity_code(self):
  30. return self._entity_code
  31. @entity_code.setter
  32. def entity_code(self, value):
  33. self._entity_code = value
  34. @property
  35. def entity_name(self):
  36. return self._entity_name
  37. @entity_name.setter
  38. def entity_name(self, value):
  39. self._entity_name = value
  40. @property
  41. def entity_type(self):
  42. return self._entity_type
  43. @entity_type.setter
  44. def entity_type(self, value):
  45. self._entity_type = value
  46. @property
  47. def loan_policy_code(self):
  48. return self._loan_policy_code
  49. @loan_policy_code.setter
  50. def loan_policy_code(self, value):
  51. self._loan_policy_code = value
  52. @property
  53. def out_uni_code(self):
  54. return self._out_uni_code
  55. @out_uni_code.setter
  56. def out_uni_code(self, value):
  57. self._out_uni_code = value
  58. @property
  59. def sale_pd_code(self):
  60. return self._sale_pd_code
  61. @sale_pd_code.setter
  62. def sale_pd_code(self, value):
  63. self._sale_pd_code = value
  64. @property
  65. def scen(self):
  66. return self._scen
  67. @scen.setter
  68. def scen(self, value):
  69. self._scen = value
  70. def to_alipay_dict(self):
  71. params = dict()
  72. if self.biz:
  73. if hasattr(self.biz, 'to_alipay_dict'):
  74. params['biz'] = self.biz.to_alipay_dict()
  75. else:
  76. params['biz'] = self.biz
  77. if self.biz_no:
  78. if hasattr(self.biz_no, 'to_alipay_dict'):
  79. params['biz_no'] = self.biz_no.to_alipay_dict()
  80. else:
  81. params['biz_no'] = self.biz_no
  82. if self.entity_code:
  83. if hasattr(self.entity_code, 'to_alipay_dict'):
  84. params['entity_code'] = self.entity_code.to_alipay_dict()
  85. else:
  86. params['entity_code'] = self.entity_code
  87. if self.entity_name:
  88. if hasattr(self.entity_name, 'to_alipay_dict'):
  89. params['entity_name'] = self.entity_name.to_alipay_dict()
  90. else:
  91. params['entity_name'] = self.entity_name
  92. if self.entity_type:
  93. if hasattr(self.entity_type, 'to_alipay_dict'):
  94. params['entity_type'] = self.entity_type.to_alipay_dict()
  95. else:
  96. params['entity_type'] = self.entity_type
  97. if self.loan_policy_code:
  98. if hasattr(self.loan_policy_code, 'to_alipay_dict'):
  99. params['loan_policy_code'] = self.loan_policy_code.to_alipay_dict()
  100. else:
  101. params['loan_policy_code'] = self.loan_policy_code
  102. if self.out_uni_code:
  103. if hasattr(self.out_uni_code, 'to_alipay_dict'):
  104. params['out_uni_code'] = self.out_uni_code.to_alipay_dict()
  105. else:
  106. params['out_uni_code'] = self.out_uni_code
  107. if self.sale_pd_code:
  108. if hasattr(self.sale_pd_code, 'to_alipay_dict'):
  109. params['sale_pd_code'] = self.sale_pd_code.to_alipay_dict()
  110. else:
  111. params['sale_pd_code'] = self.sale_pd_code
  112. if self.scen:
  113. if hasattr(self.scen, 'to_alipay_dict'):
  114. params['scen'] = self.scen.to_alipay_dict()
  115. else:
  116. params['scen'] = self.scen
  117. return params
  118. @staticmethod
  119. def from_alipay_dict(d):
  120. if not d:
  121. return None
  122. o = MybankCreditLoantradeLoanschemeQueryModel()
  123. if 'biz' in d:
  124. o.biz = d['biz']
  125. if 'biz_no' in d:
  126. o.biz_no = d['biz_no']
  127. if 'entity_code' in d:
  128. o.entity_code = d['entity_code']
  129. if 'entity_name' in d:
  130. o.entity_name = d['entity_name']
  131. if 'entity_type' in d:
  132. o.entity_type = d['entity_type']
  133. if 'loan_policy_code' in d:
  134. o.loan_policy_code = d['loan_policy_code']
  135. if 'out_uni_code' in d:
  136. o.out_uni_code = d['out_uni_code']
  137. if 'sale_pd_code' in d:
  138. o.sale_pd_code = d['sale_pd_code']
  139. if 'scen' in d:
  140. o.scen = d['scen']
  141. return o