AlipayEbppPdeductSignQueryModel.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEbppPdeductSignQueryModel(object):
  6. def __init__(self):
  7. self._agreement_id = None
  8. self._bill_key = None
  9. self._biz_type = None
  10. self._charge_inst = None
  11. self._sub_biz_type = None
  12. self._user_id = None
  13. @property
  14. def agreement_id(self):
  15. return self._agreement_id
  16. @agreement_id.setter
  17. def agreement_id(self, value):
  18. self._agreement_id = value
  19. @property
  20. def bill_key(self):
  21. return self._bill_key
  22. @bill_key.setter
  23. def bill_key(self, value):
  24. self._bill_key = value
  25. @property
  26. def biz_type(self):
  27. return self._biz_type
  28. @biz_type.setter
  29. def biz_type(self, value):
  30. self._biz_type = value
  31. @property
  32. def charge_inst(self):
  33. return self._charge_inst
  34. @charge_inst.setter
  35. def charge_inst(self, value):
  36. self._charge_inst = value
  37. @property
  38. def sub_biz_type(self):
  39. return self._sub_biz_type
  40. @sub_biz_type.setter
  41. def sub_biz_type(self, value):
  42. self._sub_biz_type = value
  43. @property
  44. def user_id(self):
  45. return self._user_id
  46. @user_id.setter
  47. def user_id(self, value):
  48. self._user_id = value
  49. def to_alipay_dict(self):
  50. params = dict()
  51. if self.agreement_id:
  52. if hasattr(self.agreement_id, 'to_alipay_dict'):
  53. params['agreement_id'] = self.agreement_id.to_alipay_dict()
  54. else:
  55. params['agreement_id'] = self.agreement_id
  56. if self.bill_key:
  57. if hasattr(self.bill_key, 'to_alipay_dict'):
  58. params['bill_key'] = self.bill_key.to_alipay_dict()
  59. else:
  60. params['bill_key'] = self.bill_key
  61. if self.biz_type:
  62. if hasattr(self.biz_type, 'to_alipay_dict'):
  63. params['biz_type'] = self.biz_type.to_alipay_dict()
  64. else:
  65. params['biz_type'] = self.biz_type
  66. if self.charge_inst:
  67. if hasattr(self.charge_inst, 'to_alipay_dict'):
  68. params['charge_inst'] = self.charge_inst.to_alipay_dict()
  69. else:
  70. params['charge_inst'] = self.charge_inst
  71. if self.sub_biz_type:
  72. if hasattr(self.sub_biz_type, 'to_alipay_dict'):
  73. params['sub_biz_type'] = self.sub_biz_type.to_alipay_dict()
  74. else:
  75. params['sub_biz_type'] = self.sub_biz_type
  76. if self.user_id:
  77. if hasattr(self.user_id, 'to_alipay_dict'):
  78. params['user_id'] = self.user_id.to_alipay_dict()
  79. else:
  80. params['user_id'] = self.user_id
  81. return params
  82. @staticmethod
  83. def from_alipay_dict(d):
  84. if not d:
  85. return None
  86. o = AlipayEbppPdeductSignQueryModel()
  87. if 'agreement_id' in d:
  88. o.agreement_id = d['agreement_id']
  89. if 'bill_key' in d:
  90. o.bill_key = d['bill_key']
  91. if 'biz_type' in d:
  92. o.biz_type = d['biz_type']
  93. if 'charge_inst' in d:
  94. o.charge_inst = d['charge_inst']
  95. if 'sub_biz_type' in d:
  96. o.sub_biz_type = d['sub_biz_type']
  97. if 'user_id' in d:
  98. o.user_id = d['user_id']
  99. return o