Skip to content

Commit 71d4d2c

Browse files
committed
Bump
1 parent 218219e commit 71d4d2c

80 files changed

Lines changed: 415 additions & 281 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lithic/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
# File generated from our OpenAPI spec by Stainless.
22

33
from . import types
4-
from ._version import __version__, __title__
54
from ._client import (
5+
ENVIRONMENTS,
6+
Client,
7+
Lithic,
68
Timeout,
79
Transport,
8-
ProxiesTypes,
9-
RequestOptions,
10-
Client,
1110
AsyncClient,
12-
Lithic,
1311
AsyncLithic,
14-
ENVIRONMENTS,
12+
ProxiesTypes,
13+
RequestOptions,
1514
)
15+
from ._version import __title__, __version__
1616
from .exceptions import (
1717
APIError,
18-
APIConnectionError,
18+
ConflictError,
19+
NotFoundError,
20+
APIStatusError,
21+
RateLimitError,
1922
APITimeoutError,
20-
APIResponseValidationError,
2123
BadRequestError,
24+
APIConnectionError,
2225
AuthenticationError,
26+
InternalServerError,
2327
PermissionDeniedError,
24-
NotFoundError,
25-
ConflictError,
2628
UnprocessableEntityError,
27-
RateLimitError,
28-
InternalServerError,
29-
APIStatusError,
29+
APIResponseValidationError,
3030
)
3131

3232
__all__ = [

lithic/_base_client.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
from __future__ import annotations
22

3-
import time
43
import json
4+
import time
55
import inspect
66
import platform
77
from random import random
88
from typing import (
99
Any,
10-
TypeVar,
11-
Union,
12-
Optional,
10+
Dict,
1311
Type,
12+
Union,
1413
Generic,
15-
Generator,
16-
Iterator,
14+
Mapping,
15+
TypeVar,
1716
Iterable,
17+
Iterator,
18+
Optional,
19+
Generator,
1820
AsyncIterator,
19-
Mapping,
20-
Dict,
2121
cast,
2222
)
2323

@@ -26,18 +26,22 @@
2626
import pydantic
2727
from pydantic import PrivateAttr
2828

29-
from ._models import GenericModel, BaseModel, NoneModel
30-
from ._types import ModelT
3129
from ._types import (
3230
Query,
31+
ModelT,
3332
Timeout,
3433
Transport,
3534
ProxiesTypes,
3635
RequestOptions,
3736
FinalRequestOptions,
3837
)
39-
from .exceptions import APITimeoutError, APIConnectionError, APIResponseValidationError, make_status_error
40-
38+
from ._models import BaseModel, NoneModel, GenericModel
39+
from .exceptions import (
40+
APITimeoutError,
41+
APIConnectionError,
42+
APIResponseValidationError,
43+
make_status_error,
44+
)
4145

4246
# TODO: make base page type vars covariant
4347
SyncPageT = TypeVar("SyncPageT", bound="BaseSyncPage[Any]")

lithic/_client.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# File generated from our OpenAPI spec by Stainless.
22

33
import os
4-
from typing import Optional, Union, Dict
4+
from typing import Dict, Union, Optional
5+
56
from typing_extensions import Literal
7+
8+
from . import resources
69
from ._types import Timeout, Transport, ProxiesTypes, RequestOptions
10+
from ._version import __version__
11+
from .pagination import SyncPage, AsyncPage
712
from ._base_client import (
813
DEFAULT_TIMEOUT,
914
DEFAULT_MAX_RETRIES,
@@ -12,12 +17,8 @@
1217
AsyncPaginator,
1318
make_request_options,
1419
)
15-
from . import resources
16-
from ._version import __version__
17-
from .pagination import SyncPage, AsyncPage
1820
from .types.shipping_address import *
1921

20-
2122
__all__ = [
2223
"Lithic",
2324
"AsyncLithic",

lithic/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from typing import Any, Type, cast
34

45
import pydantic
@@ -7,7 +8,6 @@
78

89
from ._types import ModelT
910

10-
1111
__all__ = ["BaseModel", "GenericModel", "StringModel", "NoneModel"]
1212

1313

lithic/_resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from ._base_client import SyncAPIClient, AsyncAPIClient
34

45

lithic/_types.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Mapping, TypeVar, Dict, Union, Any
2-
from typing_extensions import TypedDict
1+
from typing import Any, Dict, Union, Mapping, TypeVar
32

43
import pydantic
5-
from httpx import Timeout, BaseTransport, Proxy
6-
4+
from httpx import Proxy, Timeout, BaseTransport
5+
from typing_extensions import TypedDict
76

87
Transport = BaseTransport
98
Query = Mapping[str, object]

lithic/exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from httpx import Request, Response
21
import json
2+
3+
from httpx import Request, Response
34
from typing_extensions import Literal
45

56

lithic/pagination.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from typing import Optional, TypeVar, List, Generic, Dict, Any
3+
from typing import Any, Dict, List, Generic, TypeVar, Optional
4+
45
from typing_extensions import TypedDict
6+
7+
from ._types import ModelT, FinalRequestOptions
58
from ._models import GenericModel
6-
from ._types import FinalRequestOptions, ModelT
79
from ._base_client import BasePage, BaseSyncPage, BaseAsyncPage
810

911
__all__ = ["PaginationParams", "SyncPage", "AsyncPage"]

lithic/resources/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from .account_holders import *
4-
from .accounts import *
5-
from .auth_rules import *
6-
from .auth_stream_enrollment import *
73
from .cards import *
8-
from .funding_sources import *
94
from .status import *
5+
from .accounts import *
6+
from .auth_rules import *
107
from .transactions import *
8+
from .account_holders import *
9+
from .funding_sources import *
10+
from .auth_stream_enrollment import *

lithic/resources/account_holders.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from typing import Optional, Union, List, Dict
3+
from typing import Dict, List, Union, Optional
44

55
from .._types import Timeout
6-
from .._base_client import AsyncPaginator, make_request_options
6+
from .._models import NoneModel, StringModel
77
from .._resource import SyncAPIResource, AsyncAPIResource
8-
from .._models import StringModel, NoneModel
98
from ..pagination import SyncPage, AsyncPage
9+
from .._base_client import AsyncPaginator, make_request_options
1010
from ..types.account_holder import *
1111
from ..types.account_holder_document import *
12-
from ..types.account_holder_create_webhook_response import *
13-
from ..types.account_holder_list_documents_response import *
1412
from ..types.account_holder_create_params import *
15-
from ..types.account_holder_create_webhook_params import *
1613
from ..types.account_holder_resubmit_params import *
14+
from ..types.account_holder_create_webhook_params import *
1715
from ..types.account_holder_upload_document_params import *
16+
from ..types.account_holder_create_webhook_response import *
17+
from ..types.account_holder_list_documents_response import *
1818

1919
__all__ = ["AccountHolders", "AsyncAccountHolders"]
2020

0 commit comments

Comments
 (0)