__init__.py 874 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. from library.jdopen.client import api
  4. from library.jdopen.client.base import JdOpenBaseClient
  5. class JdOpenMerchantClient(JdOpenBaseClient):
  6. API_BASE_URL = "https://openapi.duolabao.com/"
  7. # API_BASE_URL = 'https://openapi-uat.duolabao.com/'
  8. support = api.JdOpenSupport # type: api.JdOpenSupport
  9. customer = api.JdOpenCustomer # type: api.JdOpenCustomer
  10. settle = api.JdOpenSettle # type: api.JdOpenSettle
  11. shop = api.JdOpenShop # type: api.JdOpenShop
  12. attach = api.JdOpenAttach # type: api.JdOpenAttach
  13. complete = api.JdOpenComplete # type: api.JdOpenComplete
  14. audit = api.JdOpenAudit # type: api.JdOpenAudit
  15. def __str__(self):
  16. return "[JdOpenMerchantClient] accessKey = {}********".format(self._secretKey[: -8])