| 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.reporting._report_run_create_params import ( |
| 8 |
ReportRunCreateParams as ReportRunCreateParams, |
| 9 |
ReportRunCreateParamsParameters as ReportRunCreateParamsParameters, |
| 10 |
) |
| 11 |
from stripe.params.reporting._report_run_list_params import ( |
| 12 |
ReportRunListParams as ReportRunListParams, |
| 13 |
ReportRunListParamsCreated as ReportRunListParamsCreated, |
| 14 |
) |
| 15 |
from stripe.params.reporting._report_run_retrieve_params import ( |
| 16 |
ReportRunRetrieveParams as ReportRunRetrieveParams, |
| 17 |
) |
| 18 |
from stripe.params.reporting._report_type_list_params import ( |
| 19 |
ReportTypeListParams as ReportTypeListParams, |
| 20 |
) |
| 21 |
from stripe.params.reporting._report_type_retrieve_params import ( |
| 22 |
ReportTypeRetrieveParams as ReportTypeRetrieveParams, |
| 23 |
) |
| 24 |
|
| 25 |
# name -> (import_target, is_submodule) |
| 26 |
_import_map = { |
| 27 |
"ReportRunCreateParams": ( |
| 28 |
"stripe.params.reporting._report_run_create_params", |
| 29 |
False, |
| 30 |
), |
| 31 |
"ReportRunCreateParamsParameters": ( |
| 32 |
"stripe.params.reporting._report_run_create_params", |
| 33 |
False, |
| 34 |
), |
| 35 |
"ReportRunListParams": ( |
| 36 |
"stripe.params.reporting._report_run_list_params", |
| 37 |
False, |
| 38 |
), |
| 39 |
"ReportRunListParamsCreated": ( |
| 40 |
"stripe.params.reporting._report_run_list_params", |
| 41 |
False, |
| 42 |
), |
| 43 |
"ReportRunRetrieveParams": ( |
| 44 |
"stripe.params.reporting._report_run_retrieve_params", |
| 45 |
False, |
| 46 |
), |
| 47 |
"ReportTypeListParams": ( |
| 48 |
"stripe.params.reporting._report_type_list_params", |
| 49 |
False, |
| 50 |
), |
| 51 |
"ReportTypeRetrieveParams": ( |
| 52 |
"stripe.params.reporting._report_type_retrieve_params", |
| 53 |
False, |
| 54 |
), |
| 55 |
} |
| 56 |
if not TYPE_CHECKING: |
| 57 |
|
| 58 |
def __getattr__(name): |
| 59 |
try: |
| 60 |
target, is_submodule = _import_map[name] |
| 61 |
module = import_module(target) |
| 62 |
if is_submodule: |
| 63 |
return module |
| 64 |
|
| 65 |
return getattr( |
| 66 |
module, |
| 67 |
name, |
| 68 |
) |
| 69 |
except KeyError: |
| 70 |
raise AttributeError() |