1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from importlib import import_module
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
from stripe.issuing._authorization import Authorization as Authorization
from stripe.issuing._authorization_service import (
AuthorizationService as AuthorizationService,
)
from stripe.issuing._card import Card as Card
from stripe.issuing._card_service import CardService as CardService
from stripe.issuing._cardholder import Cardholder as Cardholder
from stripe.issuing._cardholder_service import (
CardholderService as CardholderService,
)
from stripe.issuing._dispute import Dispute as Dispute
from stripe.issuing._dispute_service import (
DisputeService as DisputeService,
)
from stripe.issuing._personalization_design import (
PersonalizationDesign as PersonalizationDesign,
)
from stripe.issuing._personalization_design_service import (
PersonalizationDesignService as PersonalizationDesignService,
)
from stripe.issuing._physical_bundle import (
PhysicalBundle as PhysicalBundle,
)
from stripe.issuing._physical_bundle_service import (
PhysicalBundleService as PhysicalBundleService,
)
from stripe.issuing._token import Token as Token
from stripe.issuing._token_service import TokenService as TokenService
from stripe.issuing._transaction import Transaction as Transaction
from stripe.issuing._transaction_service import (
TransactionService as TransactionService,
)
# name -> (import_target, is_submodule)
_import_map = {
"Authorization": ("stripe.issuing._authorization", False),
"AuthorizationService": ("stripe.issuing._authorization_service", False),
"Card": ("stripe.issuing._card", False),
"CardService": ("stripe.issuing._card_service", False),
"Cardholder": ("stripe.issuing._cardholder", False),
"CardholderService": ("stripe.issuing._cardholder_service", False),
"Dispute": ("stripe.issuing._dispute", False),
"DisputeService": ("stripe.issuing._dispute_service", False),
"PersonalizationDesign": ("stripe.issuing._personalization_design", False),
"PersonalizationDesignService": (
"stripe.issuing._personalization_design_service",
False,
),
"PhysicalBundle": ("stripe.issuing._physical_bundle", False),
"PhysicalBundleService": (
"stripe.issuing._physical_bundle_service",
False,
),
"Token": ("stripe.issuing._token", False),
"TokenService": ("stripe.issuing._token_service", False),
"Transaction": ("stripe.issuing._transaction", False),
"TransactionService": ("stripe.issuing._transaction_service", False),
}
if not TYPE_CHECKING:
def __getattr__(name):
try:
target, is_submodule = _import_map[name]
module = import_module(target)
if is_submodule:
return module
return getattr(
module,
name,
)
except KeyError:
raise AttributeError()
|