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