-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c7ad96
commit 3d25e4f
Showing
9 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.api_version package is deprecated and will become internal in the future. | ||
""", | ||
DeprecationWarning, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._api_version import ( # noqa | ||
_ApiVersion, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.app_info package is deprecated, please change your | ||
imports to import from stripe directly. | ||
From: | ||
from stripe.app_info import AppInfo | ||
To: | ||
from stripe import AppInfo | ||
""", | ||
DeprecationWarning, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._app_info import ( # noqa | ||
AppInfo, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.http_client package is deprecated, please change your | ||
imports to import from stripe directly. | ||
From: | ||
from stripe.http_client import HTTPClient | ||
To: | ||
from stripe import HTTPClient | ||
""", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._http_client import * # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.multipart_data_generator package is deprecated and will become internal in the future. | ||
""", | ||
DeprecationWarning, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._multipart_data_generator import ( # noqa | ||
MultipartDataGenerator, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.oauth package is deprecated, please change your | ||
imports to import from stripe directly. | ||
From: | ||
from stripe.oauth import OAuth | ||
To: | ||
from stripe import OAuth | ||
""", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._oauth import ( # noqa | ||
OAuth, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.request_metrics package is deprecated and will become internal in the future. | ||
""", | ||
DeprecationWarning, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._request_metrics import ( # noqa | ||
RequestMetrics, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.util package is deprecated, please change your | ||
imports to import from stripe directly. | ||
From: | ||
from stripe.util import convert_to_stripe_object | ||
To: | ||
from stripe import convert_to_stripe_object | ||
""", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._util import * # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.version package is deprecated and will become internal in the future. | ||
Pleasse access the version via stripe.VERSION. | ||
""", | ||
DeprecationWarning, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._version import ( # noqa | ||
VERSION, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing_extensions import TYPE_CHECKING | ||
from warnings import warn | ||
|
||
warn( | ||
""" | ||
The stripe.webhook package is deprecated, please change your | ||
imports to import from stripe directly. | ||
From: | ||
from stripe.webhook import Webhook | ||
To: | ||
from stripe import Webhook | ||
""", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
|
||
if not TYPE_CHECKING: | ||
from stripe._webhook import ( # noqa | ||
Webhook, | ||
WebhookSignature, | ||
) |