| 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.test_helpers.treasury._inbound_transfer_fail_params import ( |
| 8 |
InboundTransferFailParams as InboundTransferFailParams, |
| 9 |
InboundTransferFailParamsFailureDetails as InboundTransferFailParamsFailureDetails, |
| 10 |
) |
| 11 |
from stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params import ( |
| 12 |
InboundTransferReturnInboundTransferParams as InboundTransferReturnInboundTransferParams, |
| 13 |
) |
| 14 |
from stripe.params.test_helpers.treasury._inbound_transfer_succeed_params import ( |
| 15 |
InboundTransferSucceedParams as InboundTransferSucceedParams, |
| 16 |
) |
| 17 |
from stripe.params.test_helpers.treasury._outbound_payment_fail_params import ( |
| 18 |
OutboundPaymentFailParams as OutboundPaymentFailParams, |
| 19 |
) |
| 20 |
from stripe.params.test_helpers.treasury._outbound_payment_post_params import ( |
| 21 |
OutboundPaymentPostParams as OutboundPaymentPostParams, |
| 22 |
) |
| 23 |
from stripe.params.test_helpers.treasury._outbound_payment_return_outbound_payment_params import ( |
| 24 |
OutboundPaymentReturnOutboundPaymentParams as OutboundPaymentReturnOutboundPaymentParams, |
| 25 |
OutboundPaymentReturnOutboundPaymentParamsReturnedDetails as OutboundPaymentReturnOutboundPaymentParamsReturnedDetails, |
| 26 |
) |
| 27 |
from stripe.params.test_helpers.treasury._outbound_payment_update_params import ( |
| 28 |
OutboundPaymentUpdateParams as OutboundPaymentUpdateParams, |
| 29 |
OutboundPaymentUpdateParamsTrackingDetails as OutboundPaymentUpdateParamsTrackingDetails, |
| 30 |
OutboundPaymentUpdateParamsTrackingDetailsAch as OutboundPaymentUpdateParamsTrackingDetailsAch, |
| 31 |
OutboundPaymentUpdateParamsTrackingDetailsUsDomesticWire as OutboundPaymentUpdateParamsTrackingDetailsUsDomesticWire, |
| 32 |
) |
| 33 |
from stripe.params.test_helpers.treasury._outbound_transfer_fail_params import ( |
| 34 |
OutboundTransferFailParams as OutboundTransferFailParams, |
| 35 |
) |
| 36 |
from stripe.params.test_helpers.treasury._outbound_transfer_post_params import ( |
| 37 |
OutboundTransferPostParams as OutboundTransferPostParams, |
| 38 |
) |
| 39 |
from stripe.params.test_helpers.treasury._outbound_transfer_return_outbound_transfer_params import ( |
| 40 |
OutboundTransferReturnOutboundTransferParams as OutboundTransferReturnOutboundTransferParams, |
| 41 |
OutboundTransferReturnOutboundTransferParamsReturnedDetails as OutboundTransferReturnOutboundTransferParamsReturnedDetails, |
| 42 |
) |
| 43 |
from stripe.params.test_helpers.treasury._outbound_transfer_update_params import ( |
| 44 |
OutboundTransferUpdateParams as OutboundTransferUpdateParams, |
| 45 |
OutboundTransferUpdateParamsTrackingDetails as OutboundTransferUpdateParamsTrackingDetails, |
| 46 |
OutboundTransferUpdateParamsTrackingDetailsAch as OutboundTransferUpdateParamsTrackingDetailsAch, |
| 47 |
OutboundTransferUpdateParamsTrackingDetailsUsDomesticWire as OutboundTransferUpdateParamsTrackingDetailsUsDomesticWire, |
| 48 |
) |
| 49 |
from stripe.params.test_helpers.treasury._received_credit_create_params import ( |
| 50 |
ReceivedCreditCreateParams as ReceivedCreditCreateParams, |
| 51 |
ReceivedCreditCreateParamsInitiatingPaymentMethodDetails as ReceivedCreditCreateParamsInitiatingPaymentMethodDetails, |
| 52 |
ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount as ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount, |
| 53 |
) |
| 54 |
from stripe.params.test_helpers.treasury._received_debit_create_params import ( |
| 55 |
ReceivedDebitCreateParams as ReceivedDebitCreateParams, |
| 56 |
ReceivedDebitCreateParamsInitiatingPaymentMethodDetails as ReceivedDebitCreateParamsInitiatingPaymentMethodDetails, |
| 57 |
ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount as ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount, |
| 58 |
) |
| 59 |
|
| 60 |
# name -> (import_target, is_submodule) |
| 61 |
_import_map = { |
| 62 |
"InboundTransferFailParams": ( |
| 63 |
"stripe.params.test_helpers.treasury._inbound_transfer_fail_params", |
| 64 |
False, |
| 65 |
), |
| 66 |
"InboundTransferFailParamsFailureDetails": ( |
| 67 |
"stripe.params.test_helpers.treasury._inbound_transfer_fail_params", |
| 68 |
False, |
| 69 |
), |
| 70 |
"InboundTransferReturnInboundTransferParams": ( |
| 71 |
"stripe.params.test_helpers.treasury._inbound_transfer_return_inbound_transfer_params", |
| 72 |
False, |
| 73 |
), |
| 74 |
"InboundTransferSucceedParams": ( |
| 75 |
"stripe.params.test_helpers.treasury._inbound_transfer_succeed_params", |
| 76 |
False, |
| 77 |
), |
| 78 |
"OutboundPaymentFailParams": ( |
| 79 |
"stripe.params.test_helpers.treasury._outbound_payment_fail_params", |
| 80 |
False, |
| 81 |
), |
| 82 |
"OutboundPaymentPostParams": ( |
| 83 |
"stripe.params.test_helpers.treasury._outbound_payment_post_params", |
| 84 |
False, |
| 85 |
), |
| 86 |
"OutboundPaymentReturnOutboundPaymentParams": ( |
| 87 |
"stripe.params.test_helpers.treasury._outbound_payment_return_outbound_payment_params", |
| 88 |
False, |
| 89 |
), |
| 90 |
"OutboundPaymentReturnOutboundPaymentParamsReturnedDetails": ( |
| 91 |
"stripe.params.test_helpers.treasury._outbound_payment_return_outbound_payment_params", |
| 92 |
False, |
| 93 |
), |
| 94 |
"OutboundPaymentUpdateParams": ( |
| 95 |
"stripe.params.test_helpers.treasury._outbound_payment_update_params", |
| 96 |
False, |
| 97 |
), |
| 98 |
"OutboundPaymentUpdateParamsTrackingDetails": ( |
| 99 |
"stripe.params.test_helpers.treasury._outbound_payment_update_params", |
| 100 |
False, |
| 101 |
), |
| 102 |
"OutboundPaymentUpdateParamsTrackingDetailsAch": ( |
| 103 |
"stripe.params.test_helpers.treasury._outbound_payment_update_params", |
| 104 |
False, |
| 105 |
), |
| 106 |
"OutboundPaymentUpdateParamsTrackingDetailsUsDomesticWire": ( |
| 107 |
"stripe.params.test_helpers.treasury._outbound_payment_update_params", |
| 108 |
False, |
| 109 |
), |
| 110 |
"OutboundTransferFailParams": ( |
| 111 |
"stripe.params.test_helpers.treasury._outbound_transfer_fail_params", |
| 112 |
False, |
| 113 |
), |
| 114 |
"OutboundTransferPostParams": ( |
| 115 |
"stripe.params.test_helpers.treasury._outbound_transfer_post_params", |
| 116 |
False, |
| 117 |
), |
| 118 |
"OutboundTransferReturnOutboundTransferParams": ( |
| 119 |
"stripe.params.test_helpers.treasury._outbound_transfer_return_outbound_transfer_params", |
| 120 |
False, |
| 121 |
), |
| 122 |
"OutboundTransferReturnOutboundTransferParamsReturnedDetails": ( |
| 123 |
"stripe.params.test_helpers.treasury._outbound_transfer_return_outbound_transfer_params", |
| 124 |
False, |
| 125 |
), |
| 126 |
"OutboundTransferUpdateParams": ( |
| 127 |
"stripe.params.test_helpers.treasury._outbound_transfer_update_params", |
| 128 |
False, |
| 129 |
), |
| 130 |
"OutboundTransferUpdateParamsTrackingDetails": ( |
| 131 |
"stripe.params.test_helpers.treasury._outbound_transfer_update_params", |
| 132 |
False, |
| 133 |
), |
| 134 |
"OutboundTransferUpdateParamsTrackingDetailsAch": ( |
| 135 |
"stripe.params.test_helpers.treasury._outbound_transfer_update_params", |
| 136 |
False, |
| 137 |
), |
| 138 |
"OutboundTransferUpdateParamsTrackingDetailsUsDomesticWire": ( |
| 139 |
"stripe.params.test_helpers.treasury._outbound_transfer_update_params", |
| 140 |
False, |
| 141 |
), |
| 142 |
"ReceivedCreditCreateParams": ( |
| 143 |
"stripe.params.test_helpers.treasury._received_credit_create_params", |
| 144 |
False, |
| 145 |
), |
| 146 |
"ReceivedCreditCreateParamsInitiatingPaymentMethodDetails": ( |
| 147 |
"stripe.params.test_helpers.treasury._received_credit_create_params", |
| 148 |
False, |
| 149 |
), |
| 150 |
"ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount": ( |
| 151 |
"stripe.params.test_helpers.treasury._received_credit_create_params", |
| 152 |
False, |
| 153 |
), |
| 154 |
"ReceivedDebitCreateParams": ( |
| 155 |
"stripe.params.test_helpers.treasury._received_debit_create_params", |
| 156 |
False, |
| 157 |
), |
| 158 |
"ReceivedDebitCreateParamsInitiatingPaymentMethodDetails": ( |
| 159 |
"stripe.params.test_helpers.treasury._received_debit_create_params", |
| 160 |
False, |
| 161 |
), |
| 162 |
"ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount": ( |
| 163 |
"stripe.params.test_helpers.treasury._received_debit_create_params", |
| 164 |
False, |
| 165 |
), |
| 166 |
} |
| 167 |
if not TYPE_CHECKING: |
| 168 |
|
| 169 |
def __getattr__(name): |
| 170 |
try: |
| 171 |
target, is_submodule = _import_map[name] |
| 172 |
module = import_module(target) |
| 173 |
if is_submodule: |
| 174 |
return module |
| 175 |
|
| 176 |
return getattr( |
| 177 |
module, |
| 178 |
name, |
| 179 |
) |
| 180 |
except KeyError: |
| 181 |
raise AttributeError() |