| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from importlib import import_module |
| 4 |
from typing_extensions import TYPE_CHECKING |
| 5 |
|
| 6 |
if TYPE_CHECKING: |
| 7 |
from stripe.params.apps._secret_create_params import ( |
| 8 |
SecretCreateParams as SecretCreateParams, |
| 9 |
SecretCreateParamsScope as SecretCreateParamsScope, |
| 10 |
) |
| 11 |
from stripe.params.apps._secret_delete_where_params import ( |
| 12 |
SecretDeleteWhereParams as SecretDeleteWhereParams, |
| 13 |
SecretDeleteWhereParamsScope as SecretDeleteWhereParamsScope, |
| 14 |
) |
| 15 |
from stripe.params.apps._secret_find_params import ( |
| 16 |
SecretFindParams as SecretFindParams, |
| 17 |
SecretFindParamsScope as SecretFindParamsScope, |
| 18 |
) |
| 19 |
from stripe.params.apps._secret_list_params import ( |
| 20 |
SecretListParams as SecretListParams, |
| 21 |
SecretListParamsScope as SecretListParamsScope, |
| 22 |
) |
| 23 |
|
| 24 |
# name -> (import_target, is_submodule) |
| 25 |
_import_map = { |
| 26 |
"SecretCreateParams": ("stripe.params.apps._secret_create_params", False), |
| 27 |
"SecretCreateParamsScope": ( |
| 28 |
"stripe.params.apps._secret_create_params", |
| 29 |
False, |
| 30 |
), |
| 31 |
"SecretDeleteWhereParams": ( |
| 32 |
"stripe.params.apps._secret_delete_where_params", |
| 33 |
False, |
| 34 |
), |
| 35 |
"SecretDeleteWhereParamsScope": ( |
| 36 |
"stripe.params.apps._secret_delete_where_params", |
| 37 |
False, |
| 38 |
), |
| 39 |
"SecretFindParams": ("stripe.params.apps._secret_find_params", False), |
| 40 |
"SecretFindParamsScope": ("stripe.params.apps._secret_find_params", False), |
| 41 |
"SecretListParams": ("stripe.params.apps._secret_list_params", False), |
| 42 |
"SecretListParamsScope": ("stripe.params.apps._secret_list_params", False), |
| 43 |
} |
| 44 |
if not TYPE_CHECKING: |
| 45 |
|
| 46 |
def __getattr__(name): |
| 47 |
try: |
| 48 |
target, is_submodule = _import_map[name] |
| 49 |
module = import_module(target) |
| 50 |
if is_submodule: |
| 51 |
return module |
| 52 |
|
| 53 |
return getattr( |
| 54 |
module, |
| 55 |
name, |
| 56 |
) |
| 57 |
except KeyError: |
| 58 |
raise AttributeError() |