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