|
1 |
| -from typing import Any |
| 1 | +from _typeshed import Incomplete |
| 2 | +from typing import ClassVar |
2 | 3 |
|
3 | 4 | from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError
|
4 | 5 |
|
5 | 6 | class Environment:
|
6 |
| - __name__: Any |
7 |
| - is_ssl: Any |
8 |
| - ssl_certificate: Any |
| 7 | + Development: ClassVar[Environment] |
| 8 | + QA: ClassVar[Environment] |
| 9 | + Sandbox: ClassVar[Environment] |
| 10 | + Production: ClassVar[Environment] |
| 11 | + All: ClassVar[dict[str, Environment]] |
| 12 | + __name__: str |
| 13 | + is_ssl: bool |
| 14 | + ssl_certificate: Incomplete |
9 | 15 | def __init__(
|
10 |
| - self, name, server, port, auth_url, is_ssl, ssl_certificate, graphql_server: str = "", graphql_port: str = "" |
| 16 | + self, |
| 17 | + name, |
| 18 | + server: str, |
| 19 | + port, |
| 20 | + auth_url: str, |
| 21 | + is_ssl: bool, |
| 22 | + ssl_certificate, |
| 23 | + graphql_server: str = "", |
| 24 | + graphql_port: str = "", |
11 | 25 | ) -> None: ...
|
12 | 26 | @property
|
13 |
| - def base_url(self): ... |
| 27 | + def base_url(self) -> str: ... |
14 | 28 | @property
|
15 |
| - def port(self): ... |
| 29 | + def port(self) -> int: ... |
16 | 30 | @property
|
17 |
| - def auth_url(self): ... |
| 31 | + def auth_url(self) -> str: ... |
18 | 32 | @property
|
19 |
| - def protocol(self): ... |
| 33 | + def protocol(self) -> str: ... |
20 | 34 | @property
|
21 |
| - def server(self): ... |
| 35 | + def server(self) -> str: ... |
22 | 36 | @property
|
23 |
| - def server_and_port(self): ... |
| 37 | + def server_and_port(self) -> str: ... |
24 | 38 | @property
|
25 |
| - def graphql_server(self): ... |
| 39 | + def graphql_server(self) -> str: ... |
26 | 40 | @property
|
27 |
| - def graphql_port(self): ... |
| 41 | + def graphql_port(self) -> str: ... |
28 | 42 | @property
|
29 |
| - def graphql_server_and_port(self): ... |
| 43 | + def graphql_server_and_port(self) -> str: ... |
30 | 44 | @staticmethod
|
31 |
| - def parse_environment(environment): ... |
| 45 | + def parse_environment(environment: Environment | str | None) -> Environment | None: ... |
32 | 46 | @staticmethod
|
33 |
| - def braintree_root(): ... |
| 47 | + def braintree_root() -> str: ... |
0 commit comments