| 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.forwarding._request_create_params import ( |
| 8 |
RequestCreateParams as RequestCreateParams, |
| 9 |
RequestCreateParamsRequest as RequestCreateParamsRequest, |
| 10 |
RequestCreateParamsRequestHeader as RequestCreateParamsRequestHeader, |
| 11 |
) |
| 12 |
from stripe.params.forwarding._request_list_params import ( |
| 13 |
RequestListParams as RequestListParams, |
| 14 |
RequestListParamsCreated as RequestListParamsCreated, |
| 15 |
) |
| 16 |
from stripe.params.forwarding._request_retrieve_params import ( |
| 17 |
RequestRetrieveParams as RequestRetrieveParams, |
| 18 |
) |
| 19 |
|
| 20 |
# name -> (import_target, is_submodule) |
| 21 |
_import_map = { |
| 22 |
"RequestCreateParams": ( |
| 23 |
"stripe.params.forwarding._request_create_params", |
| 24 |
False, |
| 25 |
), |
| 26 |
"RequestCreateParamsRequest": ( |
| 27 |
"stripe.params.forwarding._request_create_params", |
| 28 |
False, |
| 29 |
), |
| 30 |
"RequestCreateParamsRequestHeader": ( |
| 31 |
"stripe.params.forwarding._request_create_params", |
| 32 |
False, |
| 33 |
), |
| 34 |
"RequestListParams": ( |
| 35 |
"stripe.params.forwarding._request_list_params", |
| 36 |
False, |
| 37 |
), |
| 38 |
"RequestListParamsCreated": ( |
| 39 |
"stripe.params.forwarding._request_list_params", |
| 40 |
False, |
| 41 |
), |
| 42 |
"RequestRetrieveParams": ( |
| 43 |
"stripe.params.forwarding._request_retrieve_params", |
| 44 |
False, |
| 45 |
), |
| 46 |
} |
| 47 |
if not TYPE_CHECKING: |
| 48 |
|
| 49 |
def __getattr__(name): |
| 50 |
try: |
| 51 |
target, is_submodule = _import_map[name] |
| 52 |
module = import_module(target) |
| 53 |
if is_submodule: |
| 54 |
return module |
| 55 |
|
| 56 |
return getattr( |
| 57 |
module, |
| 58 |
name, |
| 59 |
) |
| 60 |
except KeyError: |
| 61 |
raise AttributeError() |