__init__.py 895 B

123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. from typing import Union, TYPE_CHECKING
  4. from apps.web.core.payment.base import PaymentGateway
  5. from apps.web.core.payment.base import WithdrawGateway
  6. if TYPE_CHECKING:
  7. from apps.web.core.payment.ali import AliPayGateway
  8. from apps.web.core.payment.dlb import DlbPaymentGateway
  9. from apps.web.core.payment.jdaggre import JDAggrePaymentGateway
  10. from apps.web.core.payment.saobei import SaobeiPaymentGateway
  11. from apps.web.core.payment.wechat import WechatPaymentGateway
  12. from apps.web.core.payment.jdopen import JDOpenPaymentGateway
  13. PaymentGatewayT = Union[
  14. AliPayGateway, WechatPaymentGateway, SaobeiPaymentGateway,
  15. DlbPaymentGateway, JDAggrePaymentGateway, JDOpenPaymentGateway]
  16. WechatMiniPaymentGatewayT = Union[WechatPaymentGateway, JDOpenPaymentGateway, JDAggrePaymentGateway]