File: main.py

package info (click to toggle)
chargebee2-python 2.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 740 kB
  • sloc: python: 2,492; makefile: 4; sh: 3
file content (23 lines) | stat: -rw-r--r-- 579 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os.path

from chargebee.environment import Environment


class ChargeBee(object):

    default_env = None

    verify_ca_certs = True
    ca_cert_path = os.path.join(os.path.dirname(__file__), 'ssl', 'ca-certs.crt')

    @classmethod
    def configure(cls, options):
        cls.default_env = Environment(options)

    @classmethod
    def update_connect_timeout_secs(cls,connect_timeout):
         cls.default_env.connect_timeout = connect_timeout

    @classmethod
    def update_read_timeout_secs(cls,read_timeout):
         cls.default_env.read_timeout = read_timeout