platform.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. import logging
  4. from typing import TYPE_CHECKING
  5. from apps.web.core.payment import PaymentGateway
  6. if TYPE_CHECKING:
  7. pass
  8. logger = logging.getLogger(__name__)
  9. class PlatformPromotionPaymentGateway(PaymentGateway):
  10. def __init__(self, app, gateway_type):
  11. super(PlatformPromotionPaymentGateway, self).__init__(app)
  12. self.__gateway_type__ = gateway_type
  13. def __repr__(self):
  14. return '<PlatformPromotionPaymentGateway(occupantId = %s)>' % (
  15. str(self.occupantId))
  16. class PlatformReconcilePaymentGateway(PaymentGateway):
  17. def __init__(self, app, gateway_type):
  18. super(PlatformReconcilePaymentGateway, self).__init__(app)
  19. self.__gateway_type__ = gateway_type
  20. def __repr__(self):
  21. return '<PlatformReconcilePaymentGateway(occupantId = %s)>' % (
  22. str(self.occupantId))
  23. class PlatformWalletPaymentGateway(PaymentGateway):
  24. def __init__(self, app, gateway_type):
  25. super(PlatformWalletPaymentGateway, self).__init__(app)
  26. self.__gateway_type__ = gateway_type
  27. def __repr__(self):
  28. return '<PlatformWalletPaymentGateway(occupantId = %s)>' % (
  29. str(self.occupantId))