AlipayEbppInvoiceFinancialBlockchainBatchqueryModel.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEbppInvoiceFinancialBlockchainBatchqueryModel(object):
  6. def __init__(self):
  7. self._cert_no_hash = None
  8. self._cert_type = None
  9. self._current_page = None
  10. self._invoice_kind = None
  11. self._page_size = None
  12. @property
  13. def cert_no_hash(self):
  14. return self._cert_no_hash
  15. @cert_no_hash.setter
  16. def cert_no_hash(self, value):
  17. self._cert_no_hash = value
  18. @property
  19. def cert_type(self):
  20. return self._cert_type
  21. @cert_type.setter
  22. def cert_type(self, value):
  23. self._cert_type = value
  24. @property
  25. def current_page(self):
  26. return self._current_page
  27. @current_page.setter
  28. def current_page(self, value):
  29. self._current_page = value
  30. @property
  31. def invoice_kind(self):
  32. return self._invoice_kind
  33. @invoice_kind.setter
  34. def invoice_kind(self, value):
  35. self._invoice_kind = value
  36. @property
  37. def page_size(self):
  38. return self._page_size
  39. @page_size.setter
  40. def page_size(self, value):
  41. self._page_size = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.cert_no_hash:
  45. if hasattr(self.cert_no_hash, 'to_alipay_dict'):
  46. params['cert_no_hash'] = self.cert_no_hash.to_alipay_dict()
  47. else:
  48. params['cert_no_hash'] = self.cert_no_hash
  49. if self.cert_type:
  50. if hasattr(self.cert_type, 'to_alipay_dict'):
  51. params['cert_type'] = self.cert_type.to_alipay_dict()
  52. else:
  53. params['cert_type'] = self.cert_type
  54. if self.current_page:
  55. if hasattr(self.current_page, 'to_alipay_dict'):
  56. params['current_page'] = self.current_page.to_alipay_dict()
  57. else:
  58. params['current_page'] = self.current_page
  59. if self.invoice_kind:
  60. if hasattr(self.invoice_kind, 'to_alipay_dict'):
  61. params['invoice_kind'] = self.invoice_kind.to_alipay_dict()
  62. else:
  63. params['invoice_kind'] = self.invoice_kind
  64. if self.page_size:
  65. if hasattr(self.page_size, 'to_alipay_dict'):
  66. params['page_size'] = self.page_size.to_alipay_dict()
  67. else:
  68. params['page_size'] = self.page_size
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AlipayEbppInvoiceFinancialBlockchainBatchqueryModel()
  75. if 'cert_no_hash' in d:
  76. o.cert_no_hash = d['cert_no_hash']
  77. if 'cert_type' in d:
  78. o.cert_type = d['cert_type']
  79. if 'current_page' in d:
  80. o.current_page = d['current_page']
  81. if 'invoice_kind' in d:
  82. o.invoice_kind = d['invoice_kind']
  83. if 'page_size' in d:
  84. o.page_size = d['page_size']
  85. return o