mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Improve stubs for braintree.environment (#10907)
This commit is contained in:
@@ -1,33 +1,47 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
|
||||
from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError
|
||||
|
||||
class Environment:
|
||||
__name__: Any
|
||||
is_ssl: Any
|
||||
ssl_certificate: Any
|
||||
Development: ClassVar[Environment]
|
||||
QA: ClassVar[Environment]
|
||||
Sandbox: ClassVar[Environment]
|
||||
Production: ClassVar[Environment]
|
||||
All: ClassVar[dict[str, Environment]]
|
||||
__name__: str
|
||||
is_ssl: bool
|
||||
ssl_certificate: Incomplete
|
||||
def __init__(
|
||||
self, name, server, port, auth_url, is_ssl, ssl_certificate, graphql_server: str = "", graphql_port: str = ""
|
||||
self,
|
||||
name,
|
||||
server: str,
|
||||
port,
|
||||
auth_url: str,
|
||||
is_ssl: bool,
|
||||
ssl_certificate,
|
||||
graphql_server: str = "",
|
||||
graphql_port: str = "",
|
||||
) -> None: ...
|
||||
@property
|
||||
def base_url(self): ...
|
||||
def base_url(self) -> str: ...
|
||||
@property
|
||||
def port(self): ...
|
||||
def port(self) -> int: ...
|
||||
@property
|
||||
def auth_url(self): ...
|
||||
def auth_url(self) -> str: ...
|
||||
@property
|
||||
def protocol(self): ...
|
||||
def protocol(self) -> str: ...
|
||||
@property
|
||||
def server(self): ...
|
||||
def server(self) -> str: ...
|
||||
@property
|
||||
def server_and_port(self): ...
|
||||
def server_and_port(self) -> str: ...
|
||||
@property
|
||||
def graphql_server(self): ...
|
||||
def graphql_server(self) -> str: ...
|
||||
@property
|
||||
def graphql_port(self): ...
|
||||
def graphql_port(self) -> str: ...
|
||||
@property
|
||||
def graphql_server_and_port(self): ...
|
||||
def graphql_server_and_port(self) -> str: ...
|
||||
@staticmethod
|
||||
def parse_environment(environment): ...
|
||||
def parse_environment(environment: Environment | str | None) -> Environment | None: ...
|
||||
@staticmethod
|
||||
def braintree_root(): ...
|
||||
def braintree_root() -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user